Skip to content

Use pto-arch a3 for Ascend910B handling#234

Open
wangqilin18 wants to merge 14 commits intozhangstevenunity:mainfrom
wangqilin18:codex/ptoas-release
Open

Use pto-arch a3 for Ascend910B handling#234
wangqilin18 wants to merge 14 commits intozhangstevenunity:mainfrom
wangqilin18:codex/ptoas-release

Conversation

@wangqilin18
Copy link

Summary

  • Switch Ascend910B-related branching to use pto-arch (a3) instead of device-spec strings.
  • Update samples/testdata to pto.target_arch attributes.
  • Align NPU validation scripts and runop behavior with pto-arch.

Testing

  • Not run.

@zhangstevenunity
Copy link
Owner

@codex

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4ff6b7bf16

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

run_sh = run_sh.replace("@EXECUTABLE@", testcase)
run_sh = run_sh.replace("@RUN_MODE@", run_mode)
run_sh = run_sh.replace("@SOC_VERSION@", soc_version)
run_sh = run_sh.replace("@SOC_VERSION@", arch_for_runsh)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Pass a real SoC value into generated run.sh

generate_testcase now fills @SOC_VERSION@ with pto_arch (a3/a5), but the generated run.sh still treats SOC_VERSION as a simulator/target SoC name (it builds simulator library paths and forwards -DSOC_VERSION to CMake in test/npu_validation/templates/run_sh_template.sh). In GOLDEN_MODE=sim, this causes lookups like .../simulator/a3/lib instead of a valid SoC directory, so sim-golden builds/runs can fail for otherwise valid testcases.

Useful? React with 👍 / 👎.

@wangqilin18 wangqilin18 force-pushed the codex/ptoas-release branch 2 times, most recently from f32a77a to 2337737 Compare March 12, 2026 12:06
@wangqilin18 wangqilin18 force-pushed the codex/ptoas-release branch from ed0da8d to a8c6755 Compare March 13, 2026 02:50
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.

2 participants