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

Function check_support_sve

numpy/testing/_private/utils.py:1239–1250  ·  view source on GitHub ↗

gh-22982

()

Source from the content-addressed store, hash-verified

1237
1238
1239def check_support_sve():
1240 """
1241 gh-22982
1242 """
1243
1244 import subprocess
1245 cmd = 'lscpu'
1246 try:
1247 output = subprocess.run(cmd, capture_output=True, text=True)
1248 return 'sve' in output.stdout
1249 except OSError:
1250 return False
1251
1252
1253_SUPPORTS_SVE = check_support_sve()

Callers 1

utils.pyFile · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected