昇腾社区首页
中文
注册
开发者
下载

set_l0b_2d

功能说明

实现数据广播到L0B。将L0_SET_VALUE寄存器中的16位/32位的单个数据复制到目标区域的所有指定块中,根据目标地址的类型决定L0_SET_VALUE寄存器中搬运的类型。地址必须512B对齐。(Block大小为512B)

若 config[14:0] = 0(重复次数 0)或 config[30:16] = 0(每轮块数 0),接口视为 NOP(不执行)并报警告。

接口原型

// 相同接口的不同原型区别在于源地址和目的地址的数据类型不同
void set_l0b_2d(__cb__ bfloat16_t *dst, int64_t config);

void set_l0b_2d(__cb__ uint16_t *dst, int64_t config);

void set_l0b_2d(__cb__ uint32_t *dst, int64_t config);

void set_l0b_2d(__cb__ half *dst, int64_t config);

void set_l0b_2d(__cb__ int16_t *dst, int64_t config);

void set_l0b_2d(__cb__ float *dst, int64_t config);

void set_l0b_2d(__cb__ int32_t *dst, int64_t config);

参数说明

参数含义见表1 config位数说明

流水类型

PIPE_MTE1