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

Function run_alloc_var

testing/python/language/test_tilelang_language_alloc.py:26–37  ·  view source on GitHub ↗
(
    N,
    block_N,
    dtype,
    min=None,
    max=None,
)

Source from the content-addressed store, hash-verified

24
25
26def run_alloc_var(
27 N,
28 block_N,
29 dtype,
30 min=None,
31 max=None,
32):
33 program = alloc_var(N, block_N, dtype)
34
35 kernel = tilelang.compile(program, out_idx=[1])
36 code = kernel.get_kernel_source()
37 assert "tmp =" in code or "tmp[0] =" in code
38
39
40def test_alloc_var():

Callers 1

test_alloc_varFunction · 0.85

Calls 3

alloc_varFunction · 0.70
compileMethod · 0.45
get_kernel_sourceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…