add detect for a5 board#737
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the remote NPU validation script to detect A5 targets from SOC_VERSION and SIM_SOC_VERSION, skipping the A3 simulator directory fallback. The review feedback suggests optimizing the target detection logic to avoid redundant subshell executions by using Bash's regular expression matching.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| elif [[ "$(printf '%s' "${SOC_VERSION} ${SIM_SOC_VERSION}" | tr '[:upper:]' '[:lower:]')" == *950* \ | ||
| || "$(printf '%s' "${SOC_VERSION} ${SIM_SOC_VERSION}" | tr '[:upper:]' '[:lower:]')" == *a5* ]]; then |
There was a problem hiding this comment.
The subshell command printf '%s' ... | tr '[:upper:]' '[:lower:]' is executed twice redundantly. We can optimize this by using Bash's regular expression operator =~ to perform both checks in a single match, which avoids spawning duplicate subshells.
| elif [[ "$(printf '%s' "${SOC_VERSION} ${SIM_SOC_VERSION}" | tr '[:upper:]' '[:lower:]')" == *950* \ | |
| || "$(printf '%s' "${SOC_VERSION} ${SIM_SOC_VERSION}" | tr '[:upper:]' '[:lower:]')" == *a5* ]]; then | |
| elif [[ "$(printf '%s' "${SOC_VERSION} ${SIM_SOC_VERSION}" | tr '[:upper:]' '[:lower:]')" =~ 950|a5 ]]; then |
|
/run a5 rope_kv_cache,post_rmsnorm --pto-level=level3 |
|
已接收
页面会自动刷新,可以直接看当前阶段、排队情况和最近结果。 |
A5 板测失败
失败用例
|
A5 板测失败详情:PR #737rope_kv_cache
post_rmsnorm
|
|
/run a5 rope_kv_cache,post_rmsnorm |
|
已接收
页面会自动刷新,可以直接看当前阶段、排队情况和最近结果。 |
A5 板测失败
失败用例
|
A5 板测失败详情:PR #737rope_kv_cache
post_rmsnorm
|
|
/run a3 rope_kv_cache,post_rmsnorm |
|
已接收
页面会自动刷新,可以直接看当前阶段、排队情况和最近结果。 |
A3 板测成功
|
Codex Review该评论由 review 机器人自动更新。
SummaryPR #737 的 A5 分支仍然依赖 SOC_VERSION/SIM_SOC_VERSION,而不是真实板卡信息;在默认/误配路径下仍会把 A5 机型误判成 A3,切到错误的验证分支。 Findings
新增分支只在 |
check whether PTOAS_BOARD_IS_A3=1 is enable in a5 board test