Add: strengthen TMR kernel-mode eager and ACLGraph scene tests - #2253
Open
Leaf-Salix wants to merge 1 commit into
Open
Leaf-Salix wants to merge 1 commit into
Leaf-Salix wants to merge 1 commit into
Conversation
Cover distinct callable tables, fan-out/fan-in dependencies, ordinary kernel composition, graph lifetime and geometry snapshot isolation. Exercise single-invocation ring reuse, assert actual early-dispatch completion, and preserve old graphs across callable cache growth. Check synchronous prepare and prohibit direct launch-time resource operations without changing the production runtime. Validate all 34 scenes on A2/A3 hardware against feat 2559159.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
在
feat/kernel-mode-integration-test的255915991d3e05d9290b056b822040b1e81fbeb6基础上,补强 TMR kernel-mode eager / ACLGraph 真机 ST。继承 #2242 的正式 kernel C API 场景及 #2249 的同步 prepare 契约,仅修改测试,不修改生产 runtime、公开 ABI 或 program 模式。相对目标分支,场景由 24 项增加至 34 项:新增 10 项,同时加强原有 A/B/A、DAG 和资源检查。不是把重复 replay 次数当作新的覆盖面。
Kernel-mode ST construction
全部新增场景经真实 kernel-mode C API 和 CANN 执行,不使用 program
Worker.run,不是 UT 或 fake-runtime 验证。Coverage matrix
multi_callable,eager_multi_callabletmr_dag,eager_dagmixed_stream_eager,mixed_stream_graphgeometry_snapshotgraph_survivorcontext_lifecyclering_wrap_eager,ring_wrap_graphearly_dispatch_eager,early_dispatch_graphearly_dispatch_launch_state=COMPLETE并输出标记,同时校验数值。普通路径也会写的early_dispatch_state=DISPATCHED不作命中证明callable_growthlibhost_runtime的 alloc/free、stream/event 创建、H2D 请求;不把 CANN 内部保存 graph 参数的分配算作 Simpler 违规其余冷捕获、输入内容变化、反馈批提交、graph/eager 混用、换流准入、Host 拒绝及 prepare 失败场景继续回归。保留 #2249 的
blocked_same/stream_busy:门闩阻塞实际 launch,不再要求 prepare 异步返回。Test isolation and sensitivity
Validation
基线
25591599,A2/A3 真机、CANN 9.0.0、独占单卡、隔离 checkout/venv;复用已有依赖,未安装 Torch。遵循架构预检和独占设备工作流。以上结果不是 A5、HBG 或 vLLM/PyPTO 整网验收。
Known limitations
callable_growth验证真实分配块增长及旧图保活,不冒充数量/字节上限拒绝和失败回滚测试,也不降低生产上限伪造边界。expected_arg_count=4,实际提交两个 tensor 加一个 scalar:AICPU 日志报告invocation argument count does not match callable,simpler_aicpu_kernel_exec返回 -1,但 caller 的aclrtSynchronizeStreamWithTimeout返回 0。在25591599重建后仍复现。该失败没有改为 pass/xfail,也没有据此声称同一 context 可安全恢复;本 PR 不修改错误传播生产协议。