Skip to content

[release/2.13] [ROCm] Require libhipcxx in LoadHIP.cmake for ROCm 10+ - #3531

Draft
ethanwee1 wants to merge 1 commit into
ROCm:release/2.13from
ethanwee1:ethanwee/rocm10-libhipcxx-2.13
Draft

[release/2.13] [ROCm] Require libhipcxx in LoadHIP.cmake for ROCm 10+#3531
ethanwee1 wants to merge 1 commit into
ROCm:release/2.13from
ethanwee1:ethanwee/rocm10-libhipcxx-2.13

Conversation

@ethanwee1

Copy link
Copy Markdown

Summary

ROCm 10 ships hipCUB against CCCL 3.x via libhipcxx. PyTorch should resolve that dependency directly in cmake/public/LoadHIP.cmake via find_package(libhipcxx) so ROCM_INCLUDE_DIRS includes libhipcxx headers at configure time.

Release/2.13 already had optional find_package(libhipcxx) from #3442; this follow-up marks it REQUIRED when ROCM_VERSION_DEV >= 10.0 (optional on older ROCm).

Okay. So adding find_package(libhipcxx) in pytorch directly is the way to go then.

Changes

  • Gate find_package_and_print_version(libhipcxx REQUIRED) on ROCM_VERSION_DEV VERSION_GREATER_EQUAL "10.0".
  • Keep optional find_package(libhipcxx) on ROCm < 10.

TheRock validation

Input Value
Workflow Multi-Arch Build Portable Linux PyTorch Wheels
TheRock ref users/ethanwee/pytorch-gitrepo-origin
PyTorch fork ethanwee1/pytorch @ ethanwee/rocm10-libhipcxx-2.13
rocm_version 10.0.0a20260729
rocm_package_index_url https://rocm.nightlies.amd.com/whl-multi-arch/
amdgpu_families gfx942
cache_type none
test_amdgpu_families none

Run: https://github.com/ROCm/TheRock/actions/runs/30661827641

ROCm 10 ships hipCUB against CCCL 3.x via libhipcxx. Call
find_package(libhipcxx) from LoadHIP.cmake so ROCM_INCLUDE_DIRS
includes libhipcxx headers during configure; mark REQUIRED when
ROCM_VERSION_DEV >= 10.0 and keep optional on older ROCm.

Urgent fix for ROCm 10 PyTorch wheel/build validation on TheRock.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant