Pull Request已成功合入, 合并人@CANN-robot
(感谢 zouyanlong 的贡献)变更摘要
此 PR 在 src/kernels/lcal/src/ascendc.cmake 的 CCE_COMPILE_OPTION 编译选项列表中新增 -Wno-macro-redefined 标志,用于抑制 __aicore__ 宏被多次定义时产生的重定义告警,配合 MKI 侧的同步修改共同解决该编译警告问题。
主要改动
- 新增编译警告抑制选项: 在
CCE_COMPILE_OPTION中于-Wno-deprecated-declarations之后添加了-Wno-macro-redefined,使编译器在__aicore__宏被重复定义时不再产生告警。 - 文件末尾格式修正: 移除了
ascendc.cmake文件末尾行尾的多余空白字符。


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
/approveor/lgtm- Commenting
/approveimplies 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. 👍


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 .


compile


文档检查门禁结果:


compile#openlibing


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


compile


| 阶段 | 任务名 | 状态 | 详情 |
|---|---|---|---|
| 编译构建 | Build_x86 | ✅ | >>> |
| Build_arm | ✅ | >>> | |
| 恶意代码检查 | Antipoison | ✅ | >>> |
| 编码安全与规范检查 | CodeCheck_pre-commit | ✅ | >>> |
| precommit | ✅ | >>> | |
| 开源片段检查 | SCA | ✅ | >>> |
| 开发者测试 | UT_310P_x86 | ✅ | >>> |
| UT_910B_ARM | ✅ | >>> | |
| 流水线 | PR-pipeline_ascend-transformer-boost | ✅ | >>> |
- compile : 运行流水线
- retry : 重试流水线所有失败子任务
- retry <任务名> : 仅重试指定失败子任务
- stop : 停止流水线


需要关联issue


/lgtm


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


compile


| 阶段 | 任务名 | 状态 | 详情 |
|---|---|---|---|
| 编译构建 | Build_x86 | ✅ | >>> |
| Build_arm | ✅ | >>> | |
| 恶意代码检查 | Antipoison | ✅ | >>> |
| 编码安全与规范检查 | CodeCheck_pre-commit | ✅ | >>> |
| precommit | ✅ | >>> | |
| 开源片段检查 | SCA | ✅ | >>> |
| 开发者测试 | UT_310P_x86 | ✅ | >>> |
| UT_910B_ARM | ✅ | >>> | |
| 流水线 | PR-pipeline_ascend-transformer-boost | ✅ | >>> |
- compile : 运行流水线
- retry : 重试流水线所有失败子任务
- retry <任务名> : 仅重试指定失败子任务
- stop : 停止流水线


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