From: navarro Date: Tue, 9 Oct 2012 09:50:10 +0000 (+0200) Subject: Add a tesh file for smpi vector X-Git-Tag: v3_8~96 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/09bbc8de24556f9d009d5c1faefd97555415a8cd Add a tesh file for smpi vector --- diff --git a/buildtools/Cmake/AddTests.cmake b/buildtools/Cmake/AddTests.cmake index d7605d1291..091c417d0f 100644 --- a/buildtools/Cmake/AddTests.cmake +++ b/buildtools/Cmake/AddTests.cmake @@ -463,14 +463,17 @@ if(NOT enable_memcheck) # smpi examples ADD_TEST(smpi-bcast-thread ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:thread --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/bcast.tesh) ADD_TEST(smpi-reduce-thread ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:thread --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/reduce.tesh) + ADD_TEST(smpi-vector-thread ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:thread --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/vector.tesh) if(HAVE_RAWCTX) ADD_TEST(smpi-bcast-raw ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:raw --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/bcast.tesh) ADD_TEST(smpi-reduce-raw ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:raw --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/reduce.tesh) + ADD_TEST(smpi-vector-raw ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:raw --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/vector.tesh) endif(HAVE_RAWCTX) if(CONTEXT_UCONTEXT) ADD_TEST(smpi-bcast-ucontext ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:ucontext --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/bcast.tesh) ADD_TEST(smpi-reduce-ucontext ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:ucontext --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/reduce.tesh) + ADD_TEST(smpi-vector-ucontex ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:ucontext --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/vector.tesh) endif(CONTEXT_UCONTEXT) if(HAVE_TRACING) ADD_TEST(smpi-tracing-ptp ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/tracing/smpi_traced.tesh) diff --git a/examples/smpi/vector.tesh b/examples/smpi/vector.tesh new file mode 100644 index 0000000000..9004c89390 --- /dev/null +++ b/examples/smpi/vector.tesh @@ -0,0 +1,42 @@ +p Test vector +! setenv LD_LIBRARY_PATH=../../lib +! output sort +$ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 2 ./vector_test -q +> [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' +> [rank 0] -> Tremblay +> [rank 1] -> Jupiter +> rank= 0, a[0][0]=0.000000 +> rank= 0, a[0][1]=1.000000 +> rank= 0, a[0][2]=2.000000 +> rank= 0, a[0][3]=3.000000 +> rank= 0, a[1][0]=4.000000 +> rank= 0, a[1][1]=5.000000 +> rank= 0, a[1][2]=6.000000 +> rank= 0, a[1][3]=7.000000 +> rank= 0, a[2][0]=8.000000 +> rank= 0, a[2][1]=9.000000 +> rank= 0, a[2][2]=10.000000 +> rank= 0, a[2][3]=11.000000 +> rank= 0, a[3][0]=12.000000 +> rank= 0, a[3][1]=13.000000 +> rank= 0, a[3][2]=14.000000 +> rank= 0, a[3][3]=15.000000 +> rank= 1, a[0][0]=0.000000 +> rank= 1, a[0][1]=0.000000 +> rank= 1, a[0][2]=0.000000 +> rank= 1, a[0][3]=0.000000 +> rank= 1, a[1][0]=4.000000 +> rank= 1, a[1][1]=0.000000 +> rank= 1, a[1][2]=0.000000 +> rank= 1, a[1][3]=0.000000 +> rank= 1, a[2][0]=8.000000 +> rank= 1, a[2][1]=0.000000 +> rank= 1, a[2][2]=0.000000 +> rank= 1, a[2][3]=0.000000 +> rank= 1, a[3][0]=12.000000 +> rank= 1, a[3][1]=0.000000 +> rank= 1, a[3][2]=0.000000 +> rank= 1, a[3][3]=0.000000