Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
a304357237d7ce27961e1a7fe1f7e857a2330c58
[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 > ** Scalar Int Test Result:
12 >       [0] sum=6 ... validation ok.
13 >       [0] min=1 ... validation ok.
14 >       [0] max=3 ... validation ok.
15 > ** IBM Test Result: ... 
16 >       ok.
17 >       ok.
18 >       ok.
19
20 # second test
21 ! setenv LD_LIBRARY_PATH=../../lib
22 p Test Reduce with 6 processes 
23 $ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 6 ./reduce -q
24 > [rank 0] -> Tremblay
25 > [rank 1] -> Jupiter
26 > [rank 2] -> Fafard
27 > [rank 3] -> Ginette
28 > [rank 4] -> Bourassa
29 > [rank 5] -> Tremblay
30 > ** Scalar Int Test Result:
31 >       [0] sum=21 ... validation ok.
32 >       [0] min=1 ... validation ok.
33 >       [0] max=6 ... validation ok.
34 > ** IBM Test Result: ... 
35 >       ok.
36 >       ok.
37 >       ok.
38 >       ok.
39 >       ok.
40 >       ok.
41
42
43 # third test
44 ! setenv LD_LIBRARY_PATH=../../lib
45 p Test Reduce with 12 processes 
46 $ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 12 ./reduce -q 
47 > [rank 0] -> Tremblay
48 > [rank 1] -> Jupiter
49 > [rank 2] -> Fafard
50 > [rank 3] -> Ginette
51 > [rank 4] -> Bourassa
52 > [rank 5] -> Tremblay
53 > [rank 6] -> Jupiter
54 > [rank 7] -> Fafard
55 > [rank 8] -> Ginette
56 > [rank 9] -> Bourassa
57 > [rank 10] -> Tremblay
58 > [rank 11] -> Jupiter
59 > ** Scalar Int Test Result:
60 >       [0] sum=78 ... validation ok.
61 >       [0] min=1 ... validation ok.
62 >       [0] max=12 ... validation ok.
63 > ** IBM Test Result: ... 
64 >       ok.
65 >       ok.
66 >       ok.
67 >       ok.
68 >       ok.
69 >       ok.
70 >       ok.
71 >       ok.
72 >       ok.
73 >       ok.
74 >       ok.
75 >       ok.