numpy.distutils.ccompiler_opt.CCompilerOpt.feature_untied#

方法

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

与 ‘feature_ahead()’ 相同,但如果两个功能相互包含并保持最高兴趣.

参数:
‘names’: sequence

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