Debian Codegraph @

README

raw
1 * What is MUSIC?
2
3 MUSIC is an API allowing large scale neuron simulators using MPI
4 internally to exchange data during runtime. MUSIC provides mechanisms
5 to transfer massive amounts of event information and continuous values
6 from one parallel application to another. Special care has been taken
7 to ensure that existing simulators can be adapted to MUSIC. In
8 particular, MUSIC handles data transfer between applications that use
9 different time steps and different data allocation strategies.
10
11 This is the MUSIC pilot implementation.
12
13 The two most important components built from this software
14 distribution is the music library `libmusic.a' and the music utility
15 `music'. A MUSIC-aware simulator links against the C++ library and
16 can be launched using mpirun together with the music utility as
17 described below. MUSIC can also be used from a C program using the
18 API in music-c.h.
19
20 MUSIC is distributed under the GNU General Public License v3.
21
22
23 * Required external packages
24
25 MUSIC is written in C++ and makes use of the MPI message passing
26 library. MUSIC has been tested with versions 1.2 and 1.3 of OpenMPI,
27 mpich and on BG/L. A visualization tool `viewevents' can be built if
28 the GLUT toolkit is installed.
29
30 MUSIC version 1.0 makes use of the "long long" data type supported by,
31 for example, the GNU C++ compiler g++.
32
33
34 * Getting started
35
36 MUSIC can be built and installed using the generic installation
37 instructions found in the file INSTALL. At the top of the source
38 distribution directory, do:
39
40 ./autogen.sh
41 ./configure --prefix=<PREFIX>
42 make
43 make install
44
45 (On some UNIX distributions you might need to run `ldconfig' or define
46 LD_LIBRARY_PATH:
47
48 export LD_LIBRARY_PATH=/usr/local/lib
49
50 for the music utility to find its library.)
51
52 A MUSIC co-simulation is specified in a configuration file given as
53 the first argument to the music utility. The test subdirectory
54 contains a collection of examples, for example:
55
56 cd test
57 mpirun -np 4 /usr/local/bin/music demo.music
58
59 On some systems, this way of invoking a MUSIC co-simulation isn't
60 supported. Se blow for an alternative method.
61
62
63 * Compilation and linking flags
64
65 configure.ac contains mechanisms which try to identify which MPI
66 implementation/environment is in use and, based on this, decide
67 automagically which compiler, compilation flags and linking flags to
68 use. To circumvent, pass variable definitions ro configure, e.g.:
69
70 ./configure MPI_CXXFLAGS="-g -O3"
71
72 The variables are:
73
74 MPI_CXX The compiler to use for MPI code
75 MPI_CXXFLAGS C++ compilation flags
76 MPI_CFLAGS C compilation flags
77 MPI_LDFLAGS Linking flags
78
79
80 * Python support
81
82 MUSIC comes with Python bindings. By default, the configure script
83 looks for a Python interpreter in the path. If you want to use a
84 particular Python interpreter, you can specify the path to it using
85 the option --with-python:
86
87 ./configure --with-python=/my/bin/python
88
89 Python support can be disabled using:
90
91 ./configure --without-python
92
93
94 * Porting
95
96 When launching a set of applications in a co-simulation, MUSIC needs
97 to go outside the MPI standard in two respects:
98
99 1. It needs to know the MPI process rank of the running process before
100 calling MPI::Init.
101
102 2. It needs to extract the first argument given to the music utility
103 before calling MPI::Init.
104
105 The configuration script tries to figure out which MPI distribution is
106 installed and how to compiler MUSIC for that distribution. The
107 subdirectory mpidep contains all non-standard code. If you are trying
108 to port the MUSIC library to a new version of MPI, please supply new
109 definitions for the functions getRank and getConfig in
110 mpidep/mpidep.c. For more details, see the file PORTING in this
111 directory.
112
113
114 * Alternative way to invoke MUSIC co-simulations
115
116 In case the method of launching MUSIC described under "Getting
117 started" above fails, there is an alternative method:
118
119 Let's assume that we want to launch application A with binary a and Na
120 processes, and application B with binary b and Nb processes. These are
121 listed in a standard MUSIC config file ab.music with block labels A
122 and B. The standard way to launch these would be:
123
124 mpirun -np <Na+Nb> music ab.music
125
126 (where <Na+Nb> is a number). These can alternatively be launched in
127 MPMD style as:
128
129 mpirun -np Na ./a --music-config ab.music --app-label A : -np Nb ./b --music-config ab.music --app-label B
130
131
132 * Where to find more information
133
134 The MUSIC manual and other information can be found on the MUSIC wiki:
135
136 https://github.com/INCF/MUSIC/wiki
137
138 Questions and requests can be sent to [email protected].
139
140
141 * Submitting bug reports
142
143 Bug reports should be submitted as issues on the MUSIC github page:
144
145 https://github.com/INCF/MUSIC/issues