| 1 |
This directory contains a number of small sample programs and MUSIC |
| 2 |
configuration files. Each configuration file (with file extension |
| 3 |
.music) is used to launch a set of programs in a multi-simulation. |
| 4 |
The configuration file variable "binary" tells MUSIC which program to |
| 5 |
launch. Please make sure that such programs exist before you launch |
| 6 |
the simulation. |
| 7 |
|
| 8 |
It is possible to build each program in the standard way for your MPI |
| 9 |
distribution. You also need to link with the MUSIC library. This is |
| 10 |
how to build (if it wasn't already built for you automatically) the |
| 11 |
program `clocksource' used in the configuration file contclock.music |
| 12 |
under OpenMPI: |
| 13 |
|
| 14 |
mpicxx clocksource.cc -lmusic |
| 15 |
|
| 16 |
* Demos |
| 17 |
|
| 18 |
demo.music |
| 19 |
Random spikes are generated from a 3-process application and |
| 20 |
sent to a graphics visualizer. |
| 21 |
|
| 22 |
$ mpirun -np 4 music demo.music |
| 23 |
|
| 24 |
|
| 25 |
demolarge.music |
| 26 |
Similar to demo.music, but running a larger example on more |
| 27 |
processors. 20 processes are started by this demo. |
| 28 |
|
| 29 |
$ mpirun -np 20 music demolarge.music |
| 30 |
|
| 31 |
|
| 32 |
* Event communication |
| 33 |
|
| 34 |
events.music |
| 35 |
Spikes are sent from a sending to a receiving application. |
| 36 |
|
| 37 |
$ mpirun -np 4 music events.music |
| 38 |
|
| 39 |
|
| 40 |
fork.music |
| 41 |
Spikes are sent from one sender to two receiving applications. |
| 42 |
|
| 43 |
$ mpirun -np 6 music fork.music |
| 44 |
|
| 45 |
|
| 46 |
chain.music |
| 47 |
Spikes are sent from one sender (running in two processes) to |
| 48 |
a receiver via an intermediate application which serves as a delay. |
| 49 |
|
| 50 |
$ mpirun -np 4 music chain.music |
| 51 |
|
| 52 |
|
| 53 |
loop.music |
| 54 |
Spikes are sent into a loop of two mutually interconnected |
| 55 |
applications tha both delay and then pass spikes on. |
| 56 |
|
| 57 |
$ mpirun -np 4 music loop.music |
| 58 |
|
| 59 |
|
| 60 |
* Continuous communication |
| 61 |
|
| 62 |
const.music |
| 63 |
A constant array of data is sent to a distributed receiving application. |
| 64 |
|
| 65 |
$ mpirun -np 4 music const.music |
| 66 |
|
| 67 |
|
| 68 |
contclock.music |
| 69 |
The current simulation time is sent as a test output from one |
| 70 |
application and received by another. |
| 71 |
|
| 72 |
$ mpirun -np 2 music contclock.music |
| 73 |
|
| 74 |
|
| 75 |
cloop.music |
| 76 |
The time signal is sent into a delay loop where values are |
| 77 |
gradually accumulated. |
| 78 |
|
| 79 |
$ mpirun -np 4 music cloop.music |
| 80 |
|
| 81 |
|
| 82 |
wavetest.music |
| 83 |
Send sinusoidal waves from one distributes application |
| 84 |
to another. The receiving application writes the result |
| 85 |
in files named dumpfile0.out, dumpfile1.out and dumpfile2.out. |
| 86 |
|
| 87 |
$ mpirun -np 7 music wavetest.music |
| 88 |
|
| 89 |
|
| 90 |
* Message communication |
| 91 |
|
| 92 |
messages.music |
| 93 |
Messages are sent from a sending to a receiving application. |
| 94 |
|
| 95 |
$ mpirun -np 4 music messages.music |