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

Function sample_kernel

testing/python/issue/test_tilelang_issue_1237.py:13–16  ·  view source on GitHub ↗
(global_tensor: T.Tensor[(length,), T.int32])

Source from the content-addressed store, hash-verified

11
12 @T.prim_func
13 def sample_kernel(global_tensor: T.Tensor[(length,), T.int32]): # noqa: F821
14 with T.Kernel(1, threads=32):
15 buffer_shared = T.alloc_shared((1024,), dtype=T.int32)
16 T.copy(global_tensor[0:length], buffer_shared)
17
18 # Building the prim_func is sufficient to exercise the bug path; no need to JIT/execute.
19 _ = sample_kernel

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…