Skip to content

Commit e035f6b

Browse files
authored
Fix p16 type error by casting min() arguments to Int (#209)
1 parent b7798cf commit e035f6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solutions/p16/p16.mojo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ fn matmul_tiled[
137137
if tiled_row < size and tiled_col < size:
138138

139139
@parameter
140-
for k in range(min(TPB, size - tile * TPB)):
140+
for k in range(min(Int(TPB), Int(size - tile * TPB))):
141141
acc += a_shared[local_row, k] * b_shared[k, local_col]
142142

143143
barrier()

0 commit comments

Comments
 (0)