We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2de6948 commit 27e5cc9Copy full SHA for 27e5cc9
src/avx512-common-argsort.h
@@ -12,9 +12,17 @@
12
#include <stdio.h>
13
#include <vector>
14
15
+/* Workaround for NumPy failed build on macOS x86_64: implicit instantiation of
16
+ * undefined template 'zmm_vector<unsigned long>'*/
17
+#ifdef __APPLE__
18
+using argtype = typename std::conditional<sizeof(arrsize_t) == sizeof(int32_t),
19
+ ymm_vector<uint32_t>,
20
+ zmm_vector<uint64_t>>::type;
21
+#else
22
using argtype = typename std::conditional<sizeof(arrsize_t) == sizeof(int32_t),
23
ymm_vector<arrsize_t>,
24
zmm_vector<arrsize_t>>::type;
25
+#endif
26
using argreg_t = typename argtype::reg_t;
27
28
/*
0 commit comments