-
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
[Lang] Simplify dense.bitmasked to bitmasked #670
Conversation
I have a further question regarding this test taichi/tests/python/test_sparse_basics.py Lines 4 to 27 in 1371a07
This test checks the number of iterations over the leaf SNode Should this be made as part of Taichi's semantics eventually? Or should we just treat this as an implementation detail? Personally I prefer the former, as it won't surprise the users. That said, this might restrict each backend's implementation. |
Maybe two dense(128) caused this? The actual size of x is 128x128, however the second dim is not bitmasked, so the result is 128x2 (0 and 127 is one group, 256 and 257 is another group) |
Yep, the behavior of |
Your Metal implementation is correct. On CPUs, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Yes! The ultimate goal of Taichi sparse programming is to make algorithms fully independent of data structures. Assuming the finest level must be a
|
* [Lang] Simplify dense.bitmasked to bitmasked * fix tests * put back * [skip ci] enforce code format Co-authored-by: Taichi Gardener <[email protected]>
Related issue = #663
Also fixed a bug where the
SNode
type is not set correctly on Metal:taichi/taichi/codegen/codegen_metal.cpp
Line 719 in 1371a07
[Click here for the format server]