diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2018-04-05 13:08:32 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-05 13:08:32 -0600 |
| commit | e0f884692f629d931d3673adc8dd6b0938cefa52 (patch) | |
| tree | 56f4c698c5776528e789fc09a3830b81adefcf6b /numpy/core/include | |
| parent | 6574fcfa417cb2996be319a9208a9e9fa1e29d7c (diff) | |
| parent | cde5583abda2bd3da410058b2e1ea4108073b4d3 (diff) | |
| download | numpy-e0f884692f629d931d3673adc8dd6b0938cefa52.tar.gz | |
Merge pull request #10814 from juliantaylor/improve-cpuid
BUG: verify the OS supports avx instruction
Diffstat (limited to 'numpy/core/include')
| -rw-r--r-- | numpy/core/include/numpy/npy_common.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/numpy/core/include/numpy/npy_common.h b/numpy/core/include/numpy/npy_common.h index b7634a930..5faff4385 100644 --- a/numpy/core/include/numpy/npy_common.h +++ b/numpy/core/include/numpy/npy_common.h @@ -101,22 +101,6 @@ #endif #endif -#ifdef HAVE___BUILTIN_CPU_SUPPORTS - #ifdef HAVE_ATTRIBUTE_TARGET_AVX2 - #define NPY_CPU_SUPPORTS_AVX2 __builtin_cpu_supports("avx2") - #else - #define NPY_CPU_SUPPORTS_AVX2 0 - #endif - #ifdef HAVE_ATTRIBUTE_TARGET_AVX - #define NPY_CPU_SUPPORTS_AVX __builtin_cpu_supports("avx") - #else - #define NPY_CPU_SUPPORTS_AVX 0 - #endif -#else - #define NPY_CPU_SUPPORTS_AVX 0 - #define NPY_CPU_SUPPORTS_AVX2 0 -#endif - #if defined(_MSC_VER) #define NPY_INLINE __inline #elif defined(__GNUC__) |
