Cuda-gdb does not change focus to a device in multi-gpu debuggin

Hi All,

I am trying to debug a multi-GPU CUDA application. When I run the program, obtain the device information and then try to set cuda device to a desired device, I get “Request cannot be satisfied. CUDA focus unchanged”. Here is the output:

(cuda-gdb) info cuda devices
Dev PCI Bus/Dev ID Name Description SM Type SMs Warps/SM Lanes/Warp Max Regs/Lane Active SMs Mask

  • 0 34:00.0 Tesla V100-SXM3-32GB GV100GL-A sm_70 80 64 32 256 0x00000000000000000000000000000155
    1 3b:00.0 Tesla V100-SXM3-32GB GV100GL-A sm_70 80 64 32 256 0x00000000000000000000000000000000
    2 5c:00.0 Tesla V100-SXM3-32GB GV100GL-A sm_70 80 64 32 256 0x00000000000000000000000000000000
    (cuda-gdb) cuda device 2
    Request cannot be satisfied. CUDA focus unchanged.
    (cuda-gdb)

Thanks for your help