Repository navigation
[ROCM] Do not send "debug"=True down to triton.compile - #99756
dllehr-amd wants to merge 4 commits into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/99756
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ✅ No FailuresAs of commit d1cba11: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
085a117 to
3f9a3fe
Compare
Pull Request resolved: pytorch#99725 ROCm's version of triton does not currently support tl.device_assert. This operator among others is effectively a no-op unless "debug" = True is passed in the triton.compile function. Until we have full suport for tl.device_assert, avoid enabling the debug flag in triton.compile, so we do not have to find every possible location tl.device_assert may be used.
3f9a3fe to
3a5ae81
Compare
|
|
||
| if torch.version.hip is None: | ||
| compile_meta["debug"] = config.triton.assert_indirect_indexing | ||
| else: | ||
| compile_meta["debug"] = False | ||
|
|
There was a problem hiding this comment.
This can be golfed as
| if torch.version.hip is None: | |
| compile_meta["debug"] = config.triton.assert_indirect_indexing | |
| else: | |
| compile_meta["debug"] = False | |
| compile_meta["debug"] = config.triton.assert_indirect_indexing and torch.version.hip is None |
There was a problem hiding this comment.
yeah I wasn't in the right mindset...I'll take your more elegant suggestion. Thanks!!
|
If you want to disable the generation of |
|
@pytorchbot merge |
Merge failedReason: This PR needs a label If not, please add the To add a label, you can comment to pytorchbot, for example For more information, see Details for Dev Infra teamRaised by workflow job |
|
@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 mandatory check(s) failed. The first few are: Dig deeper by viewing the failures on hud |
|
@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 |
…86422) ## 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 #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: #186422 Approved by: https://github.com/ezyang Co-authored-by: Cursor <[email protected]> Co-authored-by: PyTorch MergeBot <[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]>
…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]>
…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's version of triton does not currently support tl.device_assert.
This operator among others is effectively a no-op unless "debug" = True is passed in the triton.compile function.
Until we have full suport for tl.device_assert, avoid enabling the debug flag in triton.compile, so we do not have to find every possible location tl.device_assert may be used.
Fixes #99725
cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @soumith @voznesenskym @penguinwu @anijain2305 @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @peterbell10 @desertfire