From 27e5cc98fe6c2c930efa571f38f101f0b16a5c7b Mon Sep 17 00:00:00 2001 From: Raghuveer Devulapalli Date: Thu, 19 Oct 2023 10:15:57 -0700 Subject: [PATCH] Explicitly initialize with zmm_vector for arg methods on macOS --- src/avx512-common-argsort.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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; /*