Skip to content

Commit

Permalink
MAINT: manually include 16bit file on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
r-devulap committed Apr 26, 2024
1 parent c3fec33 commit 4045b72
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions numpy/_core/src/npysort/x86_simd_qsort_16bit.dispatch.cpp
Expand Up @@ -2,6 +2,13 @@
#ifndef __CYGWIN__

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

namespace np { namespace qsort_simd {

Expand Down

0 comments on commit 4045b72

Please sign in to comment.