[ROCm] Rework LoadHIP.cmake to be based purely on CMAKE_PREFIX_PATH.
- Eliminates dependence on
/opt/rocmand 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.
:link: Helpful Links
:test_tube: See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/audio/3945
- :page_facing_up: Preview Python docs built from this PR
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.
This would probably be nice to have, though I don't think it is strictly required right now, at least when building 'pytorch' and 'audio' together. I minimally just needed https://github.com/pytorch/audio/pull/3991 to build with ROCm on Windows.