Skip to content

Commit

Permalink
Merge pull request #672 from streeve/fixup_cmdline_threads_arg
Browse files Browse the repository at this point in the history
Update unit test Kokkos num threads arg
  • Loading branch information
streeve authored Aug 25, 2023
2 parents 0a3864f + b29cd3b commit 0552086
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/test_harness/test_harness.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ macro(Cabana_add_tests)
if(_device STREQUAL THREADS OR _device STREQUAL OPENMP)
foreach(_thread ${CABANA_UNIT_TEST_NUMTHREADS})
add_test(NAME ${_target}_nt_${_thread} COMMAND
${NONMPI_PRECOMMAND} $<TARGET_FILE:${_target}> ${gtest_args} --kokkos-threads=${_thread})
${NONMPI_PRECOMMAND} $<TARGET_FILE:${_target}> ${gtest_args} --kokkos-num-threads=${_thread})
if(_device STREQUAL OPENMP)
set_property(TEST ${_target}_nt_${_thread} PROPERTY ENVIRONMENT OMP_NUM_THREADS=${_thread})
endif()
if(VALGRIND_FOUND)
add_test(NAME ${_target}_nt_${_thread}_valgrind COMMAND
${NONMPI_PRECOMMAND} ${VALGRIND_EXECUTABLE} ${VALGRIND_ARGS} $<TARGET_FILE:${_target}> ${gtest_args} --kokkos-threads=${_thread})
${NONMPI_PRECOMMAND} ${VALGRIND_EXECUTABLE} ${VALGRIND_ARGS} $<TARGET_FILE:${_target}> ${gtest_args} --kokkos-num-threads=${_thread})
if(_device STREQUAL OPENMP)
set_property(TEST ${_target}_nt_${_thread}_valgrind PROPERTY ENVIRONMENT OMP_NUM_THREADS=${_thread})
endif()
Expand Down

0 comments on commit 0552086

Please sign in to comment.