numpy.distutils.ccompiler_opt#
Provides theCCompilerOpt class, used for handling the CPU/hardwareoptimization, starting from parsing the command arguments, to managing therelation between the CPU baseline and dispatch-able features,also generating the required C headers and ending with compilingthe sources with proper compiler’s flags.
CCompilerOpt doesn’t provide runtime detection for the CPU features,instead only focuses on the compiler side, but it creates abstract C headersthat can be used later for the final runtime dispatching process.
Functions
| Create a new instance of 'CCompilerOpt' and generate the dispatch header which contains the #definitions and headers of platform-specific instruction-sets for the enabled CPU baseline and dispatch-able features. |
Classes
| A helper class forCCompiler aims to provide extra build options to effectively control of compiler optimizations that are directly related to CPU features. |