Skip to content

Commit 2e9e11f

Browse files
JoeLosermodularbot
authored andcommitted
[Kernels] refactor: Use Int thread_idx etc. in layout/ (Part 48/N)
MODULAR_ORIG_COMMIT_REV_ID: 57dd1bdb19420adc1662f593b478e2d261319fd0
1 parent 548bca2 commit 2e9e11f

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

max/kernels/src/layout/layout_tensor.mojo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ from std.builtin.dtype import _unsigned_integral_type_of
3434
from std.gpu.host import DeviceBuffer, HostBuffer, DeviceContext
3535
from std.gpu.host.nvidia.tma import TensorMapSwizzle
3636
from std.gpu import (
37-
block_dim_int as block_dim,
37+
block_dim,
3838
block_idx,
39-
lane_id_int as lane_id,
40-
thread_idx_int as thread_idx,
39+
lane_id,
40+
thread_idx,
4141
)
4242
from std.gpu.intrinsics import AMDBufferResource
4343
from std.gpu.memory import CacheEviction, CacheOperation, Fill, async_copy

max/kernels/src/layout/tensor_core.mojo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ from std.sys.info import (
6767

6868
from std.gpu import (
6969
WARP_SIZE,
70-
lane_id_int as lane_id,
71-
thread_idx_int as thread_idx,
70+
lane_id,
71+
thread_idx,
7272
)
7373
from std.gpu.intrinsics import lop, ds_read_tr16_b64
7474
from std.gpu.compute.mma import (

0 commit comments

Comments
 (0)