diff --git a/src/avx512-common-argsort.h b/src/avx512-common-argsort.h index aa90c748..18e1a0e6 100644 --- a/src/avx512-common-argsort.h +++ b/src/avx512-common-argsort.h @@ -12,9 +12,17 @@ #include #include +/* Workaround for NumPy failed build on macOS x86_64: implicit instantiation of + * undefined template 'zmm_vector'*/ +#ifdef __APPLE__ +using argtype = typename std::conditional, + zmm_vector>::type; +#else using argtype = typename std::conditional, zmm_vector>::type; +#endif using argreg_t = typename argtype::reg_t; /*