You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
All conditional statements are ignored in any @ti.func called from any @ti.real_func. Code is executed as though all conditions evaluate to True. This happens on both Linux and Windows, both on gpu and cpu backends.
$ python my_sample_code.py
[Taichi] version 1.7.0, llvm 15.0.4, commit 2fd24490, linux, python 3.8.13
[Taichi] Starting on arch=x64
...
[Taichi] version 1.7.0, llvm 15.0.1, commit 2fd24490, win, python 3.8.17
[Taichi] Starting on arch=cuda
...
Additional comments
I assume this is a bug, unless I've badly misunderstood what is and is not UB. I still feel like I'm somehow responsible for this, but I haven't found anything to indicate that what I'm doing is forbidden. The code in this example calls func from real_func:
Describe the bug
All conditional statements are ignored in any
@ti.func
called from any@ti.real_func
. Code is executed as though all conditions evaluate to True. This happens on both Linux and Windows, both on gpu and cpu backends.To Reproduce
A minimal reproducer:
Log/Screenshots
Additional comments
I assume this is a bug, unless I've badly misunderstood what is and is not UB. I still feel like I'm somehow responsible for this, but I haven't found anything to indicate that what I'm doing is forbidden. The code in this example calls
func
fromreal_func
:https://github.com/taichi-dev/taichi/blob/master/python/taichi/examples/real_func/graph/stable_fluid_graph.py
The text was updated successfully, but these errors were encountered: