Skip to content

bugfix: copy complete HCCL header dependencies. - #32

Open
jarvis666666 wants to merge 2 commits into
xLLM-AI:mainfrom
jarvis666666:main
Open

bugfix: copy complete HCCL header dependencies.#32
jarvis666666 wants to merge 2 commits into
xLLM-AI:mainfrom
jarvis666666:main

Conversation

@jarvis666666

Copy link
Copy Markdown

CANN 9.1 changes the internal moe_distribute_base.h dependency layout.
The header may include moe_distribute_comm_ctx.h, while the existing build
script copies only moe_distribute_base.h. This leaves an incomplete header
dependency closure and causes custom MC2 operator compilation to fail.

  • Detect whether the selected moe_distribute_base.h includes
    moe_distribute_comm_ctx.h.
  • Resolve the dependency relative to the selected base header instead of
    hard-coding CANN 9.0 or CANN 9.1 paths.
  • Copy the complete HCCL header set to every MC2 consumer directory.
  • Fail early when a declared sibling dependency is unavailable.
  • Keep the existing behavior when the selected CANN header has no additional
    dependency.

This is a compatibility fix for the current dependency on CANN internal
headers. A future change will replace these private header dependencies with
supported public CANN interfaces.

Super User and others added 2 commits July 29, 2026 14:58
- Detect the optional moe_distribute_comm_ctx.h dependency from the CANN base header.
- Copy the complete HCCL header set to every MC2 consumer directory.
- Fail early when a declared sibling dependency is unavailable.
  - migrate op host code to the public ops_log interface
  - remove the CANN logging compatibility shim
  - eliminate the transitive log/log.h dependency from platform_util.h
  - add public logging definitions for common and ONNX plugin targets
  - update op generation templates to use public logging APIs

  Verified package builds with CANN 9.0 and CANN 9.1.
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.

1 participant