fix(rocm): route tensor parallel communication through RCCL - #135
Draft
zihaomu wants to merge 9 commits into
Draft
fix(rocm): route tensor parallel communication through RCCL#135zihaomu wants to merge 9 commits into
zihaomu wants to merge 9 commits into
Conversation
- Add hip_compat.h shim mapping CUDA runtime API to HIP equivalents - Update pinned_tensor.cpp to compile under both nvcc and hipcc - Add ROCm detection in arch.py (is_rocm, get_rocm_gfx_arch, is_gfx11xx_family) - Guard NVIDIA arch checks to return None on ROCm - Skip nvcc version check in _toolchain.py when on ROCm - Add ROCm build path in setup.py (ROCM_HOME, amdhip64, --offload-arch) - Add _hip_cflags() in kernel/utils.py for JIT compilation on ROCm - Add is_rocm() and driver_hip_version() in backend.py - Add rocm-smi fallback in __main__.py for clangd generation - Add TODO(ROCm) for NCCL->RCCL, flashinfer/sgl_kernel ROCm builds, Triton autotune RDNA3 tuning, PDL equivalent, hiprtc JIT cache - Add AMD ROCm classifier in pyproject.toml
This was referenced Aug 24, 2026
This was referenced Aug 25, 2026
nekomario28
added a commit
to nekomario28/FreeToken
that referenced
this pull request
Aug 25, 2026
Integrate exact upstream FlashML-org#135 semantics onto the current-main corrected ROCm composition while preserving FlashML-org#136. Temporary PR used only as a 3-way merge carrier.
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.
Summary
nccl, which the ROCm wheel implements through RCCL;Incremental review scope
Relative to
zihaomu:feat/rocm-rdna3-rdna4-foundation:python/freetoken/engine/engine.pytests/engine/test_rocm_communication.pyDiff size: 85 additions, 1 deletion.
Dependency
Validation
2 passedgfx1201) GPUs, two ranks, RCCL all-reduce: rank 0 and rank 1 both produced3.054 passedKnown limitation
This validates communication selection and an RCCL collective. Full multi-GPU model serving with real weights is not claimed yet. The PR remains Draft until #132 establishes the common ROCm foundation.