Repository navigation
[ROCm] torch 2.13 wheel: "Can't detect vectorized ISA for CPU" in torch.compile smoke test on non-ROCm image (regression vs 2.12.1) #189194
Description
🐛 Describe the bug
The torch==2.13.0+rocm7.2 wheel fails the torch.compile smoke test with
RuntimeError: Can't detect vectorized ISA for CPU when it is imported/run on
a non-ROCm image (e.g. pytorch/almalinux-builder:cpu-main), where
torch.cuda.is_available() is False and the compile check exercises the
CPU / Inductor path.
This looks like a regression:
- ✅
torch==2.12.1+rocm7.2runs the same smoke test on the same
environment and succeeds — it printsPicked CPU ISA VecAVX2 bit width 256. - ✅
torch==2.13.0+rocm7.2succeeds when run on the ROCm builder image
(pytorch/manylinux2_28-builder:rocm7.2). - ❌
torch==2.13.0+rocm7.2fails on a non-ROCm image.
So the 2.13 ROCm wheel appears to depend on something present in the ROCm
builder image to detect the CPU vectorized ISA, whereas 2.12.1 did not.
Repro
# In a plain (non-ROCm) manylinux/almalinux CPU image:
pip install torch==2.13.0 --index-url https://download.pytorch.org/whl/test/rocm7.2
cd .ci/pytorch
python smoke_test.py --package torchonlyTraceback
Testing smoke_test_compile for cpu and torch.float16
Testing smoke_test_compile for cpu and torch.float32
Testing smoke_test_compile for cpu and torch.float64
Traceback (most recent call last):
File "/pytorch/pytorch/.ci/pytorch/./smoke_test/smoke_test.py", line 652, in <module>
main()
File "/pytorch/pytorch/.ci/pytorch/./smoke_test/smoke_test.py", line 638, in main
smoke_test_cuda(
File "/pytorch/pytorch/.ci/pytorch/./smoke_test/smoke_test.py", line 357, in smoke_test_cuda
smoke_test_compile("cuda" if torch.cuda.is_available() else "cpu")
File "/pytorch/pytorch/.ci/pytorch/./smoke_test/smoke_test.py", line 511, in smoke_test_compile
raise RuntimeError("Can't detect vectorized ISA for CPU")
RuntimeError: Can't detect vectorized ISA for CPU
CI evidence
- ❌ Failing (2.13.0+rocm7.2 on non-ROCm image):
https://github.com/pytorch/test-infra/actions/runs/28891764491/job/85706099463#step:17:6454 - ✅ Passing (2.13.0+rocm7.2 on ROCm docker image):
https://github.com/pytorch/test-infra/actions/runs/28893965518/job/85713779849
For comparison, 2.12.1+rocm7.2 on the same environment logs:
torch: 2.12.1+rocm7.2
...
Testing smoke_test_compile for cpu and torch.float32
Picked CPU ISA VecAVX2 bit width 256
Testing smoke_test_compile with mode 'max-autotune' for torch.float32
...
OK: Wheel tag(s) valid for installed torch: cp312-cp312-manylinux_2_28_x86_64
Why this matters
This blocks validating the ROCm wheels on the regular (non-ROCm) validation
image. The vec-ISA probe in torch/_inductor/cpu_vec_isa.py
(pick_vec_isa() / valid_vec_isa_list()) is returning an empty list on the
2.13 ROCm wheel in an environment where 2.12.1 detected AVX2, which suggests
either a change in the probe's toolchain requirements or a packaging change in
the 2.13 ROCm wheel.
Versions
- torch:
2.13.0+rocm7.2(test channel), Python 3.12,cp312-cp312-manylinux_2_28_x86_64 - Regression vs:
2.12.1+rocm7.2(works)
cc @ezyang @gchanan @kadeng @msaroufim @malfet @tinglvv @nWEIdia @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @jataylo @hongxiayang @naromero77amd @pragupta @jerrymannil @xinyazhang @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @muchulee8 @amjames @aakhundov @coconutruben
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
atalman commentedon Jul 7, 2026
Same issue in PyTorch nightly :
3 remaining items
atalman commentedon Aug 13, 2026
cc @jeffdaily this is still crashing in validations for release 2.14 : https://github.com/pytorch/test-infra/actions/runs/31656923339/job/94427126002#step:17:3940
[ROCm] Rewrite bundled-lib NEEDED entries after all libs are copied in
[ROCm] Retry VecISA dlopen probe with import torch on cold load failure
[ROCm] Rewrite bundled-lib NEEDED entries after all libs are copied in (
[ROCm] Retry VecISA dlopen probe with import torch on cold load failu…
[ROCm] Rewrite bundled-lib NEEDED entries after all libs are copied in (
[ROCm] Retry VecISA dlopen probe with import torch on cold load failu…
[ROCm] Retry VecISA dlopen probe with import torch on cold load failu…
[ROCm] Rewrite bundled-lib NEEDED entries after all libs are copied in (