Skip to content

feat(cambricon): add TaskTopo graph runtime support - #39

Open
gongchensu wants to merge 1 commit into
InfiniTensor:masterfrom
gongchensu:feat/cambricon-tasktopo-graph-runtime
Open

feat(cambricon): add TaskTopo graph runtime support#39
gongchensu wants to merge 1 commit into
InfiniTensor:masterfrom
gongchensu:feat/cambricon-tasktopo-graph-runtime

Conversation

@gongchensu

@gongchensu gongchensu commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Map Cambricon graph operations in src/native/cambricon/runtime_.h to CNRT queue capture and TaskTopo instantiate/replay APIs.
  • Enable cnrtMemsetAsync for captured workloads and add Cambricon graph/runtime dispatch coverage in tests/.

Motivation

Cambricon previously could not use real CNRT graph capture through InfiniRT. This change exposes CNRT queue capture and TaskTopo lifecycle operations so captured workloads can be instantiated and replayed as device graphs.

Related to InfiniTensor/InfiniCore#1373

Type of Change

  • feat - new feature / new backend capability / new public API
  • fix - bug fix
  • perf - performance improvement without behavior change
  • refactor - code restructuring without behavior change
  • test - adding or fixing tests only
  • docs - documentation only
  • build / ci - build system or CI configuration
  • chore - tooling, formatting, or other non-code changes
  • Breaking change (requires a ! in the Conventional Commits prefix or a BREAKING CHANGE: footer)

Platforms Affected

  • CPU (WITH_CPU)
  • NVIDIA (WITH_NVIDIA)
  • Iluvatar (WITH_ILUVATAR)
  • Hygon (WITH_HYGON)
  • MetaX (WITH_METAX)
  • Moore (WITH_MOORE)
  • Cambricon (WITH_CAMBRICON)
  • Ascend (WITH_ASCEND)
  • Build system / CMake / generated headers
  • Public headers / installed consumer API
  • Documentation only

Smoke Build and Test Result

paste smoke build and test output here

Test Results on Supported Platforms

Platform Affected Build / Smoke Result Full Result / Notes
CPU
NVIDIA
Iluvatar
Hygon
MetaX
Moore
Cambricon
Ascend
Full `ctest` output (optional)
paste here

Benchmark / Performance Impact

Notes for Reviewers

Map InfiniRT graph operations to CNRT queue capture and TaskTopo APIs so Cambricon can record, instantiate, and replay real device graphs.

Enable async memset required by captured workloads and register Cambricon graph/runtime dispatch coverage.
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