2 Quick Notes : getting started with the examples
3 ===============================================
5 ..:: What you need ::..
7 - a platform file describing the environment. You can go to
8 the Platform Description Archive (http://pda.gforge.inria.fr/) to
9 get an existing one or generate your own platform with the
10 SIMULACRUM tool (see 'Download' section there).
12 - a hostfile. Like in almost all MPI distributions, the hostfile
13 list the hosts which the processes will be mapped on. At present,
14 the format is one hostname per line. The hostnames must be present
17 Note: the mapping of MPI processes (ranks) follows the order of the
18 hostfile. Rank 0 is mapped to first hostname in hostfile, Rank 1
19 on second hostname, etc. If n (where -np n) is greater than the
20 number l of lines in hostfile, the mapping is done round-robin.
23 ..:: Try the examples ::..
26 # cd simgrid/src/smpi/sample
28 To compile an example :
29 # ../smpicc bcast.c -o bcast
31 Use 'smpirun' to use it then:
34 # ../smpirun -np 3 ./bcast
41 [0.000000] [smpi_kernel/INFO] simulation time 4.32934e-05
44 To run it with a specific platform:
45 # ../smpirun -np 3 -platform platform.xml -hostfile hostfile ./bcast