Repository navigation
[ROCM][inductor][UT] Enable Inductor-Triton debug asserts on ROCm - #186422
naromero77amd wants to merge 3 commits into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/186422
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New Failures, 1 Unrelated Failure, 3 Unclassified FailuresAs of commit 452b56d with merge base c35920b ( NEW FAILURES - The following jobs have failed:
UNCLASSIFIED FAILURES - DrCI could not classify the following jobs because the workflow did not run on the merge base. The failures may be pre-existing on trunk or introduced by this PR:
FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot lint-fix |
|
❌ 🤖 pytorchbot command failed: Try |
|
@pytorchbot fix-lint |
|
Successfully applied lint patches in https://github.com/pytorch/pytorch/actions/runs/27042505463. Please pull locally before pushing more changes. |
|
@claude Please confirm that test_after_aot_gpu_runtime_error ran on MI300 and passed. Also, please confirm that there are no timeouts on the AMD workflows. |
|
Claude finished @naromero77amd's task in 7m 34s —— View job CI Results for AMD Workflows
FindingsOverall CI status: Both
Timeouts: Zero timed-out runs across all workflows for this PR. Regarding
Target determination didn't include Summary: The AMD workflows all passed with no failures or timeouts, but |
|
@pytorchbot rebase |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
|
Successfully rebased |
|
@pytorchbot merge -i |
Merge startedYour change will be merged while ignoring the following 6 checks: inductor-rocm-mi200 / linux-jammy-rocm-py3.10-mi200 / test (inductor, 2, 2, linux.rocm.gpu.mi210.1), inductor-rocm-mi200 / linux-jammy-rocm-py3.10-mi200 / test (inductor, 1, 2, linux.rocm.gpu.mi210.1), torchtitan-test / torchtitan-x-pytorch-test / test-osdc (torchtitan_features_integration, 1, 1, mt-l-x86aavx2-189-704-a10g-8), trunk / macos-py3-arm64 / test (mps, 1, 1, macos-m2-15), trunk / linux-jammy-rocm-py3.10-mi355 / test (default, 7, 10, linux.rocm.gpu.gfx950.1), rocm-mi355 / linux-noble-rocm-py3.12-mi355 / test (default, 3, 6, linux.rocm.gpu.gfx950.1) Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
|
@pytorchbot merge -i |
Merge startedYour change will be merged while ignoring the following 6 checks: inductor-rocm-mi200 / linux-jammy-rocm-py3.10-mi200 / test (inductor, 2, 2, linux.rocm.gpu.mi210.1), inductor-rocm-mi200 / linux-jammy-rocm-py3.10-mi200 / test (inductor, 1, 2, linux.rocm.gpu.mi210.1), torchtitan-test / torchtitan-x-pytorch-test / test-osdc (torchtitan_features_integration, 1, 1, mt-l-x86aavx2-189-704-a10g-8), trunk / macos-py3-arm64 / test (mps, 1, 1, macos-m2-15), trunk / linux-jammy-rocm-py3.10-mi355 / test (default, 7, 10, linux.rocm.gpu.gfx950.1), rocm-mi355 / linux-noble-rocm-py3.12-mi355 / test (default, 3, 6, linux.rocm.gpu.gfx950.1) Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…torch#186422) ## Summary - Enable Triton debug/assert metadata for HIP Inductor kernels instead of dropping it on ROCm. - Remove the ROCm skip from `MinifierIsolateTests.test_after_aot_gpu_runtime_error` and make the test validate the ROCm assertion text. ## Context - The HIP debug guard was introduced in pytorch#99756 because ROCm Triton did not support `tl.device_assert` at the time. - ROCm Triton now supports device-side asserts when Triton debug is enabled. - Inductor already enables Triton debug from `assert_indirect_indexing` on CUDA; this makes HIP follow that same path. - Locally, the injected runtime assert now fires and the AOT minifier runtime-error test completes successfully on ROCm. Pull Request resolved: pytorch#186422 Approved by: https://github.com/ezyang Co-authored-by: Cursor <[email protected]> Co-authored-by: PyTorch MergeBot <[email protected]>
|
This is getting reverted because it makes Inductor incompatible with Triton versions that don't support debug assert. We need an appropriate version guard. |
|
version guard:
|
|
@pytorchbot revert -m="Diff reverted internally" -c="ghfirst" This Pull Request has been reverted by a revert inside Meta. To re-land this change, please open another pull request, assign the same reviewers, fix the CI failures that caused the revert and make sure that the failing CI runs on the PR by applying the proper ciflow label (e.g., ciflow/trunk).) |
|
@pytorchbot successfully started a revert job. Check the current status here. |
…ROCm (#186422)" This reverts commit 56dc9a4. Reverted #186422 on behalf of https://github.com/meta-codesync due to Diff reverted internally ([comment](#186422 (comment)))
|
@naromero77amd your PR has been successfully reverted. |
…ROCm (#188075) ## Summary - Reland the ROCm Inductor-Triton debug assert enablement from #186422. - Guard the HIP path on Triton 3.7+, which is the first Triton release with the required debug assert support. - Gate the ROCm minifier test on the same Triton version check and add a focused heuristic unit test for the guard. ## Context - The previous version of this change was reverted because it broke compatibility with Triton versions that predate debug assert support on ROCm. - This reland keeps the ROCm path disabled on older Triton builds while preserving the intended behavior on supported Triton versions. - This branch cherry-picks the original PR commits with `-x` and layers the ROCm Triton version guard on top. ## Old PR - Previous attempt: #186422 Made with [Cursor](https://cursor.com) Pull Request resolved: #188075 Approved by: https://github.com/ezyang, https://github.com/jansel Co-authored-by: Cursor <[email protected]> Co-authored-by: PyTorch MergeBot <[email protected]> Co-authored-by: Edward Z. Yang via mergedog <[email protected]>
…torch#186422) ## Summary - Enable Triton debug/assert metadata for HIP Inductor kernels instead of dropping it on ROCm. - Remove the ROCm skip from `MinifierIsolateTests.test_after_aot_gpu_runtime_error` and make the test validate the ROCm assertion text. ## Context - The HIP debug guard was introduced in pytorch#99756 because ROCm Triton did not support `tl.device_assert` at the time. - ROCm Triton now supports device-side asserts when Triton debug is enabled. - Inductor already enables Triton debug from `assert_indirect_indexing` on CUDA; this makes HIP follow that same path. - Locally, the injected runtime assert now fires and the AOT minifier runtime-error test completes successfully on ROCm. Pull Request resolved: pytorch#186422 Approved by: https://github.com/ezyang Co-authored-by: Cursor <[email protected]> Co-authored-by: PyTorch MergeBot <[email protected]>
…ROCm (pytorch#186422)" This reverts commit 56dc9a4. Reverted pytorch#186422 on behalf of https://github.com/meta-codesync due to Diff reverted internally ([comment](pytorch#186422 (comment)))
…ROCm (pytorch#188075) ## Summary - Reland the ROCm Inductor-Triton debug assert enablement from pytorch#186422. - Guard the HIP path on Triton 3.7+, which is the first Triton release with the required debug assert support. - Gate the ROCm minifier test on the same Triton version check and add a focused heuristic unit test for the guard. ## Context - The previous version of this change was reverted because it broke compatibility with Triton versions that predate debug assert support on ROCm. - This reland keeps the ROCm path disabled on older Triton builds while preserving the intended behavior on supported Triton versions. - This branch cherry-picks the original PR commits with `-x` and layers the ROCm Triton version guard on top. ## Old PR - Previous attempt: pytorch#186422 Made with [Cursor](https://cursor.com) Pull Request resolved: pytorch#188075 Approved by: https://github.com/ezyang, https://github.com/jansel Co-authored-by: Cursor <[email protected]> Co-authored-by: PyTorch MergeBot <[email protected]> Co-authored-by: Edward Z. Yang via mergedog <[email protected]>
…torch#186422) ## Summary - Enable Triton debug/assert metadata for HIP Inductor kernels instead of dropping it on ROCm. - Remove the ROCm skip from `MinifierIsolateTests.test_after_aot_gpu_runtime_error` and make the test validate the ROCm assertion text. ## Context - The HIP debug guard was introduced in pytorch#99756 because ROCm Triton did not support `tl.device_assert` at the time. - ROCm Triton now supports device-side asserts when Triton debug is enabled. - Inductor already enables Triton debug from `assert_indirect_indexing` on CUDA; this makes HIP follow that same path. - Locally, the injected runtime assert now fires and the AOT minifier runtime-error test completes successfully on ROCm. Pull Request resolved: pytorch#186422 Approved by: https://github.com/ezyang Co-authored-by: Cursor <[email protected]> Co-authored-by: PyTorch MergeBot <[email protected]>
…ROCm (pytorch#186422)" This reverts commit 56dc9a4. Reverted pytorch#186422 on behalf of https://github.com/meta-codesync due to Diff reverted internally ([comment](pytorch#186422 (comment)))
…ROCm (pytorch#188075) ## Summary - Reland the ROCm Inductor-Triton debug assert enablement from pytorch#186422. - Guard the HIP path on Triton 3.7+, which is the first Triton release with the required debug assert support. - Gate the ROCm minifier test on the same Triton version check and add a focused heuristic unit test for the guard. ## Context - The previous version of this change was reverted because it broke compatibility with Triton versions that predate debug assert support on ROCm. - This reland keeps the ROCm path disabled on older Triton builds while preserving the intended behavior on supported Triton versions. - This branch cherry-picks the original PR commits with `-x` and layers the ROCm Triton version guard on top. ## Old PR - Previous attempt: pytorch#186422 Made with [Cursor](https://cursor.com) Pull Request resolved: pytorch#188075 Approved by: https://github.com/ezyang, https://github.com/jansel Co-authored-by: Cursor <[email protected]> Co-authored-by: PyTorch MergeBot <[email protected]> Co-authored-by: Edward Z. Yang via mergedog <[email protected]>
Summary
MinifierIsolateTests.test_after_aot_gpu_runtime_errorand make the test validate the ROCm assertion text.Context
tl.device_assertat the time.assert_indirect_indexingon CUDA; this makes HIP follow that same path.cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @jataylo @hongxiayang @pragupta @jerrymannil @xinyazhang @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben