-
Notifications
You must be signed in to change notification settings - Fork 284
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
CUDA invalid configuration
if no Gaussian is in view
#84
Comments
That would be great, thanks! if there are no gaussians in view it seems reasonable to just return a |
As a related issue, access to gsplat/gsplat/cuda/csrc/forward.cu Line 286 in bae8738
The reason is that the size of gsplat/gsplat/cuda/csrc/bindings.cu Lines 313 to 319 in bae8738
I would propose to fix this by changing gsplat/gsplat/bin_and_sort_gaussians.py Line 110 in bae8738
to num_tiles = tile_bounds[0] * tile_bounds[1]
tile_bins = get_tile_bin_edges(num_tiles, isect_ids_sorted) It might also be helpful to return the Please let me know how you like it. Thanks! |
A
CUDA invalid configuration
exception will be thrown from kernel launches that perform per-point processing if the number of points is 0, which can happen if no Gaussian is in the view.This is caused by kernel launches with 0 blocks, e.g. in the example below,
blocks
evaluates to 0 ifnum_pts
is 0.gsplat/gsplat/cuda/csrc/bindings.cu
Lines 50 to 52 in 7822c32
I would suggest checking
num_pts
before the kernel launch, i.e.,I'm happy to submit a PR and please let me know if there are better alternatives.
The text was updated successfully, but these errors were encountered: