MCPcopy Index your code
hub / github.com/numpy/numpy / load_flags_auxv

Method load_flags_auxv

numpy/_core/tests/test_cpu_features.py:112–121  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers 2

load_flagsMethod · 0.80
load_flagsMethod · 0.80

Calls 6

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

Tested by

no test coverage detected