Skip to content

Commit

Permalink
Disable AVX512 on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
iver56 committed Jul 29, 2024
1 parent 7593295 commit 16f772c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions numpy_minmax/_minmax.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,15 @@ MinMaxResult minmax_contiguous(const float *a, size_t length) {

#if IS_X86_64
if (length >= 16) {
#if defined(__APPLE__) && defined(__MACH__)
return minmax_avx(a, length);
#else
if (system_supports_avx512()) {
return minmax_avx512(a, length);
} else {
return minmax_avx(a, length);
}
#endif
} else {
return minmax_pairwise(a, length);
}
Expand Down

0 comments on commit 16f772c

Please sign in to comment.