Commit b2a9b8d
[CpuInductor] Enable NEON ISA detection on Linux ARM (#129075)
Also, cleanup code a bit to use `x in [y, z]` instead of `x == y or x == z`
And do not redefine `at_align`, but instead use `alignas(64)` as was suggested in https://github.com/pytorch/pytorch/pull/128686/files#r1639365978
Test plan: `python3 -c "import torch._inductor.codecache as cc; isa = cc.valid_vec_isa_list()[0];print(str(isa), bool(isa))"`
Pull Request resolved: #129075
Approved by: https://github.com/jansel1 parent e0aa992 commit b2a9b8d
1 file changed
+7
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1306 | 1306 | | |
1307 | 1307 | | |
1308 | 1308 | | |
1309 | | - | |
1310 | | - | |
1311 | | - | |
1312 | | - | |
1313 | | - | |
1314 | | - | |
1315 | | - | |
1316 | | - | |
1317 | | - | |
1318 | | - | |
1319 | | - | |
1320 | | - | |
| 1309 | + | |
1321 | 1310 | | |
1322 | 1311 | | |
1323 | 1312 | | |
| |||
1510 | 1499 | | |
1511 | 1500 | | |
1512 | 1501 | | |
| 1502 | + | |
1513 | 1503 | | |
1514 | | - | |
| 1504 | + | |
1515 | 1505 | | |
1516 | | - | |
1517 | | - | |
1518 | | - | |
| 1506 | + | |
1519 | 1507 | | |
1520 | 1508 | | |
1521 | 1509 | | |
| |||
1532 | 1520 | | |
1533 | 1521 | | |
1534 | 1522 | | |
1535 | | - | |
1536 | | - | |
1537 | | - | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
1538 | 1526 | | |
1539 | 1527 | | |
1540 | 1528 | | |
1541 | 1529 | | |
1542 | 1530 | | |
1543 | 1531 | | |
1544 | 1532 | | |
1545 | | - | |
1546 | 1533 | | |
1547 | 1534 | | |
1548 | 1535 | | |
| |||
0 commit comments