Skip to content

Commit

Permalink
Replace deprecated Kokkos threads arg in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
streeve committed Aug 25, 2023
1 parent 193e49c commit b29cd3b
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 b29cd3b

Please sign in to comment.