feat(ascend): add HCCL backend support - #73
Open
baominghelly wants to merge 1 commit into
Open
baominghelly wants to merge 1 commit into
baominghelly wants to merge 1 commit into
Conversation
baominghelly
marked this pull request as ready for review
September 9, 2026 06:06
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
Add the minimal Ascend HCCL backend required for single-node tensor parallelism. The implementation supports communicator initialization with
infinicclCommInitAll, collective reduction withinfinicclAllReduce, and communicator cleanup withinfinicclCommDestroy.The scope is intentionally limited to the communication path currently exercised by InfiniLM pure TP inference.
Changes
Ascend device integration
WITH_ASCENDbuild option and automatic Ascend environment detection.HCCL backend
WITH_HCCLbuild option, backend registration, and HCCL dependency discovery.CommInitAll,AllReduce, andCommDestroy.Common communicator initialization
CommInitAllcontract to return one communicator per requested device.Platform and Backend Affected
Platform
CommInitAlldispatch path)Backend
CommInitAlladapter)Performance Impact
N/A. This adds a new backend and does not change an existing communication kernel.
Known Issues & Future Work
CommInitAll,AllReduce, andCommDestroy.Test Results
Environment:
0,1)Results:
WITH_ASCEND=ON,WITH_HCCL=ON, andWITH_OMPI=OFF: passed.CommInitAll + AllReduce(sum) + CommDestroysmoke test: passed.1.0.2.0.3.0.git diff --check: passed.ruff check scripts/gen_bridge.py: passed.ruff format --check scripts/gen_bridge.py: passed.clang-format-diff.pyon changed C++ lines: clean with clang-format 21.1.8.Test Involved Platform
Test Involved Backend
Checklist
Title, Branch, and Commits
<type>/xxx-yyyy-zzzz.master.fixup!,squash!, orwipcommits remain.Scope and Design
CommInitAllchange is intentional and its OpenMPI implementation is adapted in the same commit.General Code Hygiene
git diff --checkpasses.C++ Specific
clang-format-diff.py.Python Specific
ruff checkpasses.ruff format --checkpasses.Testing
Build, CI, and Tooling
Documentation
Security and Safety