Skip to content

asc_set_l0c2gm_nz2nd

产品支持情况

  • Ascend 950PR/Ascend 950DT:支持
  • Atlas A3 训练系列产品/Atlas A3 推理系列产品:不支持
  • Atlas A2 训练系列产品/Atlas A2 推理系列产品:不支持
  • Atlas 200I/500 A2 推理产品:不支持
  • Atlas 推理系列产品AI Core:不支持
  • Atlas 推理系列产品Vector Core:不支持
  • Atlas 训练系列产品:不支持

功能说明

数据搬运过程中进行随路格式转换(NZ格式转换为ND格式)时,通过调用该接口设置格式转换的相关配置。

函数原型

C++
__aicore__ inline void asc_set_l0c2gm_nz2nd(uint64_t nd_num, uint64_t src_nd_stride, uint64_t dst_nd_stride)

参数说明

表1 参数说明

参数名输入/输出描述
nd_num输入ND矩阵的个数,取值范围为[1, 65535]。
src_nd_stride输入以分形大小为单位的源步长,源相邻NZ矩阵的偏移。取值范围为[0, 65535],单位为32B。
dst_nd_stride输入目的相邻ND矩阵的偏移。取值范围为[1, - 1],单位为元素。

返回值说明

流水类型

PIPE_S

约束说明

调用示例

C++
uint64_t nd_num = 2;
uint64_t src_nd_stride = 2;
uint64_t dst_nd_stride = 1;
asc_set_l0c2gm_nz2nd(nd_num, src_nd_stride, dst_nd_stride);

免责声明:本站内容由 asc-devkit 仓 master 分支自动编译生成,属于持续开发版本,可能存在缺陷,仅供预览与参考。如需稳定及商用资料,请查阅官方 昇腾社区