All CUDA devices are used for display and cannot be used while debugging.

来源:互联网 发布:matlab面向对象编程 编辑:程序博客网 时间:2024/06/05 02:58

Fatal: All CUDA devices are used for display and cannot be used while debugging. (error cod=CUDBG_ERROR_ALL_DEVICES_WATCHDOGGED)(0x18)

问题解释:http://stackoverflow.com/questions/4025620/how-do-i-debug-a-cuda-library-with-only-1-graphics-card-running-x11

display driver has a protection mechanism called watchdog timer which is enabled when the GPU in use also drives a display. The watchdog timer interrupts any kernel that runs for longer AFAIR 5s. This is intended to prevent GPU lockups. Alternatively, you could try using ocelot, but I am not sure how good are the debugging features it provides.

解决办法:https://devblogs.nvidia.com/parallelforall/cudacasts-episode-4-single-gpu-debugging-cuda-5-5/


接下来




0 0
原创粉丝点击