修改注册表以增加 GPU 超时,Windows 7 [英] Modifying registry to increase GPU timeout, windows 7

查看:35
本文介绍了修改注册表以增加 GPU 超时,Windows 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 GPU 上的超时从默认设置 2 秒增加到更长的时间.我发现了以下

@RoBik 如果我想要 6 天,如下所示(我知道有点过分,但只是举例)?再次感谢您的帮助,+1.

编辑这是我目前遇到的错误.

发生错误,操作已终止.CUDA.NET 异常:ErrorLaunchTimeOut.上述错误的堆栈跟踪:在 Cudafy.Host.CudaGPU.HandleCUDAException(CUDAException ex)在 Cudafy.Host.CudaGPU.DoCopyFromDeviceAsync[T](数组 devArray,Int32 devOffset,数组 hostArray,Int32 hostOffset,Int32 计数,Int32 streamId)在 Cudafy.Host.CudaGPU.DoCopyFromDevice[T](数组 devArray,Int32 devOffset,数组 hostArray,Int32 hostOffset,Int32 计数)在 Cudafy.Host.CudaGPU.DoCopyFromDevice[T](阵列 devArray,阵列 hostArray)在 Cudafy.Host.GPGPU.CopyFromDevice[T](T[,] devArray, T[,] hostArray)在 C:.....TaskManager.cs:line 255 中的 FrazerMann.Profiler.UserInterface.TaskManager.DataRetrieval()在 C:....MainView.cs:line 338 中的 FrazerMann.Profiler.UserInterface.MainView.btnEvaluation_Click(Object sender, EventArgs e)内部异常:

解决方案

您帖子中的链接是正确的,您只需要创建具有所需值的相应键即可.您将在此处找到 TDR 注册表项说明.您正在寻找的设置是

TdrDelay指定 GPU 可以延迟来自 GPU 调度程序的抢占请求的秒数.这实际上是超时阈值.默认值为 2 秒.KeyPath:HKEY_LOCAL_MACHINESystemCurrentControlSetControlGraphicsDrivers键值:TdrDelay值类型:REG_DWORDValueData :延迟的秒数.2 秒是默认值.

您需要做的是在 HKEY_LOCAL_MACHINESystemCurrentControlSetControlGraphicsDrivers 下创建一个名为 TdrDelay 类型为 REG_DWORD 的新密钥并将其值设置为您想要的值(以秒为单位的值).之后需要重启电脑才能使设置生效.

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

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

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:

解决方案

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.

这篇关于修改注册表以增加 GPU 超时,Windows 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆