Skip to content

Commit

Permalink
refine for cuda uvm
Browse files Browse the repository at this point in the history
  • Loading branch information
fnrizzi committed Jun 26, 2023
1 parent 492bb57 commit 543accd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion algorithms/src/sorting/Kokkos_SortPublicAPI.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ void sort([[maybe_unused]] const ExecutionSpace& exec,
return;
}

if constexpr (SpaceAccessibility<HostSpace, MemSpace>::accessible) {
if constexpr (SpaceAccessibility<HostSpace, MemSpace>::accessible
#if defined(KOKKOS_ENABLE_CUDA)
&& !std::is_same_v<MemSpace, Kokkos::CudaUVMSpace>
#endif
)
{
auto first = ::Kokkos::Experimental::begin(view);
auto last = ::Kokkos::Experimental::end(view);
std::sort(first, last);
Expand Down

0 comments on commit 543accd

Please sign in to comment.