Cuda gdb on jetson nano

Hello,

Does the cuda-gdb really work on the jetson nano ?

When I try to run, I get the following error:

(cuda-gdb) b 67
Breakpoint 1 at 0x91b0: file matrixMulTiled8.cu, line 67.
(cuda-gdb) r
Starting program: /home/rreddy78/projects/test/matrixMulTiled8
[Thread debugging using libthread_db enabled]
Using host libthread_db library “/lib/aarch64-linux-gnu/libthread_db.so.1”.
fatal: The CUDA driver initialization failed. (error code = CUDBG_ERROR_INITIALIZATION_FAILURE(0x14)
(cuda-gdb)

I have followed the manual and

Single-GPU Debugging with the Desktop Manager Running

and have set

  • CUDA_DEBUGGER_SOFTWARE_PREEMPTION=1

Hi Ravishankar,
Thank you for your report! Could you share additional information to help us identify the issue:

  • cuda-gdb version you are using (output of cuda-gdb --version command).
  • nvidia-smi command output
  • deviceQuery sample output

It was quite some time ago with an older version of JetPack and if I remember correctly I somehow solved it. I will try to check with the latest JetPack I installed just now and update if the problem still exists…

Thank you for the quick reply, please let us know if you still experiencing this issue on the latest JetPack.

Hi,
I am also facing the same issue, and I tried to check on some other pages from where I was able to solve the problem of that with the below link but later on I am facing issues with cuda kernel debugging as the board is getting hang while trying for kernel debugging in cuda gdb.
https://forums.developer.nvidia.com/t/unable-to-debug-simple-cuda-program-cudbg-error-initialization-failure/222599

Hi, @harshapabbathi98

Thanks for using our Jetson and cuda-gdb.

Do you still have issue when use cuda-gdb ? The forum topic you pasted is already solved.

If you need any other help, feel free to start a new topic as this is originally too old.

Hi Veraj,

Thank you for the response. The issue was solved, as I was using gdb on desktop so the terminal is getting hang but was able to debug kernel through usb serial console(Putty).