Repository navigation
Fix codecheck warnings - #367
Conversation
|
/run a5 |
A5 板测失败
失败用例
|
A5 板测失败详情:PR #367test_intercore_sync_a5
test_intercore_sync_a5_functional
test_intercore_sync_a5_dyn
sort32
gatherb
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ba67729e75
ℹ️ 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".
| if (succeeded(p.parseOptionalGreater())) | ||
| break; | ||
| done = true; | ||
| if (p.parseComma()) return {}; |
There was a problem hiding this comment.
Preserve early loop exit after parsing closing '>'
When parseOptionalGreater() succeeds, the parser has already consumed the closing > and should stop parsing fields immediately. This change sets done = true but still unconditionally calls parseComma(), so any non-empty TileBufConfigAttr now fails to parse at the end of the last key/value pair because no comma follows >. In practice, valid forms like <blayout=..., slayout=...> will be rejected.
Useful? React with 👍 / 👎.
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
A3 板测失败
失败用例
|
A3 板测失败详情:PR #367xors
xor
vectorAddition
vadd_validshape_hyper
vadd_pto_ir
syncHigh
vadd_pto_pingpong
subsc
subs
shrs
rowexpanddiv
rowexpandadd
paged_attention_example_kernel_softmax_prepare
partadd
ors
or
not
neg
muls
mul
mins
min
gather_legacy
expands
expand
exp
elementwise
divs2
|
A3 板测失败详情:PR #367divs
div
colmax
colexpandsub
colexpandmul
colexpandmin
colexpandmax
colexpanddiv
ands
and
|
处理到的 codecheck 规则:
冗余代码[C++]
G.PRJ.05 不用的代码段直接删除,不要注释掉 (comment-out-code)
G.CMT.06 文件头注释应该包含版权许可信息 (header-copyright)
G.CTL.03 循环必须安全退出【C】
不安全函数[C++]
这里这次落到的具体命中项主要是 getS 和 memcpy
对应改动:
删除大段注释掉的旧实现和死代码
给缺少版权头的文件补许可证头
把 while (true) 改成有显式退出条件的循环
把 getS() 改成更直接的 operand 访问
把一处 memcpy 改成 std::copy
把 Python 测试脚本里的 print/注释代码风格整理成 logging