-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[Bug] [ir] a simple for loop in function fails #1109
Comments
If it's my syntax error, can we improve the error message? I can't do my homework now. |
@xumingkuan Seems function arguments can't be gtmp?
|
new mrp (minimal-reproduceable): import taichi as ti
ti.init(print_ir=True, print_preprocessed=True)
m = ti.var(ti.f32, 3)
x = ti.var(ti.f32, ())
@ti.kernel
def kern():
a = x[None]
for i in m:
b = a
for j in range(1):
b = b
kern() |
Could we have some unit test for Store Forwarded? It caused the error. |
Thanks for proposing this! Looks like a bug in |
|
你好,我遇到了一个很奇怪的问题,就是在使用print_ir属性时,生成的中间IR表达式总是会出现File"/home/pycharmproject/pythonproject/foo.py",line10,in foo a[i]=i这个问题,方便问一下怎么解决么? ti.init(print_preprocessed_ir=True)ti.init(print_accessor_ir=True)ti.init(print_ir=True) 生成的错误: |
Describe the bug
Log/Screenshots
To Reproduce
Run the above code.
If you have local commits (e.g. compile fixes before you reproduce the bug), please make sure you first make a PR to fix the build errors and then report the bug.
The text was updated successfully, but these errors were encountered: