已合并
[fix] anglev2 bf16 use NPU_ARCH macro instead #3638
nextyale创建于 6月30日
[fix] anglev2 bf16 use NPU_ARCH macro instead #3638
已合并
nextyale创建于 6月30日
nextyale成员
6月30日

描述

Anglev2 中 bf16分支使用NPU_ARCH 编译宏,避免混淆

类型标签

  • Bug修复
  • 新特性
  • 性能优化
  • 文档更新
  • 其他,请描述:
likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 nextyale 的贡献)
Nnextyale成员
6月30日 创建了 pull request,commit 032c112a
Nnextyale成员
6月30日 关联了issue:[Bug-Report|缺陷反馈]: anglev2 A5分支编译宏修改
CANN-robotCANN-robot成员
6月30日 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
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 /approve or /lgtm
  • Commenting /approve implies 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. 👍

likedislike
atomgit-bot
atomgit-bot
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 版本号的范围判断。
likedislike
nextyale成员
6月30日 评论:

/compile

likedislike
Nnextyale成员
6月30日 update merge request[project id: 7649531, iid: 3638, commit_id: f589b4850ae8ff55c5da4578d69636296f3aaede] virtual merging success
CANN-robotCANN-robot成员
6月30日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
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执行结束

likedislike
CANN-robot
CANN-robot成员
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执行结束

likedislike
atomgit-bot
atomgit-bot
6月30日 评论:

🤖 AI Code Review

⚠️ 自定义模型 Provider 调用失败

本次审查使用的自定义模型 Provider 无法正常调用,已停止重试。

请检查 Provider 配置:

  • Base URL 是否正确、网络是否可达
  • API Key 是否有效
  • 模型名称是否存在

修正配置后,重新触发审查即可。

追踪 ID: task-31429-run-29587

likedislike
CANN-robotCANN-robot成员
6月30日 添加了label:api-check-pass
CANN-robotCANN-robot成员
6月30日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
6月30日 添加了label:ci-pipeline-passed
rxtfeng成员
6月30日 评论:

/approve

likedislike
CANN-robotCANN-robot成员
6月30日 添加了label:approved
FelixTang7成员
6月30日 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
6月30日 添加了label:lgtm
CANN-robotCANN-robot成员
6月30日 关闭了关联的issue
CANN-robotCANN-robot成员
6月30日 合入了pull request