Skip to content

Commit

Permalink
Fix tests for Unified Memory option being on
Browse files Browse the repository at this point in the history
  • Loading branch information
crtrott committed Mar 5, 2024
1 parent f433545 commit 94d624f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/unit_test/cuda/TestCuda_Spaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ TEST(cuda, space_access) {
#ifndef KOKKOS_ENABLE_IMPL_CUDA_UNIFIED_MEMORY
static_assert(std::is_same<Kokkos::Impl::HostMirror<Kokkos::CudaSpace>::Space,
Kokkos::HostSpace>::value);
#else
static_assert(std::is_same<Kokkos::Impl::HostMirror<Kokkos::CudaSpace>::Space,
Kokkos::Device<Kokkos::HostSpace::execution_space,
Kokkos::CudaSpace>>::value);
#endif

static_assert(
Expand Down

0 comments on commit 94d624f

Please sign in to comment.