numpy.distutils.ccompiler_opt.CCompilerOpt.feature_untied#

方法

distutils.ccompiler_opt.CCompilerOpt.feature_untied(names)[源代码]#

与 'feature_ahead()' 相同,但如果两个特性相互隐含,则保留最高优先级。

参数:
‘names’: 序列

大写形式的 CPU 特性名称序列。

返回:
CPU 特性列表,按 'names' 原样排序

示例

>>> 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"]