gh-22982
()
| 1237 | |
| 1238 | |
| 1239 | def 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() |