X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4a6b0a991a67e6f2f67c03fed43529e078da7115..e3ff580889f5d85e5bdb7a42bad335184bbce0ed:/teshsuite/smpi/mpich3-test/perf/CMakeLists.txt diff --git a/teshsuite/smpi/mpich3-test/perf/CMakeLists.txt b/teshsuite/smpi/mpich3-test/perf/CMakeLists.txt index 686fe1bad9..85e5185968 100644 --- a/teshsuite/smpi/mpich3-test/perf/CMakeLists.txt +++ b/teshsuite/smpi/mpich3-test/perf/CMakeLists.txt @@ -6,53 +6,26 @@ if(enable_smpi AND enable_smpi_MPICH3_testsuite) set(CMAKE_Fortran_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpiff") endif() - set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}") - include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi") include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../include/") - add_executable(commcreatep commcreatep.c) -# add_executable(dtpack dtpack.c) -# add_executable(indexperf indexperf.c) -# add_executable(manyrma manyrma.c) -# add_executable(nestvec2 nestvec2.c) -# add_executable(nestvec nestvec.c) - add_executable(non_zero_root non_zero_root.c) - add_executable(sendrecvl sendrecvl.c) - add_executable(timer timer.c) - add_executable(transp-datatype transp-datatype.c) - add_executable(twovec twovec.c) + foreach(file commcreatep non_zero_root sendrecvl timer transp-datatype twovec dtpack indexperf nestvec2 nestvec) + #not compiled files manyrma + add_executable(${file} EXCLUDE_FROM_ALL ${file}.c) + add_dependencies(tests ${file}) + target_link_libraries(${file} simgrid mtest_c) + endforeach() +endif() - target_link_libraries(commcreatep simgrid mtest_c) -# target_link_libraries(dtpack simgrid mtest_c) -# target_link_libraries(indexperf simgrid mtest_c) -# target_link_libraries(manyrma simgrid mtest_c) -# target_link_libraries(nestvec2 simgrid mtest_c) -# target_link_libraries(nestvec simgrid mtest_c) - target_link_libraries(non_zero_root simgrid mtest_c) - target_link_libraries(sendrecvl simgrid mtest_c) - target_link_libraries(timer simgrid mtest_c) - target_link_libraries(transp-datatype simgrid mtest_c) - target_link_libraries(twovec simgrid mtest_c) +if (enable_smpi_MPICH3_testsuite AND HAVE_RAW_CONTEXTS) + ADD_TEST(test-smpi-mpich3-perf-raw ${CMAKE_COMMAND} -E chdir ${CMAKE_BINARY_DIR}/teshsuite/smpi/mpich3-test/perf ${PERL_EXECUTABLE} ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/mpich3-test/runtests "-wrapper=${TESH_WRAPPER}" -mpiexec=${CMAKE_BINARY_DIR}/smpi_script/bin/smpirun -tests=${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/mpich3-test/perf/testlist -execarg=-platform\ ${CMAKE_HOME_DIRECTORY}/examples/platforms/cluster_backbone.xml -execarg=--log=root.thr:critical -execarg=--cfg=smpi/async-small-thresh:65536 -execarg=--cfg=contexts/factory:raw -execarg=--cfg=smpi/simulate-computation:0) endif() -set(examples_src - ${examples_src} - ${CMAKE_CURRENT_SOURCE_DIR}/allredtrace.c - ${CMAKE_CURRENT_SOURCE_DIR}/commcreatep.c - ${CMAKE_CURRENT_SOURCE_DIR}/dtpack.c - ${CMAKE_CURRENT_SOURCE_DIR}/indexperf.c - ${CMAKE_CURRENT_SOURCE_DIR}/manyrma.c - ${CMAKE_CURRENT_SOURCE_DIR}/nestvec2.c - ${CMAKE_CURRENT_SOURCE_DIR}/nestvec.c - ${CMAKE_CURRENT_SOURCE_DIR}/non_zero_root.c - ${CMAKE_CURRENT_SOURCE_DIR}/sendrecvl.c - ${CMAKE_CURRENT_SOURCE_DIR}/timer.c - ${CMAKE_CURRENT_SOURCE_DIR}/transp-datatype.c - ${CMAKE_CURRENT_SOURCE_DIR}/twovec.c - PARENT_SCOPE) -set(txt_files - ${txt_files} - ${CMAKE_CURRENT_SOURCE_DIR}/README - ${CMAKE_CURRENT_SOURCE_DIR}/testlist - PARENT_SCOPE) +foreach(file allredtrace commcreatep non_zero_root sendrecvl timer transp-datatype twovec dtpack indexperf manyrma + nestvec2 nestvec) + set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${file}.c) +endforeach() + +set(examples_src ${examples_src} PARENT_SCOPE) +set(txt_files ${txt_files} ${CMAKE_CURRENT_SOURCE_DIR}/README + ${CMAKE_CURRENT_SOURCE_DIR}/testlist PARENT_SCOPE)