numpy.distutils.ccompiler_opt.CCompilerOpt.feature_ahead #
方法
- distutils.ccompiler_opt.CCompilerOpt。feature_ahead (名称) [来源] #
删除任何隐含特征并保留起源后,返回“名称”中的特征列表。
- 参数:
- “名称”:序列
大写的 CPU 功能名称序列。
- 返回:
- 按“名称”排序的 CPU 功能列表
例子
>>> self.feature_ahead(["SSE2", "SSE3", "SSE41"]) ["SSE41"] # assume AVX2 and FMA3 implies each other and AVX2 # is the highest interest >>> self.feature_ahead(["SSE2", "SSE3", "SSE41", "AVX2", "FMA3"]) ["AVX2"] # assume AVX2 and FMA3 don't implies each other >>> self.feature_ahead(["SSE2", "SSE3", "SSE41", "AVX2", "FMA3"]) ["AVX2", "FMA3"]