I run a raytracer in CUDA with N Bounces (each ray will fail N times).
I view results with openGL.
as soon as N is small (1 ~ 4), everything works fine. as soon as I make N large (~ 10) each thread (about 800x1000) should do a lot of calculations, and this is when the screen goes black and then back, with a note that my accident is nvidia.
I searched on the Internet and now I think that the reason for this is some kind of watchdog timer, since I use the same graphics card for my display and my calculations (the computer takes more than 2 seconds, so the driver itself is reset).
Is there a command to make the host (cpu) WAIT for the device (gpu) as long as it takes?
What should I do? im stuck: (
thank
source
share