Skip to content

Ensure all tensors in GaussianRasterizer's raster_settings are on the same device #65

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

davidliyutong
Copy link

When passing raster_settings to GaussianRasterizationSettings, beginners are very likely to forget to copy .bg and .viewmatrix to CUDA devices, leading to hard-to-debug CUDA illegal memory access issues. Therefore I believe a _sanitizeSettings should be added to throw a clear exception if the tensors are misplaced.

Here is a summary of this commit:

  • Added _sanitizeSettings method in GaussianRasterizer class
  • Check if all tensors in raster_settings are on the same device
  • Raise an exception if tensors are on different devices
  • Raise an exception if any tensor is on the CPU, requiring the use of a CUDA device

… same device

- Added _sanitizeSettings method in GaussianRasterizer class
- Check if all tensors in raster_settings are on the same device
- Raise an exception if tensors are on different devices
- Raise an exception if any tensor is on the CPU, requiring the use of a CUDA device
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant