Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type precision warning #6426

Open
evilzhou opened this issue Oct 25, 2022 · 0 comments
Open

type precision warning #6426

evilzhou opened this issue Oct 25, 2022 · 0 comments
Assignees
Labels
potential bug Something that looks like a bug but not yet confirmed

Comments

@evilzhou
Copy link

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 evilzhou added the potential bug Something that looks like a bug but not yet confirmed label Oct 25, 2022
@taichi-gardener taichi-gardener moved this to Untriaged in Taichi Lang Oct 25, 2022
@neozhaoliang neozhaoliang moved this from Untriaged to In Progress in Taichi Lang Oct 28, 2022
@jim19930609 jim19930609 moved this from In Progress to Backlog in Taichi Lang Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
potential bug Something that looks like a bug but not yet confirmed
Projects
Status: Backlog
Development

No branches or pull requests

2 participants