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

后端 未结 8 876
执念已碎
执念已碎 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:41

    It is possible to disable this behavior in Linux. Although the "watchdog" has an obvious purpose, it may cause some very unexpected results when doing extensive computations using shaders / CUDA.

    The option can be toggled in your X-configuration (likely /etc/X11/xorg.conf)

    Adding: Option "Interactive" "0" to the device section of your GPU does the job.

    see CUDA Visual Profiler 'Interactive' X config option?

    For details on the config

    and

    see ftp://download.nvidia.com/XFree86/Linux-x86/270.41.06/README/xconfigoptions.html#Interactive

    For a description of the parameter.

提交回复
热议问题