已合并
fix(kernel): 添加 -Wno-macro-redefined 解决__aicore__重定义告警 #2171
fix(kernel): 添加 -Wno-macro-redefined 解决__aicore__重定义告警 #2171
已合并
zouyanlong创建于 7月15日
zouyanlong成员
7月15日

描述

添加 -Wno-macro-redefined 配合MKI同步修改 解决__aicore__重定义告警

checklist

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 zouyanlong 的贡献)
atomgit-bot
atomgit-bot
7月15日 评论:

变更摘要

此 PR 在 src/kernels/lcal/src/ascendc.cmakeCCE_COMPILE_OPTION 编译选项列表中新增 -Wno-macro-redefined 标志,用于抑制 __aicore__ 宏被多次定义时产生的重定义告警,配合 MKI 侧的同步修改共同解决该编译警告问题。

主要改动

  • 新增编译警告抑制选项: 在 CCE_COMPILE_OPTION 中于 -Wno-deprecated-declarations 之后添加了 -Wno-macro-redefined,使编译器在 __aicore__ 宏被重复定义时不再产生告警。
  • 文件末尾格式修正: 移除了 ascendc.cmake 文件末尾行尾的多余空白字符。
likedislike
atomgit-bot
atomgit-bot
7月15日 评论:

代码审查

✅ 未发现问题

likedislike
CANN-robotCANN-robot成员
7月15日 添加了label:cann-cla/yes
CANN-robotCANN-robot成员
7月15日 添加了label:needs-issue
CANN-robot
CANN-robot成员
7月15日 评论:

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


PR Approval Progress

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

Module Approval Details

module lgtm status approve status
src 尹祺然, goodpeople233 (2/2) 尹祺然 (1/1)

💡 Tip:

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

CLA Signature Pass

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

likedislike
CANN-robot
CANN-robot成员
7月15日 评论:

Linking Issue Notice

@ninihihi , the pull request must be linked to at least one issue.
If an issue has already been linked, but the needs-issue label remains, you can remove the label by commenting /check-issue .

likedislike
zouyanlong成员
7月15日 评论:

compile

likedislike
CANN-robotCANN-robot成员
7月15日 添加了label:ci-pipeline-running
CANN-robotCANN-robot成员
7月15日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
7月15日 添加了label:ci-pipeline-passed
CANN-robot
CANN-robot成员
7月15日 评论:
阶段 任务名 状态 详情
编译构建 Build_x86 >>>
Build_arm >>>
恶意代码检查 Antipoison >>>
编码安全与规范检查 CodeCheck >>>
开源片段检查 SCA >>>
开发者测试 UT_310P_x86 >>>
UT_910B_ARM >>>
流水线 PR-pipeline_ascend-transformer-boost >>>
likedislike
zouyanlong成员
7月15日 评论:

compile#openlibing

likedislike
CANN-robot
CANN-robot成员
7月15日 评论:

libing-pipeline创建中,请等待……

likedislike
CANN-robotCANN-robot成员
7月15日 添加了label:SC-START
CANN-robotCANN-robot成员
7月15日 删除了label:SC-START
CANN-robotCANN-robot成员
7月15日 添加了label:SC-RUNNING
CANN-robotCANN-robot成员
7月15日 删除了label:SC-RUNNING
CANN-robotCANN-robot成员
7月15日 添加了label:SC-RUNNING
CANN-robotCANN-robot成员
7月15日 删除了label:SC-RUNNING
CANN-robotCANN-robot成员
7月15日 添加了label:SC-SUCC
zouyanlong成员
7月25日 评论:

compile

likedislike
CANN-robotCANN-robot成员
7月25日 删除了label:ci-pipeline-passed
CANN-robotCANN-robot成员
7月25日 添加了label:ci-pipeline-running
CANN-robotCANN-robot成员
7月25日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
7月25日 添加了label:ci-pipeline-passed
CANN-robot
CANN-robot成员
7月25日 评论:
流水线 PR-pipeline_ascend-transformer-boost#1043 [ commitID:eb446ce3 ] 已完成
阶段 任务名 状态 详情
编译构建 Build_x86 >>>
Build_arm >>>
恶意代码检查 Antipoison >>>
编码安全与规范检查 CodeCheck_pre-commit >>>
precommit >>>
开源片段检查 SCA >>>
开发者测试 UT_310P_x86 >>>
UT_910B_ARM >>>
流水线 PR-pipeline_ascend-transformer-boost >>>
此流水线已支持下列评论快捷指令,仅PR创建者和白名单成员评论有效
  • compile : 运行流水线
  • retry : 重试流水线所有失败子任务
  • retry <任务名> : 仅重试指定失败子任务
  • stop : 停止流水线
likedislike
goodpeople233成员
7月28日 评论:

需要关联issue

likedislike
Zzouyanlong成员
7月28日 修改了pull request 的描述
CANN-robotCANN-robot成员
7月28日 删除了label:needs-issue
Zzouyanlong成员
7月28日 修改了pull request 的描述
goodpeople233成员
7月28日 评论:

/lgtm

likedislike
nino888成员
7月28日 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
7月28日 添加了label:lgtmapproved
CANN-robotCANN-robot成员
7月28日 删除了label:ci-pipeline-passed
CANN-robot
CANN-robot成员
7月28日 评论:

The following label is not ready.

ci-pipeline-passed: The ci-pipeline-passed label is expired. Please compile again.

likedislike
zouyanlong成员
7月28日 评论:

compile

likedislike
CANN-robotCANN-robot成员
7月28日 添加了label:ci-pipeline-running
CANN-robotCANN-robot成员
7月28日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
7月28日 添加了label:ci-pipeline-passed
CANN-robot
CANN-robot成员
7月28日 评论:
流水线 PR-pipeline_ascend-transformer-boost#1052 [ commitID:eb446ce3 ] 已完成
阶段 任务名 状态 详情
编译构建 Build_x86 >>>
Build_arm >>>
恶意代码检查 Antipoison >>>
编码安全与规范检查 CodeCheck_pre-commit >>>
precommit >>>
开源片段检查 SCA >>>
开发者测试 UT_310P_x86 >>>
UT_910B_ARM >>>
流水线 PR-pipeline_ascend-transformer-boost >>>
此流水线已支持下列评论快捷指令,仅PR创建者和白名单成员评论有效
  • compile : 运行流水线
  • retry : 重试流水线所有失败子任务
  • retry <任务名> : 仅重试指定失败子任务
  • stop : 停止流水线
likedislike
CANN-robotCANN-robot成员
7月28日 关闭了关联的issue
此处折叠了5条事件消息 查看更多
Zzouyanlong成员
7月28日 关联了issue:[Bug-Report|缺陷反馈]: CANN 9.1.0 编译器 __aicore__ 宏重定义编译告警