Repository navigation
[ROCm][UT] Run TunableOp TF32 and fp16 subnormal tests on RDNA - #197361
lstojilj-amd wants to merge 3 commits into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/197361
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (2 Unrelated Failures)As of commit ec5d647 with merge base aca1d2b ( FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
|
|
|
|
The following ciflow label(s) have been added but CI has not been triggered yet because the workflows are awaiting approval:
Once a maintainer approves the workflows (scroll to the bottom of the PR page), the corresponding CI jobs will be triggered automatically. Please ping one of the reviewers if you do not have access to approve and run workflows. |
1 similar comment
|
The following ciflow label(s) have been added but CI has not been triggered yet because the workflows are awaiting approval:
Once a maintainer approves the workflows (scroll to the bottom of the PR page), the corresponding CI jobs will be triggered automatically. Please ping one of the reviewers if you do not have access to approve and run workflows. |
|
LGTM |
|
/easycla |
…l tests runOnRocmArch is an allowlist: on ROCm the test runs only on the listed gfx archs. Widening it to NAVI still leaves gfx90a/gfx950 (TF32 TunableOp) and gfx942/gfx950 (subnormals) skipped, although nothing in these tests is arch-specific: the TunableOp tests check that a TF32 GEMM entry is recorded and rocBLAS did not win, and the subnormal test checks a numerical property that should hold on every arch. pytorch#183474 removed the TunableOp decorators outright for the same reason, which is what this PR's description says it restores. Remove all three decorators so the tests run on every ROCm arch (CUDA is unaffected; runOnRocmArch was a no-op there), and drop the runOnRocmArch and MI300_ARCH imports that are now unused in test_linalg.py. Test Plan: On MI355X (gfx950, ROCm 10.0), an arch these tests previously skipped: ``` python -m pytest test/test_linalg.py test/test_matmul_cuda.py -k "test_tf32_tunableop or test_tf32_offline_tunableop or test_fp16_backward_preserves_subnormals_rocm" lintrunner --take RUFF,FLAKE8,PYFMT test/test_linalg.py test/test_matmul_cuda.py ``` 6 passed. Authored with Claude.
# Conflicts: # test/test_linalg.py
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: 1 jobs have failed, first few of them are: trunk / linux-noble-rocm-py3.11-mi350 / test (default, 7, 8, amd-dpx-linux.rocm.gpu.gfx950.1) Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge -i |
Merge startedYour change will be merged while ignoring the following 2 checks: trunk / linux-noble-rocm-py3.11-mi350 / test (distributed, 3, 3, amd-dpx-linux.rocm.gpu.gfx950.2), trunk / linux-noble-rocm-py3.11-mi350 / test (default, 7, 8, amd-dpx-linux.rocm.gpu.gfx950.1) Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Summary
test_tf32_tunableopandtest_tf32_offline_tunableopwere enabled for allROCm architectures in #183474, which removed both
@runOnRocmArch(MI300_ARCH)decorators along with the now-unused import. #183586 re-added them while
extracting CUDA-only tests into
TestLinalgCUDA.git blameattributes bothcurrent decorators to that refactor rather than to any deliberate
re-restriction, so this appears to be an accidental regression. This PR
restores the state #183474 landed.
While in the same area, this also widens
@runOnRocmArch(MI200_ARCH)ontest_fp16_backward_preserves_subnormals_rocm, added for MI200 in #183766.RDNA is excluded there only by omission from the allowlist, and the test
passes on RDNA.
Part of #196583.
Validation
Repeated runs on gfx1100 (Radeon PRO W7900), gfx1151 and gfx1200, HIP
7.16.26320, with identical results every time.cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @jataylo @hongxiayang @naromero77amd @pragupta @jerrymannil @xinyazhang