Skip to content

[Backport] [release/v0.1.22] [JIT] [Bugfix] Add hipccl include path for libhipcxx (ROCM-35101) - #8961

Merged
TennyWang1223 merged 1 commit into
release/v0.1.22from
mcieslak/v0.1.22-hipccl-include
Dec 2, 2026
Merged

TennyWang1223 merged 1 commit into
release/v0.1.22from
mcieslak/v0.1.22-hipccl-include

Conversation

@amd-mcieslak

@amd-mcieslak amd-mcieslak commented Nov 30, 2026 •

Copy link
Copy Markdown

Summary

Backport #8864 (2791c05) to release/v0.1.22 so a release tag carries the
libhipcxx include-path fix.

Tracking: ROCM-35101. Related: ROCM-35091, ROCM-34983. Both ROCM defects are
TheRock promotion blockers.

Motivation

ROCm SDK nightlies from 10.3.0a20261125 ship libhipcxx only under
${ROCM_HOME}/include/hipccl, and rocThrust no longer falls back to ::std.
AITER's JIT uses its own copy of cpp_extension.py, so the PyTorch-side fix
(ROCm/pytorch #4069/#4070/#4071) does not reach it.

The SGLang UFB nightly image pins a raw AITER commit from this era and builds
AITER with PREBUILD_KERNELS=0, so the image builds fine and the failure
appears only at runtime, when the server JIT-builds a kernel pulling in
Thrust headers:

_rocm_sdk_devel/include/thrust/detail/config/libcxx.h:91:4: error: Could not find libhipcxx!
RuntimeError: [aiter] build [module_gemm_a8w8_blockscale_bpreshuffle] failed

The scheduler dies during startup; 37 SGLang accuracy and perf tests fail this
way on the 10.3.0a20261127 nightly.

Why this release line

The SGLang v0.5.21 UFB image's AITER revision is acf8fdf93 (the
AITER_COMMIT_DEFAULT on SGLang's amd_march branch). release/v0.1.22
already contains that commit and is only 9 commits ahead of it, and its head is
exactly tag v0.1.22.post1. Tagging a v0.1.22.post2 from this branch lets
that image move from a raw-commit pin to a supported release tag across a
4-day, release-blessed delta — rather than jumping three months of AITER.

If maintainers would rather land this only on newer lines: main already has
the fix, so any tag cut from main after 2026-11-30 carries it, and the
cherry-pick also applies clean to release/v0.1.24, release/v0.1.29 and
release/v0.1.30.

Changes

git cherry-pick -x 2791c05, no conflicts. Added lines are byte-identical to
the commit on main:

  • include_paths() in aiter/jit/utils/cpp_extension.py: for HIP extensions,
    append <rocm_include>/hipccl and <devel_include>/hipccl when each
    directory exists.

14 insertions, no deletions, one file. Guarded by os.path.exists, so a ROCm
install without hipccl behaves exactly as before.

Testing

  • Build-path change only; cherry-pick clean, file compiles.
  • Validated on hardware

No unit test: this changes an include path. The real test is a SGLang server
start on a ROCm build shipping include/hipccl, which needs the UFB image
re-pinned to a tag cut from this branch.

Breaking Changes

None.

🤖 Generated with Claude Code

@TennyWang1223
TennyWang1223 merged commit ceda70e into release/v0.1.22 Dec 2, 2026
2 checks passed
@TennyWang1223
TennyWang1223 deleted the mcieslak/v0.1.22-hipccl-include branch December 2, 2026 02:21
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.

3 participants