Skip to content

Commit ee0d01e

Browse files
committed
More uses of EKAT_ENABLE_GPU and a BFB flag guard.
1 parent 5fde493 commit ee0d01e

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
### THREADING ###
88
#######################
99

10-
if (Kokkos_ENABLE_CUDA)
10+
if (EKAT_ENABLE_GPU)
1111
set (DEFAULT_MAX_THREADS 1)
1212
else ()
1313
set (DEFAULT_MAX_THREADS 16)

tests/algorithm/tridiag_tests_correctness.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,9 @@ TEST_CASE("property", "tridiag") {
570570
}
571571

572572
TEST_CASE("bfb", "tridiag") {
573+
#ifdef EKAT_DEFAULT_BFB
573574
ekat::test::correct::run_bfb_test<1,1>();
574575
if (EKAT_TEST_PACK_SIZE > 1)
575576
ekat::test::correct::run_bfb_test<EKAT_TEST_PACK_SIZE, EKAT_TEST_PACK_SIZE>();
577+
#endif
576578
}

tests/kokkos/kokkos_utils_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ void test_view_reduction(const Scalar a=Scalar(0.0), const int begin=0, const in
290290
const auto results_h = Kokkos::create_mirror_view(results);
291291

292292
int team_size = ExeSpace::concurrency();
293-
#ifdef KOKKOS_ENABLE_CUDA
293+
#ifdef EKAT_ENABLE_GPU
294294
ExeSpace temp_space;
295295
auto num_sm = temp_space.impl_internal_space_instance()->m_multiProcCount;
296296
team_size /= (ekat::is_single_precision<Real>::value ? num_sm*64 : num_sm*32);

tests/kokkos/workspace_tests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,8 +492,8 @@ TEST_CASE("workspace_manager", "[utils]") {
492492
unit_test::UnitWrap::UnitTest<ekat::DefaultDevice>::unittest_workspace();
493493
}
494494

495-
#ifdef KOKKOS_ENABLE_CUDA
496-
// Force host testing on CUDA
495+
#ifdef EKAT_ENABLE_GPU
496+
// Force host testing when the exe space is a GPU space.
497497
TEST_CASE("workspace_manager_host", "[utils]") {
498498
unit_test::UnitWrap::UnitTest<ekat::HostDevice>::unittest_workspace();
499499
}

0 commit comments

Comments
 (0)