已合并
revert add_example #596
revert add_example #596
已合并
weinachuan创建于 2025年12月25日
weinachuan成员
2025年12月25日

描述

关联的Issue

测试

文档更新

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 weinachuan 的贡献)
CANN-robot
CANN-robot成员
2025年12月25日 评论:

Thank your for your pull-request.

The full list of commands accepted by me can be found at here.

You can get sig-info at here

likedislike
CANN-robot
CANN-robot成员
2025年12月25日 评论:

以下是根据您提交的修改文件推荐的Reviewer和Committer序列,需各模块评审通过后方可合入

Module List Reviewers Committers
examples yu-xinjie62, songkai111 mabing1118, liudan12, Allan_Yu, monologue815
likedislike
CANN-robotCANN-robot成员
2025年12月25日 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
2025年12月25日 评论:

🔵 source code change are detected, tasks labels is removed in this pull request!

likedislike
weinachuan成员
2025年12月25日 评论:

compile

likedislike
Wweinachuan成员
2025年12月25日 关联了issue:[Bug-Report|缺陷反馈]: 无法正常编译样例add_example
CANN-robotCANN-robot成员
2025年12月25日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
2025年12月25日 评论:

问题/功能描述

本次PR主要对AddExample算子的示例代码、文档和底层实现进行了更新和优化。核心目标是提升示例的准确性、代码的健壮性以及算子在不同平台上的兼容性。具体解决了算子调用方式说明过时、头文件引用路径错误、算子定义配置不完整,以及内核tiling计算逻辑中潜在的除零错误风险。

修改方案描述

修改方案主要包括四个方面:一是更新文档和示例代码,将调用方式统一为“aclnn调用”并修正头文件路径;二是在算子定义中扩展对ascend910_93 SOC版本的支持,提升平台兼容性;三是调整构建脚本以优化编译流程;四是重构内核tiling实现,将可能导致除零错误的向上取整除法改为整除,并简化数据拷贝操作,从而修复了关键的计算逻辑缺陷,增强了代码的健壮性和执行效率。

likedislike
CANN-robot
CANN-robot成员
2025年12月25日 评论:

流水线任务触发成功,任务链接 [1c13e34d122144fda24755fc3ff45e95]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
anti_virus ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
Pre_Compile ✅ SUCCESS
UT_Test 🔄 running
Smoke_A900 ⏳ waiting >>>>>
likedislike
CANN-robotCANN-robot成员
2025年12月25日 删除了label:ci-pipeline-running
Wweinachuan成员
2025年12月25日 强制推送  1 个提交:d48920cf-revert add_example
CANN-robot
CANN-robot成员
2025年12月25日 评论:

以下是根据您提交的修改文件推荐的Reviewer和Committer序列,需各模块评审通过后方可合入

Module List Reviewers Committers
examples yu-xinjie62, songkai111 liudan12, Allan_Yu, monologue815, mabing1118
likedislike
CANN-robotCANN-robot成员
2025年12月25日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
2025年12月25日 评论:

CLA Signature Pass

Thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
CANN-robot
CANN-robot成员
2025年12月25日 评论:

🔵 source code change are detected, tasks labels is removed in this pull request!

likedislike
weinachuan成员
2025年12月25日 评论:

compile

likedislike
CANN-robot
CANN-robot成员
2025年12月25日 评论:

流水线任务触发成功,任务链接 [9634b1a4a2224343b37fcf54973fb65b]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
anti_virus ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
Pre_Compile ✅ SUCCESS
UT_Test ✅ SUCCESS
Smoke_A900 ✅ SUCCESS >>>>>

[2025-12-25 21:00:04]    CI执行结束

likedislike
CANN-robotCANN-robot成员
2025年12月25日 删除了label:ci-pipeline-running
chen-linxin4成员
2025年12月25日 评论:

/lgtm

likedislike
CANN-robotCANN-robot成员
2025年12月25日 添加了label:ci-pipeline-running
CANN-robotCANN-robot成员
2025年12月25日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
2025年12月25日 添加了label:ci-pipeline-running
CANN-robotCANN-robot成员
2025年12月25日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
2025年12月25日 添加了label:ci-pipeline-passed
monologue815成员
2025年12月25日 评论:

/approve

likedislike
CANN-robotCANN-robot成员
2025年12月25日 添加了label:approved
於欣洁成员
2025年12月25日 评论:

/lgtm

likedislike
CANN-robotCANN-robot成员
2025年12月25日 添加了label:lgtm
CANN-robot
CANN-robot成员
2025年12月25日 评论:

Review Guide

This Pull-Request Passes Review.
Committers who writed a comment of /approve are: monologue815.
Reviewers who writed a comment of /lgtm are: yu-xinjie62, monologue815.

likedislike
CANN-robotCANN-robot成员
2025年12月25日 关闭了关联的issue
CANN-robotCANN-robot成员
2025年12月25日 合入了pull request