Skip to content

Commit 9dde89f

Browse files
committed
test: missing vars
1 parent f1df176 commit 9dde89f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/integration/triton/softmax.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ function softmax_triton(x::AbstractMatrix{T}) where {T}
1919
out = similar(x_transposed)
2020
n_rows, n_cols = size(x_transposed)
2121

22+
BLOCK_SIZE = nextpow(2, n_cols)
23+
2224
function grid_fn(metadata)
2325
occupancy = (
2426
metadata.device_properties.regs_per_block ÷
@@ -43,7 +45,7 @@ function softmax_triton(x::AbstractMatrix{T}) where {T}
4345
n_rows,
4446
n_cols,
4547
BLOCK_SIZE,
46-
num_stages;
48+
num_stages=3;
4749
grid=grid_fn,
4850
)
4951

0 commit comments

Comments
 (0)