Skip to content

[release/2.13] [ROCm] derive the hipcub compatible cccl version from 'HIPCUB_CCCL_VERSION'#3442

Open
jithunnair-amd wants to merge 1 commit into
ROCm:release/2.13from
jithunnair-amd:2.13-cherry-pick-pr-188072
Open

[release/2.13] [ROCm] derive the hipcub compatible cccl version from 'HIPCUB_CCCL_VERSION'#3442
jithunnair-amd wants to merge 1 commit into
ROCm:release/2.13from
jithunnair-amd:2.13-cherry-pick-pr-188072

Conversation

@jithunnair-amd

Copy link
Copy Markdown
Collaborator

Cherry-pick of pytorch#188072 (commit c8e2473) onto release/2.13.

Summary

  • Introduce dependency on libhipcxx
  • Guard FpLimits for c10::BFloat16 backport to pre CCCL 3.x
  • Extend CUB_VERSION derivation for hipCUB using HIPCUB_CCCL_VERSION

Notes

Cherry-pick applied cleanly.

Test plan

  • Build with ROCm
  • Verify hipCUB/CCCL compatibility glue compiles

Authored with assistance from Cursor

Made with Cursor

…RSION' (pytorch#188072)

# Context

Recreated pytorch#184552 from personal fork.

hipCUB is targeting to be compatible with CCCL 3.0 (ROCm/rocm-libraries#4079). This requires updating some of the CUB and hipCUB compatibility glue.

To help this transition hipCUB will be exposing `HIPCUB_CCCL_VERSION` in one of the following ROCm releases (>=7.14) (ROCm/rocm-libraries#7632), which will be bumped once hipCUB reaches parity with CCCL 3.0 and beyond.

This PR is created in anticipation for this future changes.

# Implementation

- Introduce dependency on [`libhipcxx`](https://github.com/ROCm/libhipcxx).
- Guard `FpLimits` for `c10::BFloat16` backport to pre CCCL 3.x. Numeric limits are handled by libhipcxx.
- Extend `CUB_VERSION` derivation for hipCUB. Keep old fallback for backwards compatibility. Only enable CUB V3 API once hipCUB reaches parity with CCCL 3.x.

Pull Request resolved: pytorch#188072
Approved by: https://github.com/jeffdaily

(cherry picked from commit c8e2473)
@rocm-repo-management-api

rocm-repo-management-api Bot commented Jul 14, 2026

Copy link
Copy Markdown

Jenkins build for b6b38c331bafd837c5fab5042312b20b7e9d22dd commit finished as FAILURE
Links: Pipeline Overview / Build artifacts / Test Results

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.

2 participants