Merged
bugfix for basic and c api docs. #6912
bugfix for basic and c api docs. #6912
Merged
pengcheng1024Add on Oct 22
pengcheng1024
pengcheng1024Collaborators
Oct 22

描述

  • 饱和模式配置示例更新:在 DataCopy_L0CToGM、DataCopy_L0CToL1、Fixpipe_L0CToGM、Fixpipe_L0CToL1、Fixpipe_L0CToUB、Mmad 等文档中,将饱和模式设置示例由 AscendC::AscendCUtils::SetOverflow(0) 改为 AscendC::SetCtrlSpr<48, 48>(0),并注明该模式由 CTRL[48] 直接决定、不受 CTRL[60] 限制。
  • SetCtrlSpr 寄存器说明修订:CTRL[48] 条目补充 Cube 侧 Mmad 类计算与 Fixpipe 搬运接口不受 CTRL[60] 限制,说明其支持的数据类型扩展为 Cube 侧接口支持的所有浮点类型,并新增一条针对 CTRL[60] 限制范围的注释。
  • SetSaturationFlag 作用范围说明细化:按 Vector 侧与 Cube 侧分别描述受影响数据类型,Cube 侧 Mmad 类浮点计算支持对应接口支持的所有浮点数据类型,Fixpipe 搬运支持 hifloat8_t、fp8_e5m2_t、fp8_e4m3fn_t、half、bfloat16_t,并补充 Mmad、MmadMx、Fixpipe 作为配合接口。
  • MmadMx 新增饱和模式章节:文档新增「特殊值/边界值约束说明」,说明 CTRL[48] 对表 3 中全部浮点输入组合生效、不受 CTRL[60] 限制,并给出饱和/非饱和模式行为与 SetCtrlSpr 示例,同时保留边界值汇总链接。
  • C API 参数与约束修正:asc_copy_l0c2gm_arch_2201 的 dst_stride_dst_d 单位修正为 32 字节、流水类型由 PIPE_MTE1 改为 PIPE_FIX 并调整示例参数取值,asc_copy_l0c2l1_arch_2201 同步修正 dst_stride 单位;asc_set_l0c_copy_nz_para 修正头文件路径为 c_api/cube_datamove/cube_datamove.h 及参数名 matrix_num,asc_copy_l0c2ub、asc_copy_ub2l1 新增仅适用于 Mix 算子且 Cube 与 Vector 核数比为 1:2 的约束,asc_fill_l0a 删除两个 bfloat16_t 目标的重载声明。

关联的Issue

#1905

测试

文档更新

类型标签

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for pengcheng1024's contribution.)
pengcheng1024pengcheng1024Collaborators
Oct 22 Created pull request, commit 0f742562
atomgit-bot
atomgit-bot
Oct 22 Comments:

变更摘要

本次变更主要围绕 asc-devkit 版本与配套文档修正:分支名表明将 asc-devkit 升级到 9.3.0,PR 标题说明同时修正基础文档与 C API 文档的问题。在所提供的补丁中,可直接确认的改动是 version.cmake 中 asc-devkit 的版本号由 9.2.0 调整为 9.3.0;其余 13 个文件未在本任务中给出补丁内容,因此无法从材料确认其具体实现细节。

主要改动

  • 构建版本号升级: version.cmake 中通过 set_cann_package(asc-devkit VERSION "...") 将 asc-devkit 版本从 9.2.0 提升到 9.3.0,使包版本标识与 9.3.0 发布线保持一致。
likedislike
Incorrect?
atomgit-bot
atomgit-bot
Oct 22 Comments:

代码审查

✅ 未发现问题

likedislike
Incorrect?
CANN-robotCANN-robotCollaborators
Oct 22 Added label: stat/needs-squash
CANN-robotCANN-robotCollaborators
Oct 22 Added label: cann-cla/yes
68 messages are collapsed here。 See more
munanhw
munanhwCollaborators
Oct 26 Comments:

/approve

likedislike
CANN-robotCANN-robotCollaborators
Oct 26 Added label: approved
Lycheeeee
LycheeeeeCollaborators
Oct 26 Comments:

/lgtm

likedislike
CANN-robotCANN-robotCollaborators
Oct 26 Added label: lgtm
CANN-robotCANN-robotCollaborators
Oct 26 Merged pull request