Skip to content

Commit 91f9536

Browse files
committed
Enable triton kernels matmul tests
Signed-off-by: Witold Dziurdz <witold.dziurdz@intel.com>
1 parent b5c46f0 commit 91f9536

File tree

7 files changed

+117
-1655
lines changed

7 files changed

+117
-1655
lines changed

python/triton_kernels/triton_kernels/matmul_ogs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ def matmul_ogs(x, w, bias,
531531
out_matmul_scale = out_matmul_scale.data.view(torch.uint8)
532532
if has_scratchpad and "mx_out_scale" in memory["scratchpad"]:
533533
out_matmul_scale = memory["scratchpad"]["mx_out_scale"]
534-
out_matmul_has_mx = out_matmul_scale is not None and out_matmul.element_size() == 1
534+
out_matmul_has_mx = out_matmul_scale is not None and bitwidth(out_dtype) == 8
535535
# matrix multiplication
536536
flex = precision_config.flex_ctx
537537
bias_stride = None if bias is None else bias.stride(0)
@@ -700,7 +700,7 @@ def matmul_ogs_torch(x, w, bias,
700700
if k > 0:
701701
out[expt] = matmul_ogs_torch(
702702
x[:, start_x:start_x+k], w[start_w:start_w+k, :], None,
703-
None, None, None, None, betas, gammas, None, round_x, round_y
703+
None, None, None, None, betas, gammas, None, round_x, round_y, device=device
704704
)
705705
padded_k = triton.cdiv(k, block_k) * block_k
706706
start_x += padded_k if inner_routing_data.x_is_padded else k
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
tests/test_matmul.py::test_op
21
tests/test_matmul.py::test_fused_act
32
tests/test_matmul.py::test_zero_reduction_dim
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
tests/test_matmul.py::test_op
21
tests/test_matmul.py::test_fused_act
32
tests/test_matmul.py::test_zero_reduction_dim
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
tests/test_matmul.py::test_op
21
tests/test_matmul.py::test_fused_act
32
tests/test_matmul.py::test_zero_reduction_dim

scripts/skiplist/default/triton_kernels.txt

Lines changed: 38 additions & 550 deletions
Large diffs are not rendered by default.

scripts/skiplist/lts/triton_kernels.txt

Lines changed: 38 additions & 550 deletions
Large diffs are not rendered by default.

scripts/skiplist/xe2/triton_kernels.txt

Lines changed: 39 additions & 550 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)