Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Restructure teshsuite smpi
[simgrid.git] / teshsuite / smpi / reduce / reduce.tesh
diff --git a/teshsuite/smpi/reduce/reduce.tesh b/teshsuite/smpi/reduce/reduce.tesh
new file mode 100644 (file)
index 0000000..4e3aac7
--- /dev/null
@@ -0,0 +1,89 @@
+# use the tested library, not the installed one
+# (since we want to pass it to the child, it has to be redefined before each command)
+# Go for the first test
+p Test Reduce with 3 processes
+! output sort
+$ ${bindir:=.}/../../../bin/smpirun -map -hostfile ../hostfile -platform ../../../examples/msg/small_platform.xml -np 3 ${bindir:=.}/reduce -q --log=smpi_kernel.thres:warning
+> [rank 0] -> Tremblay
+> [rank 1] -> Jupiter
+> [rank 2] -> Fafard
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
+> [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
+> ** Scalar Int Test Result:
+>      [0] sum=6 ... validation ok.
+>      [0] min=1 ... validation ok.
+>      [0] max=3 ... validation ok.
+> ** IBM Test Result: ...
+>      ok.
+>      ok.
+>      ok.
+
+# second test
+! setenv LD_LIBRARY_PATH=../../lib
+! output sort
+p Test Reduce with 5 processes
+$ ${bindir:=.}/../../../bin/smpirun -map -hostfile ../hostfile -platform ../../../examples/msg/small_platform.xml -np 5 ${bindir:=.}/reduce -q --log=smpi_kernel.thres:warning
+> [rank 0] -> Tremblay
+> [rank 1] -> Jupiter
+> [rank 2] -> Fafard
+> [rank 3] -> Ginette
+> [rank 4] -> Bourassa
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
+> [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
+> ** Scalar Int Test Result:
+>      [0] sum=15 ... validation ok.
+>      [0] min=1 ... validation ok.
+>      [0] max=5 ... validation ok.
+> ** IBM Test Result: ...
+>      ok.
+>      ok.
+>      ok.
+>      ok.
+>      ok.
+
+# third test
+! output sort
+! setenv LD_LIBRARY_PATH=../../lib
+p Test Reduce with 12 processes
+$ ${bindir:=.}/../../../bin/smpirun -map -hostfile ../hostfile -platform ../../../examples/msg/small_platform.xml -np 12 ${bindir:=.}/reduce -q --log=smpi_kernel.thres:warning
+> You requested to use 12 processes, but there is only 5 processes in your hostfile...
+> [rank 0] -> Tremblay
+> [rank 1] -> Jupiter
+> [rank 2] -> Fafard
+> [rank 3] -> Ginette
+> [rank 4] -> Bourassa
+> [rank 5] -> Tremblay
+> [rank 6] -> Jupiter
+> [rank 7] -> Fafard
+> [rank 8] -> Ginette
+> [rank 9] -> Bourassa
+> [rank 10] -> Tremblay
+> [rank 11] -> Jupiter
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
+> [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
+> ** Scalar Int Test Result:
+>      [0] sum=78 ... validation ok.
+>      [0] min=1 ... validation ok.
+>      [0] max=12 ... validation ok.
+> ** IBM Test Result: ...
+>      ok.
+>      ok.
+>      ok.
+>      ok.
+>      ok.
+>      ok.
+>      ok.
+>      ok.
+>      ok.
+>      ok.
+>      ok.
+>      ok.