cuda-gdb in clion: Focus is not set on any active CUDA kernel.

When using cuda-gdb as the default gdb to debug cuda program in Clion. No local variables can be shown and running cuda device will get Focus is not set on any active CUDA kernel.

OS: Ubuntu 16.04
CUDA toolkits: 10.0
GPU: GTX 1080 TI

1 Like

Hi, wumo

Please make sure you have hit a breakpoint in kernel before using “cuda device”