numpy.distutils.ccompiler_opt.CCompilerOpt.feature_untied

方法

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

与“feature_ahead()”相同,但如果两个功能都相互暗示并保持最高兴趣。

参数
“序列名”:sequence names

CPU功能名称的大写顺序。

返回
按“名称”排序的CPU功能列表

实例

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