Skip to content

Commit 9f7642d

Browse files
committed
Mark some functions [[maybe_unused]]
1 parent dc3e1e7 commit 9f7642d

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

numpy/_core/src/npysort/x86_simd_qsort_16bit.dispatch.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ namespace np { namespace qsort_simd {
1717
*/
1818
template<> void NPY_CPU_DISPATCH_CURFX(QSelect)(Half *arr, npy_intp num, npy_intp kth)
1919
{
20-
#if defined(NPY_HAVE_AVX512_SPR)
2120
x86simdsortStatic::qselect(reinterpret_cast<_Float16*>(arr), kth, num, true);
22-
#else
23-
avx512_qselect_fp16(reinterpret_cast<uint16_t*>(arr), kth, num, true, false);
24-
#endif
2521
}
2622

2723
template<> void NPY_CPU_DISPATCH_CURFX(QSelect)(uint16_t *arr, npy_intp num, npy_intp kth)
@@ -39,11 +35,7 @@ template<> void NPY_CPU_DISPATCH_CURFX(QSelect)(int16_t *arr, npy_intp num, npy_
3935
*/
4036
template<> void NPY_CPU_DISPATCH_CURFX(QSort)(Half *arr, npy_intp size)
4137
{
42-
#if defined(NPY_HAVE_AVX512_SPR)
4338
x86simdsortStatic::qsort(reinterpret_cast<_Float16*>(arr), size, true);
44-
#else
45-
avx512_qsort_fp16(reinterpret_cast<uint16_t*>(arr), size, true, false);
46-
#endif
4739
}
4840
template<> void NPY_CPU_DISPATCH_CURFX(QSort)(uint16_t *arr, npy_intp size)
4941
{

0 commit comments

Comments
 (0)