We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Version taichi-nightly 1.0.5.post20220810
taichi-nightly 1.0.5.post20220810
Describe the bug
import taichi as ti @ti.func def test_static_loop(): for i in ti.static(range(5)): x = 0.1 if x == 0.0: print("consition statement") break print("after condition") @ti.kernel def test_kernel(): test_static_loop() ti.init(arch=ti.cuda) test_kernel()
Expected behavior: Prints 5 after condition or raises an error.
after condition
Actual behavior: Prints nothing and fails silently.
The text was updated successfully, but these errors were encountered:
break
if
lin-hitonami
Successfully merging a pull request may close this issue.
Version
taichi-nightly 1.0.5.post20220810
Describe the bug
Expected behavior:
Prints 5
after condition
or raises an error.Actual behavior:
Prints nothing and fails silently.
The text was updated successfully, but these errors were encountered: