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