Skip to content

[ROCm] Rework LoadHIP.cmake to be based purely on CMAKE_PREFIX_PATH. #3945

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jammm
Copy link

@jammm jammm commented Jun 26, 2025

  • Eliminates dependence on /opt/rocm and path based heuristics.
  • Normalizes package finding for Rocm 6.5+ layout.
  • Workaround cmake >= 4.0 for hiprtc

This will help with windows support. I understand that audio is in a maintenance phase, but I highly recommend this to be merged in order to allow torchaudio to be built on for AMD systems on Windows.

Technically, this still doesn't really compile the CUDA kernels because USE_ROCM doesn't include some of those .cu files. But it still does allow building the wheels and getting things functionally running.

* Eliminates dependence on `/opt/rocm` and path based heuristics.
* Normalizes package finding for Rocm 6.5+ layout.
* Workaround cmake >= 4.0 for hiprtc

Co-authored-by: Scott Tsai <[email protected]>
Co-authored-by: Aaryaman Vasishta <[email protected]>
@jammm jammm requested a review from a team as a code owner June 26, 2025 05:03
Copy link

pytorch-bot bot commented Jun 26, 2025

🔗 Helpful Links

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

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

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@jammm jammm changed the title Rework LoadHIP.cmake to be based purely on CMAKE_PREFIX_PATH. [ROCm] Rework LoadHIP.cmake to be based purely on CMAKE_PREFIX_PATH. Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants