Skip to content

Commit a9edf94

Browse files
Add comment about choosing threshold size
1 parent d496e08 commit a9edf94

File tree

1 file changed

+2
-0
lines changed
  • dpctl/tensor/libtensor/include/kernels/sorting

1 file changed

+2
-0
lines changed

dpctl/tensor/libtensor/include/kernels/sorting/sort.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ sycl::event stable_sort_axis1_contig_impl(
734734

735735
auto comp = Comp{};
736736

737+
// constant chosen experimentally to ensure monotonicity of
738+
// sorting performance, as measured on GPU Max, and Iris Xe
737739
constexpr size_t sequential_sorting_threshold = 16;
738740

739741
if (sort_nelems < sequential_sorting_threshold) {

0 commit comments

Comments
 (0)