Hi, all –
Executing a kernel a while back, I ran into the following error message:
Cuda Error: The launch timed out and was terminated
Some digging around on the forums indicates this is caused by a Windows Watchdog timer, that is supposed to terminate kernel calls if they run for more than 5 seconds.
So I wrote a small test program that just runs a simple kernel that does some math for a longer and longer period of time until Cuda returns the error (see project attached). Surprisingly, I can get between 8 and 16 seconds of run time before Windows complains. I am running Windows XP Pro SP3 with a GeForce 8600 GTS and plenty of ram.
So: My questions are as follows –
Why does Windows have a watchdog at all?
Why can I run so much longer than everyone says I should be able to?
How can I get around this execution time limit?
I have heard that if I get another video card to run the Windows desktop on, I can have unlimited access to the CUDA device; however that isn’t an option for me right now.
Oregon State University Graphics Group
PS: The attachment was created on top of a CUDA sample program, so it is designed to be built in the CUDA SDK directory hierarchy.
WatchdogTest.zip (90.7 KB)