Logo AND Algorithmique Numérique Distribuée

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