Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
7324b0ce1946e49c0447e89d844fd4887da222cc
[simgrid.git] / teshsuite / smpi / reduce / reduce.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 Reduce with 3 processes
5 ! output sort
6 $ ${bindir:=.}/../../../bin/smpirun -map -hostfile ../hostfile -platform ../../../examples/platforms/small_platform.xml -np 3 ${bindir:=.}/reduce -q --log=smpi_kernel.thres:warning
7 > [rank 0] -> Tremblay
8 > [rank 1] -> Jupiter
9 > [rank 2] -> Fafard
10 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-3'
11 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
12 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
13 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
14 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
15 > ** Scalar Int Test Result:
16 >       [0] sum=6 ... validation ok.
17 >       [0] min=1 ... validation ok.
18 >       [0] max=3 ... validation ok.
19 > ** IBM Test Result: ...
20 >       ok.
21 >       ok.
22 >       ok.
23
24 # second test
25 ! setenv LD_LIBRARY_PATH=../../lib
26 ! output sort
27 p Test Reduce with 5 processes
28 $ ${bindir:=.}/../../../bin/smpirun -map -hostfile ../hostfile -platform ../../../examples/platforms/small_platform.xml -np 5 ${bindir:=.}/reduce -q --log=smpi_kernel.thres:warning
29 > [rank 0] -> Tremblay
30 > [rank 1] -> Jupiter
31 > [rank 2] -> Fafard
32 > [rank 3] -> Ginette
33 > [rank 4] -> Bourassa
34 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-3'
35 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
36 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
37 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
38 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
39 > ** Scalar Int Test Result:
40 >       [0] sum=15 ... validation ok.
41 >       [0] min=1 ... validation ok.
42 >       [0] max=5 ... validation ok.
43 > ** IBM Test Result: ...
44 >       ok.
45 >       ok.
46 >       ok.
47 >       ok.
48 >       ok.
49
50 # third test
51 ! output sort
52 ! setenv LD_LIBRARY_PATH=../../lib
53 p Test Reduce with 12 processes
54 $ ${bindir:=.}/../../../bin/smpirun -map -hostfile ../hostfile -platform ../../../examples/platforms/small_platform.xml -np 12 ${bindir:=.}/reduce -q --log=smpi_kernel.thres:warning
55 > You requested to use 12 processes, but there is only 5 processes in your hostfile...
56 > [rank 0] -> Tremblay
57 > [rank 1] -> Jupiter
58 > [rank 2] -> Fafard
59 > [rank 3] -> Ginette
60 > [rank 4] -> Bourassa
61 > [rank 5] -> Tremblay
62 > [rank 6] -> Jupiter
63 > [rank 7] -> Fafard
64 > [rank 8] -> Ginette
65 > [rank 9] -> Bourassa
66 > [rank 10] -> Tremblay
67 > [rank 11] -> Jupiter
68 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-3'
69 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
70 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
71 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
72 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
73 > ** Scalar Int Test Result:
74 >       [0] sum=78 ... validation ok.
75 >       [0] min=1 ... validation ok.
76 >       [0] max=12 ... validation ok.
77 > ** IBM Test Result: ...
78 >       ok.
79 >       ok.
80 >       ok.
81 >       ok.
82 >       ok.
83 >       ok.
84 >       ok.
85 >       ok.
86 >       ok.
87 >       ok.
88 >       ok.
89 >       ok.