Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 04e9007

Browse files
committed
bugfix for update offset_x/offset_y
1 parent 4f481df commit 04e9007

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/subgroup/tile/impl/payload_xe.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,14 @@ struct mem_payload_t<
230230
__XETLA_API void update_tdesc(int offset) {
231231
auto payloads_2d = payloads.xetla_format<uint32_t, num_block, 16>();
232232
if constexpr (update_dir == tdesc_update_dir::x_dir) {
233+
offset_x += offset / scale_factor;
233234
#pragma unroll
234235
for (uint32_t i = 0; i < num_block; i++) {
235236
xetla_update_tdesc_offsetx(
236237
payloads_2d.row(i), offset / int32_t(scale_factor));
237238
}
238239
} else {
240+
offset_y += offset;
239241
#pragma unroll
240242
for (uint32_t i = 0; i < num_block; i++) {
241243
xetla_update_tdesc_offsety(payloads_2d.row(i), offset);

0 commit comments

Comments
 (0)