Skip to content

Commit

Permalink
Fix example based on triton-lang#2701. (triton-lang#3340)
Browse files Browse the repository at this point in the history
  • Loading branch information
oraluben authored Mar 12, 2024
1 parent d04f288 commit 098b660
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion python/examples/copy_strided.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import triton
import triton.language as tl
import triton.compiler as tc


# triton kernel
Expand All @@ -14,5 +15,11 @@ def kernel(X, stride_xm, #
tl.store(Zs, tl.load(Xs))


ret = triton.compile(kernel, signature="*fp32,i32,*fp32,i32", constants={"BLOCK_M": 64, "BLOCK_N": 64})
src = tc.ASTSource(
fn=kernel,
constants={"BLOCK_M": 64, "BLOCK_N": 64},
signature="*fp32,i32,*fp32,i32",
)

ret = triton.compile(src)
print(ret.asm["ttgir"])

0 comments on commit 098b660

Please sign in to comment.