Auryn simulator

Simulator for spiking neural networks with synaptic plasticity

User Tools

Site Tools


quick_start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
quick_start [2017/01/30 17:50] – [Next steps] Remove line zenkequick_start [2017/09/29 10:57] (current) – [Running a first simulation] Fixes example code zenke
Line 4: Line 4:
 First, install cmake, git and some additional packages. Under Ubuntu or Debian simply  First, install cmake, git and some additional packages. Under Ubuntu or Debian simply 
 <code>sudo apt-get install cmake git build-essential libboost-all-dev</code> <code>sudo apt-get install cmake git build-essential libboost-all-dev</code>
-on any other platform you will need to install a C++ compiler a few libraries (MPI and Boost) and tools (git and cmake). +on any other platform you will need to install a C++ compiler a few [[manual:required libraries|libraries]]  and the programs git and cmake. Now download and compile Auryn with the following commands
- +
-Now download and compile Auryn with the following commands+
 <code> <code>
 git clone https://github.com/fzenke/auryn.git git clone https://github.com/fzenke/auryn.git
Line 12: Line 10:
 ./bootstrap.sh && make ./bootstrap.sh && make
 </code> </code>
-This will checkout the ''master'' branch and compile it in the subdirectory ''auryn/build/''. At this point cmake will complain about any missing [[manual:required libraries|libraries]].  The static library ''libauryn.a'' will be placed under ''build/release/src/''You can install it to your systems default directory or elsewhere using ''make install''. For more detailed instructions on where to download and how to compile go to [[manual:compileAuryn|howto compile Auryn]].+This will checkout the ''master'' branch and compile it in the subdirectory ''auryn/build/''. At this point cmake will complain about any missing [[manual:required libraries|libraries]].  The static library ''libauryn.a'' will be placed under ''build/release/src/''I usually leave it there and tell my compiler [[manual:CompileAndRunAurynSimulations|explicitly where to find it]], but you can also install it to your systems default directory using ''make install''. For more detailed instructions on where to download and how to compile go to [[manual:compileAuryn|howto compile Auryn]].
  
  
 ===== Running a first simulation ===== ===== Running a first simulation =====
  
-Now, let's run a first small Auryn simulation:+Now, let's run a first small Auryn simulation from the example directory
 <code> <code>
-zenke@possum:~$ cd examples+zenke@possum:~$ cd auryn/build/release/examples
 zenke@possum:~/auryn/build/release/examples$ zenke@possum:~/auryn/build/release/examples$
 zenke@possum:~/auryn/build/release/examples$ ./sim_poisson  zenke@possum:~/auryn/build/release/examples$ ./sim_poisson 
Line 25: Line 23:
 ( 0) Freeing ... ( 0) Freeing ...
 </code> </code>
-This will only take a few milliseconds and generate a bunch of Poisson spikes. If you have gnuplot installed (sudo apt-get install gnuplot) you can visualize them from the command line with+This will only take a few milliseconds and generate a bunch of Poisson spikes and store them in 'poisson.0.ras'. If you have gnuplot installed (sudo apt-get install gnuplot) you can visualize them from the command line with
 <code> <code>
 echo "plot 'poisson.0.ras' with dots lc rgb 'black'" | gnuplot -p echo "plot 'poisson.0.ras' with dots lc rgb 'black'" | gnuplot -p
 </code> </code>
 {{ :examples:poisson_output.png?400 |}} {{ :examples:poisson_output.png?400 |}}
-For more details on this example go [[examples:sim_poisson|here]]. More on how to [[manual:CompileAndRunAurynSimulations]].+For more details on this example go [[examples:sim_poisson|here]]. 
  
 ===== Running a network simulation ===== ===== Running a network simulation =====
Line 112: Line 110:
 ====== Next steps ====== ====== Next steps ======
  
-After you have [[manual:compileAuryn|compiled Auryn]], you will probably want to familiarize yourself with the simulator using the supplied [[tutorials:start]] and [[examples:start]].+After you have [[manual:compileAuryn|compiled Auryn]], you will probably want to familiarize yourself with the simulator using the supplied [[tutorials:start]] and [[examples:start]]. More on how to compile your own simulations [[manual:CompileAndRunAurynSimulations|here]].
quick_start.1485798643.txt.gz · Last modified: 2017/01/30 17:50 by zenke