Skip to content

Commit 225f111

Browse files
authored
[Blackwell] Fix gluon test (#7741)
1 parent 84a7073 commit 225f111

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/test/unit/blackwell/test_tmem.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def kernel(s_ptr, out_ptr):
116116
layout: ttgl.constexpr = get_tmem_32x32b_reg_layout(BLOCK_M, BLOCK_N, (BLOCK_M, N), num_warps=4)
117117

118118
offsets = ttgl.arange(0, BLOCK_M)[:, None] * N + ttgl.arange(0, N)[None, :]
119-
offsets = ttgl.convert_layout(offsets, layout)
119+
offsets = ttgl.set_auto_layout(offsets, layout)
120120
s = ttgl.load(s_ptr + offsets)
121121

122122
s_tmem.store(s)
@@ -194,8 +194,8 @@ def kernel(a_ptr, b_ptr, c_ptr, d_ptr):
194194

195195
a_layout: ttgl.constexpr = get_tmem_32x32b_reg_layout(BLOCK_M, BLOCK_N, (BLOCK_M, N), num_warps=4)
196196
b_layout: ttgl.constexpr = ttgl.BlockedLayout([1, 1], [1, 32], [4, 1], [1, 0])
197-
a_offsets = ttgl.convert_layout(a_offsets, a_layout)
198-
b_offsets = ttgl.convert_layout(b_offsets, b_layout)
197+
a_offsets = ttgl.set_auto_layout(a_offsets, a_layout)
198+
b_offsets = ttgl.set_auto_layout(b_offsets, b_layout)
199199

200200
a = ttgl.load(a_ptr + a_offsets)
201201
b = ttgl.load(b_ptr + b_offsets)

0 commit comments

Comments
 (0)