Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
quick notes to get started compiling an smpi example.
[simgrid.git] / src / smpi / README
1
2 Quick Notes : getting started with the examples
3 ===============================================
4
5 Go to :
6 # cd simgrid/src/smpi/sample
7
8 To compile an example : 
9 # ../smpicc bcast.c -o bcast
10
11 Use 'smpirun' to use it then:
12
13 To run it : 
14 # ../smpirun -np 3 ./bcast 
15 node 0 has value 17
16 node 2 has value 3
17 node 1 has value 3
18 node 1 has value 17
19 node 0 has value 17
20 node 2 has value 17
21 [0.000000] [smpi_kernel/INFO] simulation time 4.32934e-05
22
23
24 To run it with a specific platform:
25 # ../smpirun -np 3 -platform platform.xml -hostfile hostfile ./bcast
26
27
28
29
30
31