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

Method load_flags_auxv

numpy/core/tests/test_cpu_features.py:107–116  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

105 return values
106
107 def load_flags_auxv(self):
108 auxv = subprocess.check_output(['/bin/true'], env=dict(LD_SHOW_AUXV="1"))
109 for at in auxv.split(b'\n'):
110 if not at.startswith(b"AT_HWCAP"):
111 continue
112 hwcap_value = [s.strip() for s in at.split(b':', 1)]
113 if len(hwcap_value) == 2:
114 self.features_flags = self.features_flags.union(
115 hwcap_value[1].upper().decode().split()
116 )
117
118@pytest.mark.skipif(
119 sys.platform == 'emscripten',

Callers 2

load_flagsMethod · 0.80
load_flagsMethod · 0.80

Calls 6

startswithMethod · 0.80
stripMethod · 0.80
decodeMethod · 0.80
upperMethod · 0.80
check_outputMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected