From b29cd3bda613f1704def8e5e944912da1db44782 Mon Sep 17 00:00:00 2001 From: Sam Reeve <6740307+streeve@users.noreply.github.com> Date: Fri, 25 Aug 2023 09:11:28 -0400 Subject: [PATCH] Replace deprecated Kokkos threads arg in unit tests --- cmake/test_harness/test_harness.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/test_harness/test_harness.cmake b/cmake/test_harness/test_harness.cmake index 641322684..c869013e7 100644 --- a/cmake/test_harness/test_harness.cmake +++ b/cmake/test_harness/test_harness.cmake @@ -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} $ ${gtest_args} --kokkos-threads=${_thread}) + ${NONMPI_PRECOMMAND} $ ${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} $ ${gtest_args} --kokkos-threads=${_thread}) + ${NONMPI_PRECOMMAND} ${VALGRIND_EXECUTABLE} ${VALGRIND_ARGS} $ ${gtest_args} --kokkos-num-threads=${_thread}) if(_device STREQUAL OPENMP) set_property(TEST ${_target}_nt_${_thread}_valgrind PROPERTY ENVIRONMENT OMP_NUM_THREADS=${_thread}) endif()