Logo AND Algorithmique Numérique Distribuée

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