MCPcopy Create free account
hub / github.com/tile-ai/tilelang / debug_print_buffer

Function debug_print_buffer

testing/python/debug/test_tilelang_debug_print.py:9–18  ·  view source on GitHub ↗
(M=16, N=16, dtype=T.float16)

Source from the content-addressed store, hash-verified

7
8
9def debug_print_buffer(M=16, N=16, dtype=T.float16):
10 @T.prim_func
11 def program(Q: T.Tensor((M, N), dtype)):
12 with T.Kernel(4, 4, 2, threads=128 * 2) as (bx, by, bz):
13 shared_buf = T.alloc_shared([M, N], dtype)
14 T.print(shared_buf)
15
16 jit_kernel = tilelang.compile(program)
17 profiler = jit_kernel.get_profiler()
18 profiler.run_once()
19
20
21@pytest.mark.parametrize(

Calls 3

get_profilerMethod · 0.80
compileMethod · 0.45
run_onceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…