def METHOD_NAME(dev, n, value, dtype):
    A = te.placeholder((n,), name="A", dtype=dtype)
    inf_value = tvm.tir.const(value, dtype=dtype)
    C = te.compute((n,), lambda i: inf_value, name="C")
    prim_func = te.create_prim_func([A, C])
    sch = tvm.tir.Schedule(prim_func)
    (x,) = sch.get_loops(sch.get_block("C"))
    sch.bind(x, "threadIdx.x")
    fun = tvm.build(sch.mod, target=target)
    a = tvm.nd.empty((n,), A.dtype, dev)
    c = tvm.nd.empty((n,), A.dtype, dev)
    # Only need to test compiling here
    fun(a, c)