Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix a segfault when Host.getByName(null) is called
[simgrid.git] / teshsuite / 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 # Go for the first test
4 p Test Broadcast with less processes than hosts
5 $ ../../smpi_script/bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../../examples/msg/small_platform.xml -np 3 ./bcast -q --log=smpi_kernel.thres:warning
6 > [rank 0] -> Tremblay
7 > [rank 1] -> Jupiter
8 > [rank 2] -> Fafard
9 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
10 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
11 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
12 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/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 # second test
16 p Test Broadcast with as much processes than hosts
17 ! setenv LD_LIBRARY_PATH=../../lib
18 $ ../../smpi_script/bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../../examples/msg/small_platform.xml -np 5 ./bcast -q --log=smpi_kernel.thres:warning
19 > [rank 0] -> Tremblay
20 > [rank 1] -> Jupiter
21 > [rank 2] -> Fafard
22 > [rank 3] -> Ginette
23 > [rank 4] -> Bourassa
24 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
25 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
26 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
27 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
28 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
29
30 # Another test
31 p Test Broadcast with more processes than hosts
32 ! setenv LD_LIBRARY_PATH=../../lib
33 $ ../../smpi_script/bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../../examples/msg/small_platform.xml -np 12 ./bcast -q --log=smpi_kernel.thres:warning
34 > You requested to use 12 processes, but there is only 5 processes in your hostfile...
35 > [rank 0] -> Tremblay
36 > [rank 1] -> Jupiter
37 > [rank 2] -> Fafard
38 > [rank 3] -> Ginette
39 > [rank 4] -> Bourassa
40 > [rank 5] -> Tremblay
41 > [rank 6] -> Jupiter
42 > [rank 7] -> Fafard
43 > [rank 8] -> Ginette
44 > [rank 9] -> Bourassa
45 > [rank 10] -> Tremblay
46 > [rank 11] -> Jupiter
47 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
48 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
49 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
50 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
51 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)