Re: Timeout Detection and Recovery of GPUs through WDDM (Windows)
Posted by
Michael Bien on
Sep 21, 2010; 4:11pm
URL: https://forum.jogamp.org/Timeout-Detection-and-Recovery-of-GPUs-through-WDDM-Windows-tp1555560p1555657.html
hehe,
cool so you found a way to trigger this windows "feature" :)
the only workaround I know is to try to spend less as 1s in a driver
API call. Since you are using the driver, windows thinks you are
also rendering with 60FPS - and everything else must be obviously
broken software :)
regards,
michael
On 09/21/2010 05:52 PM, Demoscene Passivist [via jogamp] wrote:
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 ...
--
http://michael-bien.com/