Skip to content

Commit b6fb602

Browse files
author
Raghuveer Devulapalli
committed
std::sort needs compare operator for float16
1 parent f7f861c commit b6fb602

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/avx512-common-qsort.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ static void qsort_(type_t *arr, int64_t left, int64_t right, int64_t max_iters)
832832
* Resort to std::sort if quicksort isnt making any progress
833833
*/
834834
if (max_iters <= 0) {
835-
std::sort(arr + left, arr + right + 1);
835+
std::sort(arr + left, arr + right + 1, comparison_func<vtype>);
836836
return;
837837
}
838838
/*
@@ -868,7 +868,7 @@ static void qselect_(type_t *arr,
868868
* Resort to std::sort if quicksort isnt making any progress
869869
*/
870870
if (max_iters <= 0) {
871-
std::sort(arr + left, arr + right + 1);
871+
std::sort(arr + left, arr + right + 1, comparison_func<vtype>);
872872
return;
873873
}
874874
/*

0 commit comments

Comments
 (0)