JP44EA Cuda tools (cuda-memcheck, cuda-gdb) not working?

Hi,
Trying to debug some memory issue of my program. running on Xavier, with JP44EA. Working locally on the unit (screen, keyboard) so UI is running.
I’m trying to use the cuda tools
cuda-memcheck gives me:
========= Program hit cudaErrorDevicesUnavailable (error 46) due to “all CUDA-capable devices are busy or unavailable” on CUDA API call to cudaFree.
========= Saved host backtrace up to driver entry point at error
========= Host Frame:/usr/lib/aarch64-linux-gnu/libcuda.so [0x2fd95c]
========= Host Frame:/usr/local/cuda-10.2/lib64/libcudart.so.10.2 (cudaFree + 0x13c) [0x3bca4]=========
[E] [TRT] CUDA initialization failure with error 46. Please check your CUDA installation: Installation Guide Linux :: CUDA Toolkit Documentation
========= Error: process didn’t terminate successfully

and cuda-gdb gives me:
fatal: The CUDA driver initialization failed. (error code = CUDBG_ERROR_INITIALIZATION_FAILURE(0x14)

I booted the machine before trying, and have enough memory to run.

Any ideas what is wrong / how can I debug these memory issues ?

Thanks for the help !

Can you please try running :
sudo chmod a+rw /dev/nvhost-dbg-gpu on target before debugging ?

Also please refer to this post:

Debug error - #8 by phone_25852282

-Neel

3 Likes

Works !

1 Like