Skip to content

Commit

Permalink
Add guards for Cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed May 16, 2023
1 parent c67ddea commit ee43d2a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions core/unit_test/TestReducers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,9 @@ struct TestReducers {
// FIXME_OPENACC - OpenACC (V3.3) does not support custom reductions.
test_minloc(10003);
#if defined(KOKKOS_COMPILER_NVHPC) // FIXME_NVHPC misaligned memory
#if defined(KOKKOS_ENABLE_CUDA)
if (!std::is_same_v<ExecSpace, Kokkos::Cuda>)
#endif
// FIXME_OPENMPTARGET requires custom reductions.
#if !defined(KOKKOS_ENABLE_OPENMPTARGET)
test_minloc_2d(100);
Expand All @@ -1246,7 +1248,9 @@ struct TestReducers {
// FIXME_OPENACC - OpenACC (V3.3) does not support custom reductions.
test_maxloc(10007);
#if !defined(KOKKOS_COMPILER_NVHPC) // FIXME_NVHPC misaligned memory
#if defined(KOKKOS_ENABLE_CUDA)
if (!std::is_same_v<ExecSpace, Kokkos::Cuda>)
#endif
// FIXME_OPENMPTARGET requires custom reductions.
#if !defined(KOKKOS_ENABLE_OPENMPTARGET)
test_maxloc_2d(100);
Expand All @@ -1261,8 +1265,8 @@ struct TestReducers {
#if defined(KOKKOS_COMPILER_CLANG) && (KOKKOS_COMPILER_CLANG >= 1300)
test_minmaxloc(10007);
#else
if (!std::is_same_v<ExecSpace, Kokkos::Experimental::OpenMPTarget>)
test_minmaxloc(10007);
if (!std::is_same_v<ExecSpace, Kokkos::Experimental::OpenMPTarget>)
test_minmaxloc(10007);
#endif
#else
test_minmaxloc(10007);
Expand Down

0 comments on commit ee43d2a

Please sign in to comment.