Merged
feat(hccl): 新增 Mc2GetSupportAlgList 可用算法查询接口,REGISTER_ALG_META 拓扑过滤改为 TopoPattern #7444
feat(hccl): 新增 Mc2GetSupportAlgList 可用算法查询接口,REGISTER_ALG_META 拓扑过滤改为 TopoPattern #7444
Merged
yuht9Add on 11 days ago
yuht9
yuht9
11 days ago

描述

关联的Issue

测试

文档更新

类型标签

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for yuht9's contribution.)
yuht9yuht9
11 days ago Created pull request, commit ef8cbd03
CANN-robotCANN-robotCollaborators
11 days ago Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
11 days ago Comments:

Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.


PR Approval Progress

✅ Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
include/adv_api ✅ wuzhaolin, houyuyang, zhanghao_0689 (3/2) ✅ wuzhaolin (1/1)
repo-cann/asc-devkit ✅ houyuyang, zhanghao_0689 (2/2) ✅ houyuyang, zhanghao_0689 (2/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

yuht9, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
CANN-robot
CANN-robotCollaborators
11 days ago Comments:

CLA Signature Pass

yuht9, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
CANN-robotCANN-robotCollaborators
11 days ago Set zengjuan,zhanghao_0689,suqwe,wulinyu,kong0808,dengjing_aoe,YeZZzzz1,yangbinhua,zhudi22,chenyiyuan,xun_zhuge,XuebinYang,sjtulxh,bianque,houyuyang,Lycheeeee,YANXI_ZHAO,chentianyu19,shi_nanxiang,wuyang_hw,jiangxinyu3,ascendhjh,hujiawen_kaven,wangxiaozhi,DragonBornHD84,louyuxuan,hyolee,chenma,yukangchen,wuzhaolin as approver
355 messages are collapsed here。 See more
CANN-robot
CANN-robotCollaborators
5 days ago Comments:

流水线分析报告 — asc-devkit run#8617

流水线: https://gitcode.com/CANN/asc-devkit/actions/runs/d268a8ae1e5d4fdbaa92aad5bb8f206e | PR#7444 | 2026-11-20 16:55:18 ~ 17:05:37 (CST) | 失败 Job 1 个(另 3 个下游 Job 级联未启动)

定界结论: 代码问题 / LLT测试失败 — CcuStAllToAllV.CcuSchedAllToAllVSoleMeshConcurrent_4Rank_Mesh1DClos_Int32_128B
  • 失败类型: 代码问题(LLT 测试失败),置信度高(单用例确定性通道计算失败,非瞬时抖动,重试不会自愈)
  • 根因: 用例 CcuStAllToAllV.CcuSchedAllToAllVSoleMeshConcurrent_4Rank_Mesh1DClos_Int32_128B 在 CCU 通道建立阶段失败 —— CalcChannelRequestMeshClosMultiJetty 报 no channel between local rank[3] and remote rank[0](hcclRet→4),随后 4 个 rank 的 SimChannelMgr::ChannelCommCreate 等待通道就绪 20s 超时(hcclRet→9),算法资源申请失败,rank0 内核注册返回 0 句柄,触发 ccu_fixture.cc:263 断言 handles[rank] != 0。
  • 影响 Job: ut(JOB_UT_Test_adv_test_two_0,耗时 265s,唯一真实失败);UT_report、PreSmoke_A2、PreSmoke_A5 共 3 个下游 Job 处于 INIT 未启动,属前置 UT 失败的级联,无独立失败。
  • 处置建议: 通知 PR 提交者修复。优先核对本 PR 的 TopoPattern 改造是否把该 4Rank/128B(Int32)用例错误路由到 Concurrent 执行器:kCcuSchedAllToAllVSoleMeshConcurrentPatterns 无长度/dtype 子句,而同文件 A2A 版本 kCcuSchedAllToAllSoleMeshConcurrentPatterns 带 AddLenClause{PER_RANK, GT, 512},存在判据不对称。修正 pattern 判据或修正 Concurrent 在 4Rank Mesh1DClos 下的通道请求后重跑门禁。
  • 排除项: 同 runner 上其余 24 个 Job(Test_image / Test_get-pr / Test_pre_pipeline / Test_get-shell / 4×compile / codecheck×6 / staticcheck / API_Check / 6 个 UT 分片 / Test_finish)全部 COMPLETED,本 Job 内同族用例(Fp16_100B / Fp32_1KB / Bfp16_64B / Fp16_ZeroLength 等)均 OK;无依赖下载失败、无镜像拉取失败、无平台错误码(DEV-CODECI / 平台内部错误均未出现),编译阶段 100% 成功 —— 非环境问题、非工程问题、非取码问题。

失败根因分析

根因 #1: 代码问题 / LLT测试失败 — CCU A2AV Concurrent 用例通道计算失败(mesh-clos rank3↔rank0 无通道 → 20s 超时)

判据: Job 名 ut → LLT 测试失败(该 Job 编译阶段无任何 error,失败发生在 gtest 执行阶段)。

定位步骤:

  1. 从日志尾部回溯,跳过 gmake: *** Error 2、[ FAILED ] 1 test, listed below、1 FAILED TEST 等汇总行;
  2. 落到首个真实错误:channel.cc:994 CalcChannelRequestMeshClosMultiJetty no channel between local rank[3] and remote rank[0];
  3. 追调用链:ins_v2_all_to_all_concurrent_executor.cc:111 [CalcRes] hcclRet -> 4 → rank 侧 SimChannelMgr::ChannelCommCreate wait channel ready timeout(17:01:36 → 17:01:56,恰好 20s)→ failed to alloc alg resource → 内核注册失败;
  4. 最终断言 ccu_fixture.cc:263:Expected: (handles[rank]) != (0U), actual: 0 vs 0,failed to register kernel for rank 0。

根因证据(日志原文 5_ut_acc.log):

[  RUN      ] CcuStAllToAllV.CcuSchedAllToAllVSoleMeshConcurrent_4Rank_Mesh1DClos_Int32_128B
[2026-11-20 17:01:36.460225][pid:3371][ERROR][channel.cc:994] [3487][CalcChannelRequestMeshClosMultiJetty] no channel between local rank[3] and remote rank[0].
[2026-11-20 17:01:36.460264][pid:3371][ERROR][channel.cc:1029] [3487][CalcChannelRequestMeshClosMultiJetty]call trace: hcclRet -> 4
[2026-11-20 17:01:36.460269][pid:3371][ERROR][ins_v2_all_to_all_concurrent_executor.cc:111] [3487][CalcRes]call trace: hcclRet -> 4
[2026-11-20 17:01:36.460598][pid:3371][ERROR][op_common.cc:851] [3487][CalcAlgResourceRequest]call trace: hcclRet -> 4
[2026-11-20 17:01:56.470434][pid:3371][ERROR][sim_channel_manager.cc:74] [3484][SimChannelMgr::ChannelCommCreate] wait channel ready timeout
[2026-11-20 17:01:56.470464][pid:3371][ERROR][op_common.cc:1634] [3484][HcclGetChannelForCcu]call trace: hcclRet -> 9
[2026-11-20 17:01:56.470470][pid:3371][ERROR][op_common.cc:1566] [3484][HcclAllocAlgResourceCcu]call trace: hcclRet -> 9
[2026-11-20 17:01:56.470474][pid:3371][ERROR][op_common.cc:1476] [3484]failed to alloc alg resource.
(rank 3485 / 3486 / 3487 同形态重复)
[2026-11-20 17:01:56.513+08:00] ccu_fixture.cc:263: Failure
[2026-11-20 17:01:56.513+08:00] Expected: (handles[rank]) != (0U), actual: 0 vs 0
[2026-11-20 17:01:56.513+08:00] failed to register kernel for rank 0
[2026-11-20 17:01:56.513+08:00] [  FAILED  ] CcuStAllToAllV.CcuSchedAllToAllVSoleMeshConcurrent_4Rank_Mesh1DClos_Int32_128B (20099 ms)

(hcclRet 4 = HCCL_E_INTERNAL,9 = HCCL_E_TIMEOUT)

影响 Job:

  • ut(JOB_UT_Test_adv_test_two_0,测试二进制 tests/api/adv_api/hccl/cc/ut/algorithm/testcase/mc2_ccu/ascendc_ut_adv_api_ccu_st)
  • 级联未启动: UT_report(ut_report_lcov)、PreSmoke_A2、PreSmoke_A5

与 PR#7444 变更的关联(根因指向,供提交者核实):

  • 本 PR 把 REGISTER_ALG_META 的 FLAG_UBX/FLAG_NONE 拓扑过滤整体改为 TopoPattern 数组;失败用例对应算法 CcuSchedAllToAllVSoleMeshConcurrent 正是被改注册的文件之一:
    • impl/adv_api/detail/hccl/cc/src/ops/all_to_all_v/executor/ins_v2_all_to_all_concurrent_executor.cc:FLAG_UBX → kCcuSchedAllToAllVSoleMeshConcurrentPatterns
    • 新增 impl/adv_api/detail/hccl/cc/src/ops/all_to_all_v/executor/all_to_all_v_alg_patterns.h
  • 新 pattern 为 Level{1,1} + MESH_1D_CLOS + PcieMix=No + Level2UbRtp=No + MeshEqClos=Yes + RankSize{0,4},无长度/数据类型子句,正好覆盖失败用例的拓扑(4Rank Mesh1DClos)。
  • 对照组(同一 PR、同一文件)A2A 版本 kCcuSchedAllToAllSoleMeshConcurrentPatterns 带 AddLenClause{PER_RANK, GT, 512},把 ≤512B 小包留给 MultiJetty;而 A2AV 版本缺该子句。失败用例为 128B 小包,正好落在该「判据不对称」区间。
  • 建议本地复现:./ascendc_ut_adv_api_ccu_st --gtest_filter=CcuStAllToAllV.CcuSchedAllToAllVSoleMeshConcurrent_4Rank_Mesh1DClos_Int32_128B,复现后二选一修正:① 给 A2AV Concurrent pattern 补上与 A2A 一致的长度(及必要 dtype)判据,使小包回退 MultiJetty;② 确认该用例确应走 Concurrent 时,修正 Concurrent 在 4Rank Mesh1DClos 下的通道请求(或该用例的仿真拓扑配置)。

由门禁失败定界分析自动生成 | repo: asc-devkit | run: d268a8ae1e5d4fdbaa92aad5bb8f206e | PR#7444

likedislike
izanaamiizanaamiCollaborators
5 days ago Resolved final issue
CANN-robotCANN-robotCollaborators
5 days ago Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
5 days ago Added label: ci-pipeline-passed
CANN-robotCANN-robotCollaborators
5 days ago Merged pull request