examples:sim_coba_benchmark
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
examples:sim_coba_benchmark [2014/01/13 10:43] – starts important bit section zenke | examples:sim_coba_benchmark [2016/07/05 23:40] (current) – typos zenke | ||
---|---|---|---|
Line 8: | Line 8: | ||
To run the program the network first needs priming with external Poisson noise before it can self-sustain its activity. To do that invoke the program with the following command line arguments | To run the program the network first needs priming with external Poisson noise before it can self-sustain its activity. To do that invoke the program with the following command line arguments | ||
<code shell> | <code shell> | ||
- | ./ | ||
./ | ./ | ||
</ | </ | ||
The '' | The '' | ||
+ | |||
+ | If you are interested in running the code in parallel please see the [[manual: | ||
==== Output example ==== | ==== Output example ==== | ||
Line 27: | Line 28: | ||
{{ : | {{ : | ||
- | This figure shows the rasterplot | + | This figure shows the raster plot of the spiking activity of the excitatory population written to ''/ |
Line 42: | Line 43: | ||
neurons_i-> | neurons_i-> | ||
</ | </ | ||
- | This part instatiates | + | This part instantiates |
Line 62: | Line 63: | ||
- | To implement the priming mechanism we find the following conditional branch: | ||
- | <code c++> | ||
- | if ( prime ) { | ||
- | msg = " | ||
- | logger-> | ||
- | PoissonGroup * poisson= new PoissonGroup(200, | ||
- | poisson-> | ||
- | // this will give the same seed on each rank, | ||
- | // but since the group should be locked to a single | ||
- | // rank we do not care. | ||
- | SparseConnection * con_ext_e = new SparseConnection(poisson,neurons_e, | + | The following code snipped is responsible for running the simulation for '' |
- | SparseConnection * con_ext_i | + | <code c++> |
+ | if (!sys-> | ||
+ | | ||
- | } else { | + | if ( prime ) { |
- | oss.str("" | + | oss.str("" |
- | oss << dir << "/ | + | oss << dir << "/ |
- | sys->load_network_state(oss.str()); | + | sys->save_network_state(oss.str()); |
- | } | + | } |
</ | </ | ||
- | If the '' | + | The second part of the above code saves the network state if '' |
+ |
examples/sim_coba_benchmark.1389609805.txt.gz · Last modified: 2014/01/13 10:43 by zenke