[BUG FIX] Fix BVH build's radix sort.#1305
[BUG FIX] Fix BVH build's radix sort.#1305duburcqa merged 33 commits intoGenesis-Embodied-AI:mainfrom
Conversation
|
👍 = Done. Saves me some typing in the future😊 |
Note that we don't get notifications for emoji. So, once you have addressed everyting you're going to address, you might consider posting something like "addressed all comments". (I'm not sure if that is standard tbh, and I typically often end up DM'ing reviewers directly anyway, but I tend to do this anywya). |
|
@hughperkins , Noted. 👍 |
Head branch was pushed to by a user without write access
| # Compute prefix sum | ||
| for i_b in ti.ndrange(self.n_batches): | ||
| self.prefix_sum[i_b, 0] = 0 | ||
| for j in range(1, 256): # sequential prefix sum |
There was a problem hiding this comment.
Though it has been merged, just to mention there is a built-in parallel prefix sum, which might be useful: https://github.com/taichi-dev/taichi/blob/master/python/taichi/algorithms/_algorithms.py#L42
There was a problem hiding this comment.
Oh really! This is interesting!
There was a problem hiding this comment.
Thanks for pointing this out. I think if we are doing prefix sum for just 256 elements, sequential would be fine.
Description
Maybe continue this PR after the linear corotated is merged into main. I just realized that this branch is based on the corotated one.
Checklist:
Submitting Code Changessection of CONTRIBUTING document.