Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Some MSG examples mainly useful to test the model-checker
[simgrid.git] / examples / smpi / bcast.tesh
1 # use the tested library, not the installed one
2 # (since we want to pass it to the child, it has to be redefined before each command)
3 ! setenv LD_LIBRARY_PATH=../../src/.libs
4
5 # Go for the first test
6 p Test Broadcast with less processes than hosts
7 $ ../../src/smpi/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 3 ./bcast -q
8 > [rank 0] -> Tremblay
9 > [rank 1] -> Jupiter
10 > [rank 2] -> Fafard
11
12
13
14 # second test
15 p Test Broadcast with as much processes than hosts
16 ! setenv LD_LIBRARY_PATH=../../src/.libs
17 $ ../../src/smpi/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 6 ./bcast -q
18 > [rank 0] -> Tremblay
19 > [rank 1] -> Jupiter
20 > [rank 2] -> Fafard
21 > [rank 3] -> Ginette
22 > [rank 4] -> Bourassa
23 > [rank 5] -> Tremblay
24
25
26 # Another test
27 p Test Broadcast with more processes than hosts
28 ! setenv LD_LIBRARY_PATH=../../src/.libs
29 $ ../../src/smpi/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 12 ./bcast -q
30 > [rank 0] -> Tremblay
31 > [rank 1] -> Jupiter
32 > [rank 2] -> Fafard
33 > [rank 3] -> Ginette
34 > [rank 4] -> Bourassa
35 > [rank 5] -> Tremblay
36 > [rank 6] -> Jupiter
37 > [rank 7] -> Fafard
38 > [rank 8] -> Ginette
39 > [rank 9] -> Bourassa
40 > [rank 10] -> Tremblay
41 > [rank 11] -> Jupiter