Skip to content

Commit

Permalink
Merge branch 'branch-24.12' into add-tfidf-bm25
Browse files Browse the repository at this point in the history
  • Loading branch information
benfred authored Oct 25, 2024
2 parents 766ff24 + 673a5bb commit 8e172af
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions cpp/include/raft/matrix/detail/columnWiseSort.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,11 @@ RAFT_KERNEL devOffsetKernel(T* in, T value, int n_times)
}

// block level radix sort - can only sort as much data we can fit within shared memory
template <
typename InType,
typename OutType,
int BLOCK_SIZE,
int ITEMS_PER_THREAD,
typename std::enable_if<TemplateChecker<InType, BLOCK_SIZE>::IsValid, InType>::type* = nullptr>
template <typename InType,
typename OutType,
int BLOCK_SIZE,
int ITEMS_PER_THREAD,
typename std::enable_if_t<TemplateChecker<InType, BLOCK_SIZE>::IsValid, bool> = true>
RAFT_KERNEL __launch_bounds__(1024, 1) devKeyValSortColumnPerRow(const InType* inputKeys,
InType* outputKeys,
OutType* inputVals,
Expand Down Expand Up @@ -120,12 +119,11 @@ RAFT_KERNEL __launch_bounds__(1024, 1) devKeyValSortColumnPerRow(const InType* i
}
}

template <
typename InType,
typename OutType,
int BLOCK_SIZE,
int ITEMS_PER_THREAD,
typename std::enable_if<!(TemplateChecker<InType, BLOCK_SIZE>::IsValid), InType>::type* = nullptr>
template <typename InType,
typename OutType,
int BLOCK_SIZE,
int ITEMS_PER_THREAD,
typename std::enable_if_t<!TemplateChecker<InType, BLOCK_SIZE>::IsValid, bool> = true>
RAFT_KERNEL devKeyValSortColumnPerRow(const InType* inputKeys,
InType* outputKeys,
OutType* inputVals,
Expand Down

0 comments on commit 8e172af

Please sign in to comment.