Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Finally the Java interface is working again! (It was broken because of
[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=../../src/.libs
4
5 # Go for the first test
6 p Test Reduce with 3 processes 
7 $ ../../src/smpi/smpirun -map -hostfile hostfile -platform ../msg/small_platform.xml -np 3 ./reduce 
8 > [rank 0] -> Tremblay
9 > [rank 1] -> Jupiter
10 > [rank 2] -> Fafard
11 > [0] has value 1
12 > [1] has value 2
13 > [2] has value 3
14 > ** Scalar Int Test Result:
15 >       [0] sum=6 ... validation ok.
16 >       [0] min=1 ... validation ok.
17 >       [0] max=3 ... validation ok.
18 > Elapsed time=0.007907 s
19 > ** IBM Test Result: ... 
20 >       [0] ok.
21 >       [2] ok.
22 >       [1] ok.
23
24 # second test
25 ! setenv LD_LIBRARY_PATH=../../src/.libs
26 p Test Reduce with 6 processes 
27 $ ../../src/smpi/smpirun -map -hostfile hostfile -platform ../msg/small_platform.xml -np 6 ./reduce 
28 > [rank 0] -> Tremblay
29 > [rank 1] -> Jupiter
30 > [rank 2] -> Fafard
31 > [rank 3] -> Ginette
32 > [rank 4] -> Bourassa
33 > [rank 5] -> Tremblay
34 > [0] has value 1
35 > [1] has value 2
36 > [2] has value 3
37 > [3] has value 4
38 > [4] has value 5
39 > [5] has value 6
40 > ** Scalar Int Test Result:
41 >       [0] sum=21 ... validation ok.
42 >       [0] min=1 ... validation ok.
43 >       [0] max=6 ... validation ok.
44 > Elapsed time=0.007907 s
45 > ** IBM Test Result: ... 
46 >       [4] ok.
47 >       [2] ok.
48 >       [0] ok.
49 >       [5] ok.
50 >       [1] ok.
51 >       [3] ok.
52
53
54 # third test
55 ! setenv LD_LIBRARY_PATH=../../src/.libs
56 p Test Reduce with 12 processes 
57 $ ../../src/smpi/smpirun -map -hostfile hostfile -platform ../msg/small_platform.xml -np 12 ./reduce 
58 > [rank 0] -> Tremblay
59 > [rank 1] -> Jupiter
60 > [rank 2] -> Fafard
61 > [rank 3] -> Ginette
62 > [rank 4] -> Bourassa
63 > [rank 5] -> Tremblay
64 > [rank 6] -> Jupiter
65 > [rank 7] -> Fafard
66 > [rank 8] -> Ginette
67 > [rank 9] -> Bourassa
68 > [rank 10] -> Tremblay
69 > [rank 11] -> Jupiter
70 > [0] has value 1
71 > [1] has value 2
72 > [2] has value 3
73 > [3] has value 4
74 > [4] has value 5
75 > [5] has value 6
76 > [6] has value 7
77 > [7] has value 8
78 > [8] has value 9
79 > [9] has value 10
80 > [10] has value 11
81 > [11] has value 12
82 > ** Scalar Int Test Result:
83 >       [0] sum=78 ... validation ok.
84 >       [0] min=1 ... validation ok.
85 >       [0] max=12 ... validation ok.
86 > Elapsed time=0.007908 s
87 > ** IBM Test Result: ... 
88 >       [1] ok.
89 >       [11] ok.
90 >       [0] ok.
91 >       [5] ok.
92 >       [10] ok.
93 >       [3] ok.
94 >       [8] ok.
95 >       [4] ok.
96 >       [9] ok.
97 >       [2] ok.
98 >       [7] ok.
99 >       [6] ok.