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

Function func2

testing/python/cache/test_tilelang_kernel_cache.py:245–248  ·  view source on GitHub ↗
(A: T.Tensor((M, N), T.float32), B: T.Tensor((M, N), T.float32))

Source from the content-addressed store, hash-verified

243 # Kernel 2: A + 2.0 (different implementation)
244 @T.prim_func
245 def func2(A: T.Tensor((M, N), T.float32), B: T.Tensor((M, N), T.float32)):
246 with T.Kernel(M, threads=128) as bx:
247 for i in T.serial(N):
248 B[bx, i] = A[bx, i] + 2.0 # Different!
249
250 unique_id_2 = uuid.uuid4().hex[:8]
251 kernel_func2 = func2.with_attr("global_symbol", f"func2_{backend}_{unique_id_2}")

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…