Skip to content

Commit

Permalink
Set PROCESSORS and OMP_NUM_THREAD
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Hahn <[email protected]>
  • Loading branch information
quantumsteve committed May 9, 2024
1 parent 7f043bf commit fb3227c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,19 @@ foreach(RANK IN ITEMS 1 2 4 8 16)
add_test (NAME egyro_test_${RANK}
COMMAND ${CMAKE_BINARY_DIR}/egyro_test/korc_egyro.sh ${RANK}
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set_tests_properties (egyro_test_${RANK} PROPERTIES PROCESSORS ${RANK} ENVIRONMENT OMP_NUM_THREADS=1)

if(USE_PSPLINE)
add_test (NAME mars_test_${RANK}
COMMAND ${CMAKE_BINARY_DIR}/mars_test/korc_mars.sh ${RANK}
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
endif()
add_test (NAME mars_test_${RANK}
COMMAND ${CMAKE_BINARY_DIR}/mars_test/korc_mars.sh ${RANK}
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set_tests_properties (mars_test_${RANK} PROPERTIES PROCESSORS ${RANK} ENVIRONMENT OMP_NUM_THREADS=1)
endif()

add_test (NAME unit_testing_${RANK}
COMMAND ${MPIEXEC_EXECUTABLE} ${MPIEXEC_NUMPROC_FLAG} ${RANK} ./xtest TEST_OUT
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set_tests_properties (unit_testing_${RANK} PROPERTIES PROCESSORS ${RANK} ENVIRONMENT OMP_NUM_THREADS=1)
endif()
endforeach()

0 comments on commit fb3227c

Please sign in to comment.