GM与UB之间数据搬运问题
收藏回复举报
GM与UB之间数据搬运问题
t('forum.solved') 已解决
发表于2025-04-16 10:43:03
0 查看
Gm_x1.SetGlobalBuffer((__gm__ TYPE_X1*)x1 + startPointer, bufferlength);
Gm_x2.SetGlobalBuffer((__gm__ TYPE_X2*)x2 + startPointer, bufferlength);
Gm_y.SetGlobalBuffer((__gm__ TYPE_Y*)y + startPointer, bufferlength);

pipe.InitBuffer(Q_x1, BUFFER_NUM, this->tileLength * sizeof(TYPE_X1));
pipe.InitBuffer(Q_x2, BUFFER_NUM, this->tileLength * sizeof(TYPE_X2));
pipe.InitBuffer(Q_y, BUFFER_NUM, this->tileLength * sizeof(TYPE_Y));
pipe.InitBuffer(tmp0, this->tileLength * sizeof(float));
pipe.InitBuffer(tmp1, this->tileLength * sizeof(float));
pipe.InitBuffer(tmp2, this->tileLength * sizeof(float));

在一个核内,如果GMbufferlength为8,根据(ub大小)计算得到this->tileLength=7936,那GM到UB的搬运是怎样的?
是在搬入UB后从第八个数开始后面都自动填充0吗

我要发帖子