Repository navigation
[Backport - 0.1.28] [JIT] [Bugfix] Add hipccl include path for libhipcxx - #8956
Merged
NguyenNhuDi merged 1 commit intoNov 30, 2026
Merged
Conversation
(cherry picked from commit 2791c05)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Back port of #8864
Summary
Add the ROCm
include/hipccldirectory to the include paths that the AITER JITuses for HIP extensions. Add it only when the directory exists.
Motivation
In newer ROCm releases, rocThrust and hipCUB require libhipcxx
(
<hip/std/...>). ROCm supplies libhipcxx only in${ROCM_HOME}/include/hipccl.The AITER JIT does not add this directory, so a build that includes rocThrust
headers fails. Example from the vLLM nightly build (ROCm 10.3.0a20261127,
torch 2.14.0, Python 3.14), while it compiles
module_attention:PyTorch has the same fix in ROCm/pytorch#4071. AITER uses its own copy of
torch.utils.cpp_extension(aiter/jit/utils/cpp_extension.py), so thePyTorch fix does not apply to AITER builds.
Changes
include_paths()inaiter/jit/utils/cpp_extension.py: for HIP extensions,add
<rocm_include>/hipccland<devel_include>/hipcclwhen each directoryexists.
include_paths()supplies the include directories for setuptoolsextensions, JIT ninja builds and hipify header lookup. This one change
applies to all of them.
includeand_rocm_sdk_devel/includepaths do not change.On ROCm installs without
hipccl, the behavior does not change.Testing
No unit test is added: this change is to a build path. The real test is a
successful JIT build on a ROCm release that ships
include/hipccl.Documentation
This is an internal build fix. Users do not see a change.
Dependencies
Breaking Changes
None.
PR Self-Review
Reviewed revision
56f7c7d
Behavior and intent
Before: JIT builds of HIP extensions that include rocThrust or hipCUB headers
fail on newer ROCm with
Could not find libhipcxx!. Theinclude/hipccldirectory is not on the include path.
After:
include_paths()addsinclude/hipcclfrom the ROCm include tree andfrom the
_rocm_sdk_develinclude tree when each exists. Older ROCm installssee no change.
Validation and unverified scope
Using this mini build
test.py:Reproducing error step
Error observed:
Showing fix step
Build completes
PR-specific question
need to include hipccl in order to include rocthrust and hipcub. Current code does not do this correctly
I validated the error comes from the existing code base and validated the changes fixes the error. This was done by reproducing the CI pipeline. Nothing should be unverified based on these experiments.
see validation section for detailed steps
None
Changed op tests
None.