Skip to content

[ROCm] support device-side assertions - #172679

Closed
jeffdaily wants to merge 3 commits into
pytorch:mainfrom
jeffdaily:rocm_dsa
Closed

jeffdaily wants to merge 3 commits into
pytorch:mainfrom
jeffdaily:rocm_dsa

Conversation

@jeffdaily

@jeffdaily jeffdaily commented Jan 16, 2026 •

Copy link
Copy Markdown
Collaborator

This enables the TORCH_USE_HIP_DSA feature.

As a prerequisite change, needed to enable_language(HIP) for the CMake build in order for the HIP C++ tests to compile and link properly. These were the only available DSA feature tests and they are all passing. Some of the C++ tests needed to be generically fixed. Some needed to be adjusted for ROCm.

cc @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @jataylo @hongxiayang @naromero77amd @pragupta @jerrymannil @xinyazhang

@pytorch-bot

pytorch-bot Bot commented Jan 16, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/172679

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (3 Unrelated Failures)

As of commit c7be43e with merge base 511d331 (image):

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.

@pytorch-bot pytorch-bot Bot added ciflow/rocm-mi300 Trigger "default" config CI on ROCm MI300 module: rocm AMD GPU support for Pytorch labels Jan 16, 2026
@jeffdaily jeffdaily added the release notes: rocm mandatorylabel label Jan 16, 2026
@mikaylagawarecki mikaylagawarecki added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Jan 20, 2026

@zoranzhao zoranzhao left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, thanks for adding this support Jeff!

@meta-codesync

meta-codesync Bot commented Jan 22, 2026

Copy link
Copy Markdown

@zoranzhao has imported this pull request. If you are a Meta employee, you can view this in D91268975.

@arbazkhan002

Copy link
Copy Markdown

@pytorchbot merge

@pytorch-bot pytorch-bot Bot added the ciflow/trunk Trigger trunk jobs on your pull request label Jan 27, 2026
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

@GZGavinZhao

Copy link
Copy Markdown
Contributor

Are we sure this compiles on Windows? I don't have a machine to test right now, but IIRC in my testing of #172775 even just having enable_language(HIP) breaks the build.

@ScottTodd

Copy link
Copy Markdown
Contributor

I tested on Friday and this did not build on Windows. Chatted a bit with @jeffdaily about that offline but should have raised it here too. We can either revert or work on a fix forward.

I expect we'll start seeing builds fail on https://github.com/ROCm/TheRock/actions/workflows/release_windows_pytorch_wheels.yml?query=branch%3Amain once this commit makes its way to https://github.com/pytorch/pytorch/tree/nightly

jeffdaily added a commit that referenced this pull request Feb 3, 2026
enable_language(HIP) doesn't work on Windows yet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/rocm-mi300 Trigger "default" config CI on ROCm MI300 ciflow/trunk Trigger trunk jobs on your pull request Merged module: rocm AMD GPU support for Pytorch open source release notes: rocm mandatorylabel triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants