Pull Request已成功合入, 合并人@CANN-robot
(感谢 yelongjian 的贡献)变更摘要
该 PR 以 Bug 修复为主,围绕 LLT(底层测试)构建链路与测试用例的稳定性和跨平台兼容性展开。构建侧调整了 cmake/fetch_cann_cmake.cmake 的加载条件、scripts/build.sh 中 mockcpp 的编译参数与 ENABLE_LLT_PKG 的自动推导逻辑,以及 scripts/build_fwk.sh 中 GraphEngine 的构建方式(新增 BUILD_OPEN_PROJECT=True、移除 make install、补充 Dflow 依赖目标构建)。测试侧为大量依赖 x86 特定行为或当前 ARM64 运行时不兼容/不稳定的用例增加 GTEST_SKIP() 跳过逻辑,同时修复了若干未初始化变量、命名空间限定与拼写问题,并从 tests/run_test.sh 中移除了针对不兼容 HCCL API 的 HCCE UT/ST 执行。
主要改动
- LLT 构建流程调整:
scripts/build.sh为mockcpp增加-D CMAKE_CXX_FLAGS=-I${CANN_3RD_LIB_PATH}/boost,并在任一 LLT 开关(ENABLE_AICPU_LLT、ENABLE_FE_LLT、ENABLE_TEFUSION_LLT、ENABLE_FFTS_LLT、ENABLE_DVPP_LLT、ENABLE_RTS_LLT、ENABLE_HCCE_LLT)开启时自动置ENABLE_LLT_PKG=on;scripts/build_fwk.sh为GraphEngine增加BUILD_OPEN_PROJECT=True、删除make install(LLT 直接使用构建产物),并在 Dflow UT 运行前先构建ge_compiler ge_runner_v2 ut_libge_helper_utest ut_llm_engine_utest依赖目标 - ARM64 平台测试跳过:在
funciton_compile_unittest.cc、plugin_manager_unittest.cc、data_task_builder_unittest.cc、fftsplus_ops_kernel_builder_unittest.cc、dvpp_rtkernel_unittest.cc、main_unittest.cc、model_helper_misc_unittest.cc、host_cpu_fusion_pass_unittest.cc、ops_kernel_builder_registry_unittest.cc等多个测试文件中,对 ARM64(__aarch64__/__arm64__)下不稳定或不兼容的用例(如 DVPP SQE launch 挂起、HostCPU fusion JIT 不可用、sanitizer 运行时不兼容等)增加GTEST_SKIP()跳过 - 测试代码修复:
range_axis_util_ut.cc将多处未初始化的uint32_t c0初始化为1;aicpu_optimizer_ut.cpp与hostcpu_kernel_builder_ut.cpp分别将PARAM_INVALID、ATTR_NAME_UNKNOWN_SHAPE_TYPE加ge::命名空间限定并补充头文件;fftsplus_ops_kernel_builder_unittest.cc修正nofity→notify拼写并对不稳定的任务生成用例增加跳过;rts_engine_utest_op.cc以{}值初始化RunContext并设置dataMemSize = 1025,跳过依赖环境芯片类型的CmoAddrOpTest - HCCE UT/ST 排除:
tests/run_test.sh删除ENABLE_HCCE=on时执行 HCCE UT 与 ST 的构建分支,原因注释为相关测试针对不兼容的 HCCL API - 测试桩与测试数据调整:
aicpu_stub.cpp删除CpuKernelContext构造函数与Init的 stub 实现;constant.h新增kOptionalInputPlaceholder常量;rts_engine_utest_stub.h增加rt_model.h头文件;test.json调整节点attr中dtype与shape的排列顺序


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 |
|---|---|---|
| repo-cann/ge | ✅ zhanj, 张德鹏, Mexyy (3/2) | ✅ 张德鹏 (1/1) |
| tests/engines/ffts_engine | ✅ 张德鹏, zhanj, Mexyy (3/2) | ✅ 张德鹏 (1/1) |
| tests/engines/nn_engine | ✅ 张德鹏, Mexyy, zhanj (3/2) | ✅ 张德鹏 (1/1) |
| tests/engines/rts_engine | ✅ 张德鹏, zhanj, Mexyy (3/2) | ✅ 张德鹏 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
yelongjian, thanks for your pull request. All authors of the commits have signed the CLA. 👍


compile


流水线任务触发成功
任务链接 [fc9da271460148bea6f5a388dc838554][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_X86_compiler_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_executor_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_dflow_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_ARM_compiler_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_ARM_executor_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_ARM_dflow_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_ARM_compiler | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_ARM_executor | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_ARM_dflow | ✅ SUCCESS | >>>>> | >>>>> |
| API_Check | ✅ SUCCESS | >>>>> |
[2026-08-28 09:53:54] CI执行结束


流水线任务触发成功
任务链接 [55996fc485bf46c69580a3a92f2fd060][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_X86_compiler | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_executor | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_dflow | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test_dflow | ✅ SUCCESS | ||
| UT_Test_ge_common | ✅ SUCCESS | ||
| UT_Test_parser | ✅ SUCCESS | ||
| UT_Test_python | ✅ SUCCESS | >>>>> | |
| UT_Test_rt | ✅ SUCCESS | ||
| UT_Test_acl | ✅ SUCCESS | ||
| UT_Test_autofuse | ✅ SUCCESS | ||
| UT_Test_executor | ✅ SUCCESS | ||
| UT_Test_autofuse_ascendc_api | ✅ SUCCESS | ||
| ST_Test_dflow | ✅ SUCCESS | ||
| ST_Test_ge_common | ✅ SUCCESS | ||
| ST_Test_parser | ✅ SUCCESS | ||
| ST_Test_python | ✅ SUCCESS | >>>>> | |
| ST_Test_rt | ✅ SUCCESS | ||
| ST_Test_autofuse | ✅ SUCCESS | ||
| ST_Test_executor | ✅ SUCCESS | ||
| ST_Test_hetero | ✅ SUCCESS | ||
| ST_Test_autofuse_ascendc_api | ✅ SUCCESS | ||
| ST_Test_autofuse_e2e | ✅ SUCCESS | ||
| UT_Test_fe | ✅ SUCCESS | ||
| UT_Test_tefusion | ✅ SUCCESS | ||
| ST_Test_fe | ✅ SUCCESS | ||
| ST_Test_tefusion | ✅ SUCCESS | ||
| ST_Test_ge_common_atc | ✅ SUCCESS | ||
| UT_Test_Report_graphengine | ✅ SUCCESS | >>>>> | |
| UT_Test_Report_ge_executor_c | ✅ SUCCESS | >>>>> | |
| UT_Test_Report_ge_autofuse | ✅ SUCCESS | >>>>> | |
| ST_Test_Report_graphengine | ✅ SUCCESS | >>>>> | |
| ST_Test_Report_ge_executor_c | ✅ SUCCESS | >>>>> | |
| ST_Test_Report_ge_autofuse | ✅ SUCCESS | >>>>> | |
| UT_Test_Report_fe | ✅ SUCCESS | >>>>> | |
| ST_Test_Report_fe | ✅ SUCCESS | >>>>> |
[2026-08-28 09:42:38] CI执行结束


流水线任务触发成功
任务链接 [b435b9df7f4145ef96e96d96869fcb7f][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck_Pr | ✅ SUCCESS | ||
| antipoison | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| codecheck_dt | ✅ SUCCESS | >>>>> | |
| codecheck_precommit | ✅ SUCCESS | >>>>> | |
| StaticCheck_codespell | ✅ SUCCESS | ||
| StaticCheck_link_validity | ✅ SUCCESS | ||
| StaticCheck_resource_existence | ✅ SUCCESS | ||
| StaticCheck_tag_closed | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS |
[2026-08-28 09:31:02] CI执行结束


compile


流水线任务触发成功
任务链接 [523213b34e29406c85522adb7c58672d][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_X86_compiler | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_executor | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_dflow | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test_dflow | ✅ SUCCESS | ||
| UT_Test_ge_common | ✅ SUCCESS | ||
| UT_Test_parser | ✅ SUCCESS | ||
| UT_Test_python | ✅ SUCCESS | >>>>> | |
| UT_Test_rt | ✅ SUCCESS | ||
| UT_Test_acl | ✅ SUCCESS | ||
| UT_Test_autofuse | ✅ SUCCESS | ||
| UT_Test_executor | ✅ SUCCESS | ||
| UT_Test_autofuse_ascendc_api | ✅ SUCCESS | ||
| ST_Test_dflow | ✅ SUCCESS | ||
| ST_Test_ge_common | ✅ SUCCESS | ||
| ST_Test_parser | ✅ SUCCESS | ||
| ST_Test_python | ✅ SUCCESS | >>>>> | |
| ST_Test_rt | ✅ SUCCESS | ||
| ST_Test_autofuse | ✅ SUCCESS | ||
| ST_Test_executor | ✅ SUCCESS | ||
| ST_Test_hetero | ✅ SUCCESS | ||
| ST_Test_autofuse_ascendc_api | ✅ SUCCESS | ||
| ST_Test_autofuse_e2e | ✅ SUCCESS | ||
| UT_Test_fe | ✅ SUCCESS | ||
| UT_Test_tefusion | ✅ SUCCESS | ||
| ST_Test_fe | ✅ SUCCESS | ||
| ST_Test_tefusion | ✅ SUCCESS | ||
| ST_Test_ge_common_atc | ✅ SUCCESS | ||
| UT_Test_Report_graphengine | ✅ SUCCESS | >>>>> | |
| UT_Test_Report_ge_executor_c | ✅ SUCCESS | >>>>> | |
| UT_Test_Report_ge_autofuse | ✅ SUCCESS | >>>>> | |
| ST_Test_Report_graphengine | ✅ SUCCESS | >>>>> | |
| ST_Test_Report_ge_executor_c | ✅ SUCCESS | >>>>> | |
| ST_Test_Report_ge_autofuse | ✅ SUCCESS | >>>>> | |
| UT_Test_Report_fe | ✅ SUCCESS | >>>>> | |
| ST_Test_Report_fe | ✅ SUCCESS | >>>>> |
[2026-08-28 10:06:46] CI执行结束


流水线任务触发成功
任务链接 [3dcdf522fffe4b24961b39634187480b][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_X86_compiler_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_executor_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_dflow_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_ARM_compiler_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_ARM_executor_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_ARM_dflow_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_ARM_compiler | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_ARM_executor | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_ARM_dflow | ✅ SUCCESS | >>>>> | >>>>> |
| API_Check | ✅ SUCCESS | >>>>> | |
| PreSmoke_A900_npupool | ✅ SUCCESS | >>>>> |
[2026-08-28 10:23:47] CI执行结束


流水线任务触发成功
任务链接 [85f2bafecd9c49a693288d1743890317][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck_Pr | ✅ SUCCESS | ||
| antipoison | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| codecheck_dt | ✅ SUCCESS | >>>>> | |
| codecheck_precommit | ✅ SUCCESS | >>>>> | |
| StaticCheck_codespell | ✅ SUCCESS | ||
| StaticCheck_link_validity | ✅ SUCCESS | ||
| StaticCheck_resource_existence | ✅ SUCCESS | ||
| StaticCheck_tag_closed | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS |
[2026-08-28 09:57:32] CI执行结束


/lgtm


环境 A:Linux arm
环境B:Debian arm
ge_commonHostCpuFusionPassTest.CompilesGeneratedSourceAndRejectsInvalidSourcex86_64-linux-gnu-g++,退出码 127ge_commonEsMainUt.ExecuteGeneration_ExtractHistoryWithEmptyVersionasc_dumper运行时 abort,曾报libunified_dlog.so加载失败ge_rtgenerate_sqe_and_launch_task_001~006ge_rtCalcOpWorkSpaceSize_001~003stack smashing detected,进程 abortge_commonIncCov_DestructorUnregisterWarning_Testut_register失败dflowlibge_runner_v2.so符号缺失ut_libge_helper_utest、ut_llm_engine_utestundefined symbol: SymbolicInferUtil::GetValueDependentInputIdxsdflowFunctionCompileTest.FunctionPpCompile、FunctionCompileTest.CompileAllResourceTypeFailed{Ascend, Aarch},测试硬编码{Ascend, X86}select_targets构建fe_gentask_utils.cc时找不到proto/task.pb.htests/engines/CMakeLists.txt中仅对 Engine LLT 的aicore_utils补充graphengine_protos依赖和头文件路径tests/run_test.sh --ut的build_ut配置cmake ..时generate_cann_protobuf未定义fetch_cann_cmake.cmake;新版本 CMake 使用--fresh,旧版本仅清理CMakeCache.txt和CMakeFiles后重新配置aicore_utils链接库路径缺失aicore_utils-lgraph、-lregister无法解析ge_commonc0RANGE_AXIS_UTIL_UTEST用例c0在 B 上为 0c0 = 1ge_commonUtestModelHelperMisc.CheckOsCpuInfoAndOppVersion_NeedCheckasc_dumper缺少依赖后触发 ASAN SEGV-lgraph_base、-llowering、-lgraph等链接错误ffts_ut编译nofity未声明notifytasks为空时访问tasks[0]PluginManagerUTEST.Close_Handle_Fail_2dlclose触发 SIGSEGVbuild_fwk.sh、scripts/build.sh的 LLT 构建rts_engine_utest配置、编译和执行select_targets依赖及 Release 运行时 gtest 路径缺失rts_ut目标依赖及 gtest rpath;本地清理build/后 67 个用例中 66 个通过、1 个跳过RtsEngineOpTest.CmoAddrOpTest507008,与固定期望不一致MemcpyAsyncOp.Notiling_01未设置运行时数据内存容量MemcpyAsyncOp.Notiling_01dataMemSize不足,输入或 descriptor 地址范围校验失败RunContext并设置dataMemSize = 1025;本地 RTS UT 66 个通过、1 个跳过,Notiling_01通过hccl_engine_utest、hccl_engine_stesttests/run_test.sh全量 UT/ST 流程中注释 HCCE 构建与执行