diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2023-05-11 15:38:18 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2023-05-11 16:45:04 -0600 |
commit | 725777de1b8dea22edf9421a47ccf0807b477ae7 (patch) | |
tree | 8714832d399b3078832da5c53b9788ebd162470d | |
parent | 181c15b294d6dd164e4c41ddbb1c5feae9b5beee (diff) | |
download | numpy-725777de1b8dea22edf9421a47ccf0807b477ae7.tar.gz |
MAINT, BLD: Disable spr for clang
Clang has a bug and fails when compiling
`simd_qsort_16bit.dispatch.avx512_spr.cpp`
Closes #23730.
-rw-r--r-- | numpy/distutils/checks/cpu_avx512_spr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/distutils/checks/cpu_avx512_spr.c b/numpy/distutils/checks/cpu_avx512_spr.c index 3c9575a57..9710d0b2f 100644 --- a/numpy/distutils/checks/cpu_avx512_spr.c +++ b/numpy/distutils/checks/cpu_avx512_spr.c @@ -15,6 +15,10 @@ int main(int argc, char **argv) { +/* clang has a bug regarding our spr coode, see gh-23730. */ +#if __clang__ +#error +#endif __m512h a = _mm512_loadu_ph((void*)argv[argc-1]); __m512h temp = _mm512_fmadd_ph(a, a, a); _mm512_storeu_ph((void*)(argv[argc-1]), temp); |