Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

cuda - Modifying registry to increase GPU timeout, windows 7

Im trying to increase the timeout on the GPU from its default setting of 2 seconds to something a little longer. I found the following link but it appears its slightly different in windows 7 as i cant see anything mentioned in the webpage.

Has anyone done this before? If so could you fill in the gaps please.

Thanks

image

@RoBik so as follows if i want 6 days (bit excessive i know but just for example)? Thanks again for your help, +1.

image EDIT This is the error im currently getting.

An error has occured and the operation has been terminated. CUDA.NET exception: ErrorLaunchTimeOut. Stack Trace for above error: at Cudafy.Host.CudaGPU.HandleCUDAException(CUDAException ex) at Cudafy.Host.CudaGPU.DoCopyFromDeviceAsync[T](Array devArray, Int32 devOffset, Array hostArray, Int32 hostOffset, Int32 count, Int32 streamId) at Cudafy.Host.CudaGPU.DoCopyFromDevice[T](Array devArray, Int32 devOffset, Array hostArray, Int32 hostOffset, Int32 count) at Cudafy.Host.CudaGPU.DoCopyFromDevice[T](Array devArray, Array hostArray) at Cudafy.Host.GPGPU.CopyFromDevice[T](T[,] devArray, T[,] hostArray) at FrazerMann.Profiler.UserInterface.TaskManager.DataRetrieval() in C:.....TaskManager.cs:line 255 at FrazerMann.Profiler.UserInterface.MainView.btnEvaluation_Click(Object sender, EventArgs e) in C:....MainView.cs:line 338 Inner exception:

Question&Answers:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The link in your post is correct, you just need to create the corresponding key with the desired value. You will find the TDR Registry Keys description here. The setting you are looking for is

TdrDelay
Specifies the number of seconds that the GPU can delay the preempt request from the GPU scheduler. This is effectively the timeout threshold. The default value is 2 seconds.

KeyPath   : HKEY_LOCAL_MACHINESystemCurrentControlSetControlGraphicsDrivers
KeyValue  : TdrDelay
ValueType : REG_DWORD
ValueData : Number of seconds to delay. 2 seconds is the default value.

What you need to do is to create a new key named TdrDelay of type REG_DWORD under HKEY_LOCAL_MACHINESystemCurrentControlSetControlGraphicsDrivers and set its value to what ever you desire (value in seconds). After that you need to restart your computer for the setting to take effect.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...