numpy.distutils.ccompiler_opt.CCompilerOpt.feature_ahead
method
-
distutils.ccompiler_opt.CCompilerOpt.feature_ahead(names)
[source] -
Return list of features in ‘names’ after remove any implied features and keep the origins.
- Parameters
-
- ‘names’: sequence
-
sequence of CPU feature names in uppercase.
- Returns
-
- list of CPU features sorted as-is ‘names’
Examples
>>> self.feature_ahead(["SSE2", "SSE3", "SSE41"]) ["SSE41"] # assume AVX2 and FMA3 implies each other and AVX2 # is the highest interest >>> self.feature_ahead(["SSE2", "SSE3", "SSE41", "AVX2", "FMA3"]) ["AVX2"] # assume AVX2 and FMA3 don't implies each other >>> self.feature_ahead(["SSE2", "SSE3", "SSE41", "AVX2", "FMA3"]) ["AVX2", "FMA3"]
© 2005–2021 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/1.21/reference/generated/numpy.distutils.ccompiler_opt.CCompilerOpt.feature_ahead.html