X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/68b96ffe0e3bb075ca67fa164c8176a6d620913e..a8c4451c319a18cd8c5f17cda618cdc038516ec6:/teshsuite/smpi/compute.tesh diff --git a/teshsuite/smpi/compute.tesh b/teshsuite/smpi/compute.tesh new file mode 100644 index 0000000000..5bca9eed95 --- /dev/null +++ b/teshsuite/smpi/compute.tesh @@ -0,0 +1,29 @@ +p Test compute +! setenv LD_LIBRARY_PATH=../../lib +! output sort +$ ../../bin/smpirun -platform ${srcdir:=.}/../../examples/msg/small_platform_with_routers.xml -hostfile ${srcdir:=.}/hostfile -np 2 ./compute 0 +> 0 2.000000 +> 0 2.000000 +> [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s) +> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/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' + +p Test compute and bench +! setenv LD_LIBRARY_PATH=../../lib +! output sort +$ ../../bin/smpirun -platform ${srcdir:=.}/../../examples/msg/small_platform_with_routers.xml -hostfile ${srcdir:=.}/hostfile -np 2 ./compute3 +> [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s) +> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/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] The result of the computation is: 65536.000000 +> [1] The result of the computation is: 2.000000 +> [rank:0] Run the first computation. It's globally benched, and I want no more than 3 benchmarks (thres<0) +> [rank:0] Run the first computation. It's globally benched, and I want no more than 3 benchmarks (thres<0) +> [rank:0] Run the first (locally benched) computation. It's locally benched, and I want the standard error to go below 0.1 second (count is not >0) +> [rank:0] Run the first (locally benched) computation. It's locally benched, and I want the standard error to go below 0.1 second (count is not >0) +> [rank:1] Run the first computation. It's globally benched, and I want no more than 3 benchmarks (thres<0) +> [rank:1] Run the first (locally benched) computation. It's locally benched, and I want the standard error to go below 0.1 second (count is not >0) +> [rank:1] Run the first (locally benched) computation. It's locally benched, and I want the standard error to go below 0.1 second (count is not >0) +