getting error :CUDBG_ERROR_ALL_DEVICES_WATCHDOGGED while debugging

While debugging the code following error is occurring

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

Please suggest how to resolve it.

Hi, it looks like you only have one GPU, I suggest to use software preemption mode or use another GPU.

To enable software preemption please check the doc at,
3.4.2. Single-GPU Debugging with the Desktop Manager Running