Skip to content

Commit 4045b72

Browse files
author
Raghuveer Devulapalli
committed
MAINT: manually include 16bit file on MSVC
1 parent c3fec33 commit 4045b72

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
#ifndef __CYGWIN__
33

44
#include "x86-simd-sort/src/x86simdsort-static-incl.h"
5+
/*
6+
* MSVC doesn't set the macro __AVX512VBMI2__ which is required for the 16-bit
7+
* functions and therefore we need to manually include this file here
8+
*/
9+
#ifdef _MSC_VER
10+
#include "x86-simd-sort/src/avx512-16bit-qsort.hpp"
11+
#endif
512

613
namespace np { namespace qsort_simd {
714

0 commit comments

Comments
 (0)