Skip to content

Fix: use Simpler namespaces for onboard host helpers - #2976

Merged
ChaoWao merged 2 commits into
hw-native-sys:mainfrom
ChaoWao:fix/framework-followup-2972
Nov 10, 2026
Merged

ChaoWao merged 2 commits into
hw-native-sys:mainfrom
ChaoWao:fix/framework-followup-2972

Conversation

@ChaoWao

@ChaoWao ChaoWao commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Use simpler::a2a3 and simpler::a5 for Simpler's onboard host context preparation, AICPU topology and affinity helpers, and their callers.
  • Preserve the public C ABI and runtime behavior.

Validation

  • Six CPU CTest targets and 20 driver header tests passed.
  • A2/A3 and A5 HOST sources compiled, and the A5 topology query tool linked.
  • Normal commit hooks and the final diff's pre-commit checks passed.

Related to #2666 and #2972. Framework environment CI is tracked in #2904 and #2924.

Name the dedicated scene job by its Torch-NPU dependency. Eager and cold
capture share the same declared environment. Default cases stay in the
onboard job.

Use simpler namespaces for the onboard context and topology helpers and
their in-tree callers.
@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

CI now routes A2A3 and A5 Torch-NPU tests through the shared workflow and updates related documentation and tests. A2A3 and A5 AICPU declarations and call sites now use the simpler namespace. The provided summaries report no behavior changes in the host code.

Changes: Torch-NPU CI routing

Layer / File(s) Summary
Rename and route Torch-NPU jobs
.github/actions/setup-framework-eager/action.yml, .github/workflows/_st-npu-a2a3.yml, .github/workflows/_st-torch-npu.yml, .github/workflows/ci-a5-comment.yml, .github/workflows/ci-self.yml, .github/workflows/ci.yml, .github/workflows/daily.yml
Workflow labels and job names now use Torch-NPU terminology. A2A3 and A5 jobs call the shared Torch-NPU workflow, and the A5 comment report uses the renamed job.
Update qualification references
docs/ci.md, examples/workers/l2/framework_eager/README.md, tests/ut/py/test_a5_comment_ci.py, tests/ut/py/test_framework_eager_ci_platform.py, tests/ut/py/test_framework_eager_contract.py
Documentation and workflow tests now refer to Torch-NPU jobs and qualification. Documentation describes the shared torch_npu environment for eager and cold-capture cases.

AICPU namespace updates

Layer / File(s) Summary
Update A2A3 AICPU declarations and callers
src/a2a3/platform/onboard/host/*, tests/ut/cpp/a2a3/platform/test_aicpu_affinity_select.cpp, tests/ut/cpp/common/platform/test_native_admission.cpp
A2A3 topology and context-preparation declarations and implementations, device-runner references, and tests now use simpler::a2a3.
Update A5 AICPU declarations and callers
src/a5/platform/onboard/host/*, src/a5/runtime/tensormap_and_ringbuffer/runtime/runtime.h, tests/ut/cpp/a5/platform/test_aicpu_topology_fallback.cpp, tests/ut/cpp/common/platform/test_native_admission.cpp, tests/ut/py/test_aicpu_topology_driver_headers.py, tools/cann-examples/aicpu-device-query/host/query_device_hal.cpp
A5 topology, context-preparation, device-runner, test, and device-query references now use simpler::a5. The invalid-count test also checks a zero driver count.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Refactor

Possibly related issues

  • hw-native-sys/simpler#2904: This PR updates the Torch-NPU job selection and retains eager and cold-capture cases in that environment.
  • hw-native-sys/simpler#2666: This PR updates the Torch-NPU CI environment for eager and cold-capture cases and changes A2A3 and A5 host context references.
  • hw-native-sys/simpler#2670: This PR updates the Torch-NPU CI selection and A2A3/A5 host-side namespace references described by the tracker.

Possibly related PRs

Merge Risk: Minimal · up to 588ec

The changes are mergeable after normal checks; the remaining discrepancy is a narrow code-comment reference.

Pre-merge checks: Passed 4

Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly describes the namespace changes to onboard host helpers, a main part of the changeset.
Description check Passed The description covers the namespace changes, preserved behavior, and validation reported for the pull request.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks the job names twice,
Then hops through A2A3’s namespace change.
A5 follows the same trail,
Eager and cold-capture share the test lane,
And the bunny files the run report.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d78577b5-c3f6-4859-8792-f3cd6a4eee25
Commits

Reviewing files that changed from the base of the PR and between 20af3c1 and 588ec4b.

Files selected for processing: 32

  • .github/actions/setup-framework-eager/action.yml
  • .github/workflows/_st-npu-a2a3.yml
  • .github/workflows/_st-torch-npu.yml
  • .github/workflows/ci-a5-comment.yml
  • .github/workflows/ci-self.yml
  • .github/workflows/ci.yml
  • .github/workflows/daily.yml
  • docs/ci.md
  • examples/workers/l2/framework_eager/README.md
  • src/a2a3/platform/onboard/host/aicpu_affinity_select.cpp
  • src/a2a3/platform/onboard/host/aicpu_topology_probe.cpp
  • src/a2a3/platform/onboard/host/aicpu_topology_probe.h
  • src/a2a3/platform/onboard/host/context_preparation.cpp
  • src/a2a3/platform/onboard/host/context_preparation.h
  • src/a2a3/platform/onboard/host/device_runner.cpp
  • src/a2a3/platform/onboard/host/device_runner.h
  • src/a5/platform/onboard/host/aicpu_affinity_select.cpp
  • src/a5/platform/onboard/host/aicpu_topology_probe.cpp
  • src/a5/platform/onboard/host/aicpu_topology_probe.h
  • src/a5/platform/onboard/host/context_preparation.cpp
  • src/a5/platform/onboard/host/context_preparation.h
  • src/a5/platform/onboard/host/device_runner.cpp
  • src/a5/platform/onboard/host/device_runner.h
  • src/a5/runtime/tensormap_and_ringbuffer/runtime/runtime.h
  • tests/ut/cpp/a2a3/platform/test_aicpu_affinity_select.cpp
  • tests/ut/cpp/a5/platform/test_aicpu_topology_fallback.cpp
  • tests/ut/cpp/common/platform/test_native_admission.cpp
  • tests/ut/py/test_a5_comment_ci.py
  • tests/ut/py/test_aicpu_topology_driver_headers.py
  • tests/ut/py/test_framework_eager_ci_platform.py
  • tests/ut/py/test_framework_eager_contract.py
  • tools/cann-examples/aicpu-device-query/host/query_device_hal.cpp

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@ChaoWao ChaoWao changed the title Fix: align Torch-NPU CI and onboard host namespaces Fix: use Simpler namespaces for onboard host helpers Nov 10, 2026
@ChaoWao
ChaoWao merged commit 18e1841 into hw-native-sys:main Nov 10, 2026
26 of 27 checks passed
@ChaoWao
ChaoWao deleted the fix/framework-followup-2972 branch November 10, 2026 04:43
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