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

Function float_init_readback

testing/python/amd/test_tilelang_hip_codegen.py:516–524  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

514
515 @tilelang.jit
516 def float_init_readback():
517 @T.prim_func
518 def kernel(out: T.Tensor((1,), T.float32)) -> None:
519 with T.Kernel(1, threads=32) as _:
520 v = T.alloc_var(T.float32, init=3.14)
521 if T.get_thread_binding() == 0:
522 out[0] = v
523
524 return kernel
525
526 out = torch.zeros(1, dtype=torch.float32, device="cuda")
527 float_init_readback()(out)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…