Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add an example for waitany fct.
[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=../../lib
4
5 # Go for the first test
6 p Test Broadcast with less processes than hosts
7 $ ../../bin/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 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
12 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'TCP_gamma' to '4194304'
13 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
14
15
16
17 # second test
18 p Test Broadcast with as much processes than hosts
19 ! setenv LD_LIBRARY_PATH=../../lib
20 $ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 6 ./bcast -q
21 > [rank 0] -> Tremblay
22 > [rank 1] -> Jupiter
23 > [rank 2] -> Fafard
24 > [rank 3] -> Ginette
25 > [rank 4] -> Bourassa
26 > [rank 5] -> Tremblay
27 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
28 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'TCP_gamma' to '4194304'
29 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
30
31
32 # Another test
33 p Test Broadcast with more processes than hosts
34 ! setenv LD_LIBRARY_PATH=../../lib
35 $ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 12 ./bcast -q
36 > [rank 0] -> Tremblay
37 > [rank 1] -> Jupiter
38 > [rank 2] -> Fafard
39 > [rank 3] -> Ginette
40 > [rank 4] -> Bourassa
41 > [rank 5] -> Tremblay
42 > [rank 6] -> Jupiter
43 > [rank 7] -> Fafard
44 > [rank 8] -> Ginette
45 > [rank 9] -> Bourassa
46 > [rank 10] -> Tremblay
47 > [rank 11] -> Jupiter
48 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
49 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'TCP_gamma' to '4194304'
50 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)