Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add an example for waitany fct.
[simgrid.git] / examples / 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 ! setenv LD_LIBRARY_PATH=../../lib
4
5 # Go for the first test
6 p Test Reduce with 3 processes 
7 $ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 3 ./reduce -q
8 > [rank 0] -> Tremblay
9 > [rank 1] -> Jupiter
10 > [rank 2] -> Fafard
11 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
12 > [0.000000] [xbt_cfg/INFO] Configuration change: Set '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 p Test Reduce with 6 processes 
26 $ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 6 ./reduce -q
27 > [rank 0] -> Tremblay
28 > [rank 1] -> Jupiter
29 > [rank 2] -> Fafard
30 > [rank 3] -> Ginette
31 > [rank 4] -> Bourassa
32 > [rank 5] -> Tremblay
33 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
34 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'TCP_gamma' to '4194304'
35 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
36 > ** Scalar Int Test Result:
37 >       [0] sum=21 ... validation ok.
38 >       [0] min=1 ... validation ok.
39 >       [0] max=6 ... validation ok.
40 > ** IBM Test Result: ... 
41 >       ok.
42 >       ok.
43 >       ok.
44 >       ok.
45 >       ok.
46 >       ok.
47
48
49 # third test
50 ! setenv LD_LIBRARY_PATH=../../lib
51 p Test Reduce with 12 processes 
52 $ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 12 ./reduce -q 
53 > [rank 0] -> Tremblay
54 > [rank 1] -> Jupiter
55 > [rank 2] -> Fafard
56 > [rank 3] -> Ginette
57 > [rank 4] -> Bourassa
58 > [rank 5] -> Tremblay
59 > [rank 6] -> Jupiter
60 > [rank 7] -> Fafard
61 > [rank 8] -> Ginette
62 > [rank 9] -> Bourassa
63 > [rank 10] -> Tremblay
64 > [rank 11] -> Jupiter
65 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
66 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'TCP_gamma' to '4194304'
67 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
68 > ** Scalar Int Test Result:
69 >       [0] sum=78 ... validation ok.
70 >       [0] min=1 ... validation ok.
71 >       [0] max=12 ... validation ok.
72 > ** IBM Test Result: ... 
73 >       ok.
74 >       ok.
75 >       ok.
76 >       ok.
77 >       ok.
78 >       ok.
79 >       ok.
80 >       ok.
81 >       ok.
82 >       ok.
83 >       ok.
84 >       ok.