MCPcopy Create free account
hub / github.com/numpy/numpy / feature_detect

Method feature_detect

numpy/distutils/ccompiler_opt.py:1511–1521  ·  view source on GitHub ↗

Return a list of CPU features that required to be detected sorted from the lowest to highest interest.

(self, names)

Source from the content-addressed store, hash-verified

1509 return self.feature_sorted(names)
1510
1511 def feature_detect(self, names):
1512 """
1513 Return a list of CPU features that required to be detected
1514 sorted from the lowest to highest interest.
1515 """
1516 names = self.feature_get_til(names, "implies_detect")
1517 detect = []
1518 for n in names:
1519 d = self.feature_supported[n]
1520 detect += d.get("detect", d.get("group", [n]))
1521 return detect
1522
1523 @_Cache.me
1524 def feature_flags(self, names):

Callers 2

reportMethod · 0.80
_generate_configMethod · 0.80

Calls 2

feature_get_tilMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected