CUDA apps time out & fail after several seconds - how to work around this?

后端 未结 8 834
执念已碎
执念已碎 2020-11-27 13:59

I\'ve noticed that CUDA applications tend to have a rough maximum run-time of 5-15 seconds before they will fail and exit out. I realize it\'s ideal to not have CUDA applic

8条回答
  •  醉梦人生
    2020-11-27 14:37

    Resolve Timeout Detection and Recovery - WINDOWS 7 (32/64 bit)

    Create a registry key in Windows to change the TDR settings to a higher amount, so that Windows will allow for a longer delay before TDR process starts.

    Open Regedit from Run or DOS.

    In Windows 7 navigate to the correct registry key area, to create the new key:

    HKEY_LOCAL_MACHINE>SYSTEM>CurrentControlSet>Control>GraphicsDrivers.

    There will probably one key in there called DxgKrnlVersion there as a DWord.

    Right click and select to create a new key REG_DWORD, and name it TdrDelay. The value assigned to it is the number of seconds before TDR kicks in - it > is currently 2 automatically in Windows (even though the reg. key value doesn't exist >until you create it). Assign it with a new value (I tried 4 seconds), which doubles the time before TDR. Then restart PC. You need to restart the PC before the value will work.

    Source from Win7 TDR (Driver Timeout Detection & Recovery) I have also verified this and works fine.

提交回复
热议问题