taichi icon indicating copy to clipboard operation
taichi copied to clipboard

type precision warning

Open evilzhou opened this issue 4 years ago • 0 comments

test code:

@ti.kernel
def num_test():
    n = 3
    for i, j in ti.ndrange(n, n):
        print(i, j)

ti.init(arch=ti.cuda, default_ip=ti.i64)
num_test()
ti.sync()

warning content:

type_check.cpp:type_check_store@36] [$64] Local store may lose precision: i32 <- i64

the above test code is just one of many similar cases

evilzhou avatar Oct 25 '22 08:10 evilzhou