Open xcharxlie opened 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.
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.