gsgen3d / gsgen

[CVPR 2024] Text-to-3D using Gaussian Splatting
https://arxiv.org/abs/2309.16585
MIT License
761 stars 42 forks source link

Cuda Debug #22

Open xcharxlie opened 10 months ago

xcharxlie commented 10 months ago

HI there, As I'm new to CUDA, may I ask how you debugged on the CUDA side? Though I called printf and added cudaDeviceSynchronize() it still printed nothing. Just in case you had encountered the same issue, there are nan values as a result of scale rendering, do you know the reason by any chance? Thank you.

heheyas commented 10 months ago

Hi xcharxlie,

Thanks for your interest. In my case, the printf function will be executed if the program reaches that line. If you want more detailed debugging, please try out cuda-gdb (cuda-gdb --args python <your-program>). For nan detection, you can use CUDA function isnan to know whether that value is nan in the device side. I'm not an expert in CUDA either, but I hope my input can help you.