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 # Go for the first test
4 p Test Broadcast with less processes than hosts
5 $ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../../examples/msg/small_platform.xml -np 3 ./bcast -q
9 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
10 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
11 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
12 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
15 p Test Broadcast with as much processes than hosts
16 ! setenv LD_LIBRARY_PATH=../../lib
17 $ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../../examples/msg/small_platform.xml -np 5 ./bcast -q
18 > [rank 0] -> Tremblay
22 > [rank 4] -> Bourassa
23 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
24 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
25 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
26 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
29 p Test Broadcast with more processes than hosts
30 ! setenv LD_LIBRARY_PATH=../../lib
31 $ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../../examples/msg/small_platform.xml -np 12 ./bcast -q
32 > You requested to use 12 processes, but there is only 5 processes in your hostfile...
33 > [rank 0] -> Tremblay
37 > [rank 4] -> Bourassa
38 > [rank 5] -> Tremblay
42 > [rank 9] -> Bourassa
43 > [rank 10] -> Tremblay
44 > [rank 11] -> Jupiter
45 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
46 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
47 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
48 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)