summaryrefslogtreecommitdiff
path: root/numpy/distutils/checks/cpu_sse2.c
Commit message (Collapse)AuthorAgeFilesLines
* BUG, SIMD: Fix detect host/native CPU features on ICC during compile-timeSayed Adel2021-05-261-0/+13
| | | | | | | | Unlike GCC and CLANG, Intel Compiler exposes all supported intrinsics, whether or not the build options for those features are specified. Therefore, we must test #definitions of CPU features when option native/host is enabled via `--cpu-baseline` or through env var `CFLAGS` otherwise the test will be broken and leads to enable all possible features.
* ENH: [1/7] enable multi-platform SIMD compiler optimizationsSayed Adel2020-06-151-0/+7
Implement new distutils class `CCompilerOpt`, used for handling the CPU/hardware optimization, starting from parsing the command arguments, to managing the relationship between the CPU baseline and dispatch-able features, also generating the required C headers and ending with compiling the sources with proper compiler's flags. `CCompilerOpt` mainly used as a helper class for `CCompiler`, and doesn't provide any runtime detection for the CPU features, instead only focuses on the compiler side, but it generates abstract C headers that can be used later for the final runtime dispatching process.