Timeout Detection and Recovery of GPUs through WDDM (Windows)
Posted by
Demoscene Passivist on
Sep 21, 2010; 3:52pm
URL: https://forum.jogamp.org/Timeout-Detection-and-Recovery-of-GPUs-through-WDDM-Windows-tp1555560.html
This question is not directly related to JOGL/JOCL but rather a general problem with intensive GPU calculations using OpenGL/OpenCL.
Is there a programmatically way to disable
"Timeout Detection and Recovery of GPUs through WDDM" on Windows ? I'm currently implementing a raymarcher on the GPU and sometimes it takes quite long to calculate. After a couple of seconds Windows then resets the display driver, wich ofcourse crashes my application.
This behavior is a buildin safety mechanism in Windows to avoid locking the whole system when "only" the graphics driver crashes. Its quite useful, but when it comes to intensive GPGPU calculations its a real pain in the ass

The official suggestion is to "fiddle with some registry keys" or "buy a second graphics card"

. Both ways seems to be unaccaptable to me. I guess OpenCL has the same issue when using kernels that render longer that a couple of seconds.
So has anyone found some kind of Windows-API function to disable this behavior ? Or some other workaround wich can be trigged from a running application ?
Thanks in advance for ur efforts ...