Skip to content

Commit

Permalink
Drop sort_on_device
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Mar 1, 2024
1 parent 7a9392f commit a1b11d9
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions algorithms/src/sorting/impl/Kokkos_SortByKeyImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,11 @@ static_assert_is_admissible_to_kokkos_sort_by_key(const ViewType& /* view */) {
// Kokkos::sort on the host. This type trait determines at compile-time where we
// want to execute.
template <class ExecutionSpace, class Layout>
struct sort_on_device : std::false_type {};

template <class T, class Layout>
inline constexpr bool sort_on_device_v = sort_on_device<T, Layout>::value;
inline constexpr bool sort_on_device_v = false;

#if defined(KOKKOS_ENABLE_CUDA)
template <class Layout>
struct sort_on_device<Kokkos::Cuda, Layout> : std::true_type {};
inline constexpr bool sort_on_device_v<Kokkos::Cuda, Layout> = true;

template <class KeysDataType, class... KeysProperties, class ValuesDataType,
class... ValuesProperties, class... MaybeComparator>
Expand All @@ -118,9 +115,9 @@ void sort_by_key_cudathrust(

#if defined(KOKKOS_ENABLE_ONEDPL)
template <class Layout>
struct sort_on_device<Kokkos::Experimental::SYCL, Layout>
: std::bool_constant<std::is_same_v<Layout, Kokkos::LayoutLeft> ||
std::is_same_v<Layout, Kokkos::LayoutRight>> {};
inline constexpr bool sort_on_device_v<Kokkos::Experimental::SYCL, Layout> =
std::is_same_v<Layout, Kokkos::LayoutLeft> ||
std::is_same_v<Layout, Kokkos::LayoutRight>;

#ifdef KOKKOS_ONEDPL_HAS_SORT_BY_KEY
template <class KeysDataType, class... KeysProperties, class ValuesDataType,
Expand Down

0 comments on commit a1b11d9

Please sign in to comment.