MCPcopy Index your code
hub / github.com/apache/tvm / func

Function func

tests/python/codegen/test_target_codegen_cuda_fp8.py:821–826  ·  view source on GitHub ↗
(A: T.Buffer((4,), dtype))

Source from the content-addressed store, hash-verified

819def test_const(dtype):
820 @T.prim_func(s_tir=True)
821 def func(A: T.Buffer((4,), dtype)) -> None:
822 A_local = T.sblock_alloc_buffer((4,), dtype=dtype, scope="local")
823 for tx in T.thread_binding(0, 4, "threadIdx.x"):
824 for i in T.vectorized(4):
825 A_local[i] = T.float32(1.0).astype(dtype)
826 A[tx] = A_local[tx]
827
828 mod = tvm.IRModule({"main": func})
829 tvm.compile(mod, target="cuda")

Callers 1

test_half_broadcastFunction · 0.70

Calls 1

astypeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…