if(enable_smpi)
# 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)
- ADD_TEST(smpi-indexed-thread ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:thread --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/indexed.tesh)
- ADD_TEST(smpi-struct-thread ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:thread --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/struct.tesh)
- ADD_TEST(smpi-pt2pt-thread ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:thread --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/pt2pt.tesh)
+ ADD_TEST(smpi-bcast-thread ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:thread --cd ${CMAKE_BINARY_DIR}/teshsuite/smpi ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/bcast.tesh)
+ ADD_TEST(smpi-reduce-thread ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:thread --cd ${CMAKE_BINARY_DIR}/teshsuite/smpi ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/reduce.tesh)
+ ADD_TEST(smpi-vector-thread ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:thread --cd ${CMAKE_BINARY_DIR}/teshsuite/smpi ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/vector.tesh)
+ ADD_TEST(smpi-indexed-thread ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:thread --cd ${CMAKE_BINARY_DIR}/teshsuite/smpi ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/indexed.tesh)
+ ADD_TEST(smpi-struct-thread ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:thread --cd ${CMAKE_BINARY_DIR}/teshsuite/smpi ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/struct.tesh)
+ ADD_TEST(smpi-pt2pt-thread ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:thread --cd ${CMAKE_BINARY_DIR}/teshsuite/smpi ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/pt2pt.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)
- ADD_TEST(smpi-indexed-raw ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:raw --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/indexed.tesh)
- ADD_TEST(smpi-struct-raw ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:raw --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/struct.tesh)
- ADD_TEST(smpi-pt2pt-raw ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:raw --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/pt2pt.tesh)
+ ADD_TEST(smpi-bcast-raw ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:raw --cd ${CMAKE_BINARY_DIR}/teshsuite/smpi ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/bcast.tesh)
+ ADD_TEST(smpi-reduce-raw ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:raw --cd ${CMAKE_BINARY_DIR}/teshsuite/smpi ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/reduce.tesh)
+ ADD_TEST(smpi-vector-raw ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:raw --cd ${CMAKE_BINARY_DIR}/teshsuite/smpi ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/vector.tesh)
+ ADD_TEST(smpi-indexed-raw ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:raw --cd ${CMAKE_BINARY_DIR}/teshsuite/smpi ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/indexed.tesh)
+ ADD_TEST(smpi-struct-raw ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:raw --cd ${CMAKE_BINARY_DIR}/teshsuite/smpi ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/struct.tesh)
+ ADD_TEST(smpi-pt2pt-raw ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:raw --cd ${CMAKE_BINARY_DIR}/teshsuite/smpi ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/pt2pt.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)
- ADD_TEST(smpi-indexed-ucontext ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:ucontext --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/indexed.tesh)
- ADD_TEST(smpi-struct-ucontext ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:ucontext --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/struct.tesh)
- ADD_TEST(smpi-pt2pt-ucontext ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:ucontext --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/pt2pt.tesh)
+ ADD_TEST(smpi-bcast-ucontext ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:ucontext --cd ${CMAKE_BINARY_DIR}/teshsuite/smpi ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/bcast.tesh)
+ ADD_TEST(smpi-reduce-ucontext ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:ucontext --cd ${CMAKE_BINARY_DIR}/teshsuite/smpi ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/reduce.tesh)
+ ADD_TEST(smpi-vector-ucontex ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:ucontext --cd ${CMAKE_BINARY_DIR}/teshsuite/smpi ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/vector.tesh)
+ ADD_TEST(smpi-indexed-ucontext ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:ucontext --cd ${CMAKE_BINARY_DIR}/teshsuite/smpi ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/indexed.tesh)
+ ADD_TEST(smpi-struct-ucontext ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:ucontext --cd ${CMAKE_BINARY_DIR}/teshsuite/smpi ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/struct.tesh)
+ ADD_TEST(smpi-pt2pt-ucontext ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:ucontext --cd ${CMAKE_BINARY_DIR}/teshsuite/smpi ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/pt2pt.tesh)
endif(CONTEXT_UCONTEXT)
if(HAVE_TRACING)
teshsuite/simdag/partask/CMakeLists.txt
teshsuite/simdag/platforms/CMakeLists.txt
teshsuite/xbt/CMakeLists.txt
+ teshsuite/smpi/CMakeLists.txt
)
set(TOOLS_CMAKEFILES_TXT
add_subdirectory(${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/network/mxn)
add_subdirectory(${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/partask)
add_subdirectory(${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/platforms)
+add_subdirectory(${CMAKE_HOME_DIRECTORY}/teshsuite/smpi)
add_subdirectory(${CMAKE_HOME_DIRECTORY}/teshsuite/msg)
add_subdirectory(${CMAKE_HOME_DIRECTORY}/teshsuite/msg/trace)
include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
- add_executable(alltoall2 alltoall2.c )
- add_executable(alltoall_basic alltoall_basic.c)
- add_executable(alltoallv alltoallv.c)
- add_executable(allreduce allreduce.c)
- add_executable(bcast bcast.c)
+
add_executable(bcbench bcbench.c)
- add_executable(compute compute.c)
- add_executable(compute2 compute2.c)
- add_executable(compute3 compute3.c)
- add_executable(pingpong pingpong.c)
- add_executable(scatter scatter.c)
- add_executable(reduce reduce.c)
- add_executable(split split.c)
- add_executable(dsend dsend.c)
add_executable(mvmul mvmul.c)
- add_executable(smpi_sendrecv sendrecv.c)
add_executable(smpi_traced tracing/smpi_traced.c)
add_executable(smpi_traced_simple tracing/smpi_traced_simple.c)
- add_executable(ttest01 ttest01.c)
- add_executable(vector_test vector_test.c)
- add_executable(hvector_test hvector_test.c)
- add_executable(indexed_test indexed_test.c)
- add_executable(struct_test struct_test.c)
add_executable(mc_bugged1 mc_bugged1.c)
add_executable(mc_bugged2 mc_bugged2.c)
add_executable(smpi_replay replay/replay.c)
- target_link_libraries(alltoall2 m simgrid smpi )
- target_link_libraries(alltoall_basic m simgrid smpi )
- target_link_libraries(alltoallv m simgrid smpi )
- target_link_libraries(allreduce m simgrid smpi )
- target_link_libraries(bcast m simgrid smpi )
target_link_libraries(bcbench m simgrid smpi )
- target_link_libraries(compute m simgrid smpi )
- target_link_libraries(compute2 m simgrid smpi )
- target_link_libraries(compute3 m simgrid smpi )
- target_link_libraries(pingpong m simgrid smpi )
- target_link_libraries(scatter m simgrid smpi )
- target_link_libraries(reduce m simgrid smpi )
- target_link_libraries(split m simgrid smpi )
- target_link_libraries(dsend m simgrid smpi )
target_link_libraries(mvmul m simgrid smpi )
- target_link_libraries(smpi_sendrecv m simgrid smpi )
target_link_libraries(smpi_traced m simgrid smpi )
target_link_libraries(smpi_traced_simple m simgrid smpi )
- target_link_libraries(ttest01 m simgrid smpi )
- target_link_libraries(vector_test m simgrid smpi )
- target_link_libraries(hvector_test m simgrid smpi )
- target_link_libraries(indexed_test m simgrid smpi )
- target_link_libraries(struct_test m simgrid smpi )
target_link_libraries(mc_bugged1 m simgrid smpi )
target_link_libraries(mc_bugged2 m simgrid smpi )
target_link_libraries(smpi_replay m simgrid smpi )
- set_target_properties(smpi_sendrecv PROPERTIES RENAME sendrecv)
endif(enable_smpi)
set(tesh_files
${tesh_files}
- ${CMAKE_CURRENT_SOURCE_DIR}/bcast.tesh
- ${CMAKE_CURRENT_SOURCE_DIR}/reduce.tesh
${CMAKE_CURRENT_SOURCE_DIR}/tracing/smpi_traced.tesh
PARENT_SCOPE
)
)
set(examples_src
${examples_src}
- ${CMAKE_CURRENT_SOURCE_DIR}/alltoallv.c
${CMAKE_CURRENT_SOURCE_DIR}/mc_bugged2.c
- ${CMAKE_CURRENT_SOURCE_DIR}/get_processor_name.c
- ${CMAKE_CURRENT_SOURCE_DIR}/pingpong.c
- ${CMAKE_CURRENT_SOURCE_DIR}/bcast.c
- ${CMAKE_CURRENT_SOURCE_DIR}/allreduce.c
- ${CMAKE_CURRENT_SOURCE_DIR}/alltoall_basic.c
- ${CMAKE_CURRENT_SOURCE_DIR}/sendrecv.c
${CMAKE_CURRENT_SOURCE_DIR}/mc_bugged1.c
- ${CMAKE_CURRENT_SOURCE_DIR}/reduce.c
${CMAKE_CURRENT_SOURCE_DIR}/mvmul.c
- ${CMAKE_CURRENT_SOURCE_DIR}/compute2.c
- ${CMAKE_CURRENT_SOURCE_DIR}/split.c
- ${CMAKE_CURRENT_SOURCE_DIR}/dsend.c
- ${CMAKE_CURRENT_SOURCE_DIR}/ttest01.c
- ${CMAKE_CURRENT_SOURCE_DIR}/compute.c
- ${CMAKE_CURRENT_SOURCE_DIR}/compute3.c
- ${CMAKE_CURRENT_SOURCE_DIR}/alltoall2.c
- ${CMAKE_CURRENT_SOURCE_DIR}/scatter.c
- ${CMAKE_CURRENT_SOURCE_DIR}/sendtest.c
- ${CMAKE_CURRENT_SOURCE_DIR}/barrier.c
${CMAKE_CURRENT_SOURCE_DIR}/bcbench.c
- ${CMAKE_CURRENT_SOURCE_DIR}/vector_test.c
- ${CMAKE_CURRENT_SOURCE_DIR}/hvector_test.c
- ${CMAKE_CURRENT_SOURCE_DIR}/indexed_test.c
- ${CMAKE_CURRENT_SOURCE_DIR}/struct_test.c
${CMAKE_CURRENT_SOURCE_DIR}/replay/replay.c
${CMAKE_CURRENT_SOURCE_DIR}/tracing/smpi_traced.c
${CMAKE_CURRENT_SOURCE_DIR}/tracing/smpi_traced_simple.c
--- /dev/null
+cmake_minimum_required(VERSION 2.6)
+
+if(enable_smpi)
+ set(CMAKE_C_COMPILER "${CMAKE_BINARY_DIR}/bin/smpicc")
+
+ set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
+
+ include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
+
+ add_executable(alltoall2 alltoall2.c )
+ add_executable(alltoall_basic alltoall_basic.c)
+ add_executable(alltoallv alltoallv.c)
+ add_executable(allreduce allreduce.c)
+ add_executable(bcast bcast.c)
+ add_executable(compute compute.c)
+ add_executable(compute2 compute2.c)
+ add_executable(compute3 compute3.c)
+ add_executable(pingpong pingpong.c)
+ add_executable(scatter scatter.c)
+ add_executable(reduce reduce.c)
+ add_executable(split split.c)
+ add_executable(dsend dsend.c)
+ add_executable(smpi_sendrecv sendrecv.c)
+ add_executable(ttest01 ttest01.c)
+ add_executable(vector_test vector_test.c)
+ add_executable(hvector_test hvector_test.c)
+ add_executable(indexed_test indexed_test.c)
+ add_executable(struct_test struct_test.c)
+
+ target_link_libraries(alltoall2 m simgrid smpi )
+ target_link_libraries(alltoall_basic m simgrid smpi )
+ target_link_libraries(alltoallv m simgrid smpi )
+ target_link_libraries(allreduce m simgrid smpi )
+ target_link_libraries(bcast m simgrid smpi )
+ target_link_libraries(compute m simgrid smpi )
+ target_link_libraries(compute2 m simgrid smpi )
+ target_link_libraries(compute3 m simgrid smpi )
+ target_link_libraries(pingpong m simgrid smpi )
+ target_link_libraries(scatter m simgrid smpi )
+ target_link_libraries(reduce m simgrid smpi )
+ target_link_libraries(split m simgrid smpi )
+ target_link_libraries(dsend m simgrid smpi )
+ target_link_libraries(smpi_sendrecv m simgrid smpi )
+ target_link_libraries(ttest01 m simgrid smpi )
+ target_link_libraries(vector_test m simgrid smpi )
+ target_link_libraries(hvector_test m simgrid smpi )
+ target_link_libraries(indexed_test m simgrid smpi )
+ target_link_libraries(struct_test m simgrid smpi )
+
+ set_target_properties(smpi_sendrecv PROPERTIES RENAME sendrecv)
+endif(enable_smpi)
+
+set(tesh_files
+ ${tesh_files}
+ ${CMAKE_CURRENT_SOURCE_DIR}/bcast.tesh
+ ${CMAKE_CURRENT_SOURCE_DIR}/reduce.tesh
+ PARENT_SCOPE
+ )
+set(xml_files
+ ${xml_files}
+ PARENT_SCOPE
+ )
+set(examples_src
+ ${examples_src}
+ ${CMAKE_CURRENT_SOURCE_DIR}/alltoallv.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/get_processor_name.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/pingpong.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/bcast.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/allreduce.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/alltoall_basic.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/sendrecv.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/reduce.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/compute2.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/split.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/dsend.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/ttest01.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/compute.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/compute3.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/alltoall2.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/scatter.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/sendtest.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/barrier.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/vector_test.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/hvector_test.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/indexed_test.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/struct_test.c
+ PARENT_SCOPE
+ )
+set(bin_files
+ ${bin_files}
+ ${CMAKE_CURRENT_SOURCE_DIR}/hostfile
+ PARENT_SCOPE
+ )
+set(txt_files
+ ${txt_files}
+ PARENT_SCOPE
+ )
# (since we want to pass it to the child, it has to be redefined before each command)
# Go for the first test
p Test Broadcast with less processes than hosts
-$ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 3 ./bcast -q
+$ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../../examples/msg/small_platform.xml -np 3 ./bcast -q
> [rank 0] -> Tremblay
> [rank 1] -> Jupiter
> [rank 2] -> Fafard
# second test
p Test Broadcast with as much processes than hosts
! setenv LD_LIBRARY_PATH=../../lib
-$ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 5 ./bcast -q
+$ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../../examples/msg/small_platform.xml -np 5 ./bcast -q
> [rank 0] -> Tremblay
> [rank 1] -> Jupiter
> [rank 2] -> Fafard
# Another test
p Test Broadcast with more processes than hosts
! setenv LD_LIBRARY_PATH=../../lib
-$ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 12 ./bcast -q
+$ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../../examples/msg/small_platform.xml -np 12 ./bcast -q
> You requested to use 12 processes, but there is only 5 processes in your hostfile...
> [rank 0] -> Tremblay
> [rank 1] -> Jupiter
--- /dev/null
+Tremblay
+Jupiter
+Fafard
+Ginette
+Bourassa
+
\ No newline at end of file
p Test indexed
! setenv LD_LIBRARY_PATH=../../lib
! output sort
-$ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 2 ./indexed_test -q
+$ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../../examples/msg/small_platform.xml -np 2 ./indexed_test -q
p Test indexed
! setenv LD_LIBRARY_PATH=../../lib
! output sort
-$ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 2 ./indexed_test -q
+$ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../../examples/msg/small_platform.xml -np 2 ./indexed_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'
p Test dsend
! setenv LD_LIBRARY_PATH=../../lib
! output sort
-$ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 2 ./dsend -q
+$ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../../examples/msg/small_platform.xml -np 2 ./dsend -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'
p Test pingpong
! setenv LD_LIBRARY_PATH=../../lib
! output sort
-$ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 4 ./pingpong -q
+$ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../../examples/msg/small_platform.xml -np 4 ./pingpong -q
> *** Ping-pong test (MPI_Send/MPI_Recv) ***
> == pivot=0 : pingpong [0] <--> [1]
> == pivot=1 : pingpong [1] <--> [2]
# (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
-$ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 3 ./reduce -q
+$ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../../examples/msg/small_platform.xml -np 3 ./reduce -q
> [rank 0] -> Tremblay
> [rank 1] -> Jupiter
> [rank 2] -> Fafard
# second test
! setenv LD_LIBRARY_PATH=../../lib
p Test Reduce with 5 processes
-$ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 5 ./reduce -q
+$ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../../examples/msg/small_platform.xml -np 5 ./reduce -q
> [rank 0] -> Tremblay
> [rank 1] -> Jupiter
> [rank 2] -> Fafard
# third test
! setenv LD_LIBRARY_PATH=../../lib
p Test Reduce with 12 processes
-$ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 12 ./reduce -q
+$ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../../examples/msg/small_platform.xml -np 12 ./reduce -q
> You requested to use 12 processes, but there is only 5 processes in your hostfile...
> [rank 0] -> Tremblay
> [rank 1] -> Jupiter
p Test struct
! setenv LD_LIBRARY_PATH=../../lib
! output sort
-$ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 2 ./struct_test -q
+$ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../../examples/msg/small_platform.xml -np 2 ./struct_test -q
> Process 0 got -2 (-2?) and 8.000000 (8.0?), tab (should be all 0): 0 0 0 0 0 0
> Process 1 got -2 (-2?) and 8.000000 (8.0?), tab (should be all 0): 0 0 0 0 0 0
> [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
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
+$ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../../examples/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'