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
Describe the bug
When packed=True in global config and the SNode Tree is pointer(3, 3)-dense(8, 8), struct-for loop will omit certain index even it has been activated:
packed=True
pointer(3, 3)-dense(8, 8)
To Reproduce
import taichi as ti ti.init(arch=ti.cpu, packed=True) block_size, leaf_size = 3, 8 x = ti.field(ti.i32) block = ti.root.pointer(ti.ij, (block_size, block_size)) block.dense(ti.ij, (leaf_size, leaf_size)).place(x) print(x.to_numpy().shape) @ti.kernel def activate(): x[7, 7] = 1 activate() @ti.kernel def test(): for I in ti.grouped(x): if I[0] == 7 and I[1] == 7: print(I) test() # Expected Output: # (24, 24) # [7, 7] # Actual Output (iff block_size == 3 and x[7, 7] = 1): # (24, 24)
The text was updated successfully, but these errors were encountered:
[Bug] Fix num_splits in parallel_struct_for (#7121)
745ddc8
Issue: fix #7112 Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
[Bug] Fix num_splits in parallel_struct_for (taichi-dev#7121)
3b6ed58
Issue: fix taichi-dev#7112 Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
71b983f
7569fdc
strongoier
Successfully merging a pull request may close this issue.
Describe the bug
When
packed=True
in global config and the SNode Tree ispointer(3, 3)-dense(8, 8)
, struct-for loop will omit certain index even it has been activated:To Reproduce
The text was updated successfully, but these errors were encountered: