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
Detected by @g1n0st .
Continue statement in struct for scope will skip the whole lowest activated dense block.
I am not sure whether it is a feature or a bug.
k-ye
added
bug
We've confirmed that this is an BUG
ir
IR related issues
and removed
potential bug
Something that looks like a bug but not yet confirmed
labels
Oct 26, 2021
Describe the bug
(update) Same issue as #3271.
Detected by @g1n0st .
Continue statement in struct for scope will skip the whole lowest activated dense block.
I am not sure whether it is a feature or a bug.
To Reproduce
Log/Screenshots
Additional comments
taichi/taichi/ir/statements.cpp
Line 7 in 3a9c1f3
https://github.com/taichi-dev/taichi/blob/master/taichi/codegen/codegen_llvm.cpp#L802
A continue statement will emit a return statement in LLVM.
https://github.com/taichi-dev/taichi/blob/master/taichi/codegen/codegen_llvm.cpp#L1527
But every thread in struct for will loop over the whole lowest dense block.
I guess that a return statement in the kernel will force the thread to jump over the owest dense block loop, and resulting in this confusing skipping behavior.
The text was updated successfully, but these errors were encountered: