[PYTHON] Cleaned up legacy code; added simple standalone compilation API (#22)
This commit is contained in:
8
python/examples/empty.py
Normal file
8
python/examples/empty.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import triton
|
||||
import triton.language as tl
|
||||
|
||||
@triton.jit
|
||||
def kernel(X, stride_xm, stride_xn, BLOCK: tl.constexpr):
|
||||
pass
|
||||
|
||||
ret = triton.compile(kernel, "*fp32,i32,i32", constants={"BLOCK": 256}, output="ttgir")
|
Reference in New Issue
Block a user