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.