已合并
[fix] anglev2 bf16 use NPU_ARCH macro instead #3638
nextyale创建于 6月30日
[fix] anglev2 bf16 use NPU_ARCH macro instead #3638
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 nextyale 的贡献)6月30日 添加了label:cann-cla/yes
CANN-robot
6月30日 评论:
6月30日 评论:
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 |
|---|---|---|
| math/angle_v2 | ✅ 冯彤, 唐燕峰 (2/2) | ✅ 唐燕峰, 冯彤 (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
nextyale, thanks for your pull request. All authors of the commits have signed the CLA. 👍


atomgit-bot
6月30日 评论:
6月30日 评论:
变更摘要
此 PR 将 angle_v2 内核中 bf16 分支的编译宏从 __CCE_AICORE__ >= 310 替换为 __NPU_ARCH__ == 3510,以更精确地限定 bf16 支持仅适用于 NPU 950 架构,避免宏语义混淆。
主要改动
- bf16 分支编译宏替换: 在
math/angle_v2/op_kernel/angle_v2.cpp中,将#if (__CCE_AICORE__ >= 310)改为#if (__NPU_ARCH__ == 3510),使 bf16 类型的编译条件直接匹配目标 NPU 架构版本(3510 对应 950),而非依赖 CCE AICore 版本号的范围判断。


6月30日 添加了label:ci-pipeline-running
CANN-robot
6月30日 评论:
6月30日 评论:
流水线任务触发成功
任务链接 [f162ed6dbc304c71864295a4bf2a515c][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_experimental_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_A5_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_harmony-infer | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_experimental_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_A5_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910b | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910c | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_harmony-infer-chs-math | ✅ SUCCESS | >>>>> | |
| UT_Test | ✅ SUCCESS | ||
| UT_Test_experimental | ✅ SUCCESS | ||
| UT_Test_kernel | ✅ SUCCESS | ||
| PreSmoke_A900 | ✅ SUCCESS | >>>>> | |
| API_Check | ✅ SUCCESS | >>>>> | |
| PreSmoke_ATK_Test_A2 | ✅ SUCCESS | >>>>> |
[2026-06-30 11:31:24] CI执行结束


CANN-robot
6月30日 评论:
6月30日 评论:
流水线任务触发成功
任务链接 [b8f8c570da864e55b00caa5b6d823725][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck_Pr | ✅ SUCCESS | ||
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_codestyle | ✅ SUCCESS | >>>>> | |
| codecheck_precommit | ⚠️ WARNING | >>>>> | >>>>> |
[2026-06-30 11:26:30] CI执行结束


atomgit-bot
6月30日 评论:
6月30日 评论:
6月30日 添加了label:api-check-pass
6月30日 删除了label:ci-pipeline-running
6月30日 添加了label:ci-pipeline-passed
6月30日 添加了label:approved
FelixTang7
6月30日 评论:
6月30日 评论:
/lgtm
/approve


6月30日 添加了label:lgtm
6月30日 关闭了关联的issue
6月30日 合入了pull request
描述
Anglev2 中 bf16分支使用NPU_ARCH 编译宏,避免混淆
类型标签