numpy.distutils.ccompiler_opt.CCompilerOpt.feature_untied
method
-
distutils.ccompiler_opt.CCompilerOpt.feature_untied(names)
[source] -
same as ‘feature_ahead()’ but if both features implied each other and keep the highest interest.
- Parameters
-
- ‘names’: sequence
-
sequence of CPU feature names in uppercase.
- Returns
-
- list of CPU features sorted as-is ‘names’
Examples
>>> self.feature_untied(["SSE2", "SSE3", "SSE41"]) ["SSE2", "SSE3", "SSE41"] # assume AVX2 and FMA3 implies each other >>> self.feature_untied(["SSE2", "SSE3", "SSE41", "FMA3", "AVX2"]) ["SSE2", "SSE3", "SSE41", "AVX2"]
© 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_untied.html