Failed to initialize the profiler: LibraryNotLoaded. Check that a compatible driver library is loaded

Hello,

I’m trying to profile a kernel on a Jetson AGX Xavier from Ubuntu 20.04, however, when I launch the profiler I get the following error :

==PROF== Connected to process 6723 (/home/user/Documents/backup_jetson/project/bin/main)


==ERROR== An error was reported by the counter measurement library:

==ERROR== Failed to initialize the profiler: LibraryNotLoaded. Check that a compatible driver library is loaded.

==ERROR== An error was reported by the counter measurement library:
==ERROR== Failed to initialize the profiler: LibraryNotLoaded. Check that a compatible driver library is loaded.
==PROF== Trying to shutdown target application

==PROF== Trying to shutdown target application
==ERROR== The application returned an error code (9).

How could I solve this problem ?

@b.esc

The error shows “Check that a compatible driver library is loaded”, it indicates that the nsight compute version is not compatible with the BSP.

Can you tell how do you flash your AGX Xavier, the BSP version, nsight compute version ?

Thanks for your answer !

For flashing my Jetson I used the latest available version of the SDK and followed the official instructions. I flashed Jetpack 5.1 and installed nsight-compute at the same time through the SDK. You will find the “about” informations for my nsight compute below :

Application: NVIDIA Nsight Compute
Version: 2025.2.0.0 (build 35613519) (public-release)

Sorry. I am not familiar with SDKM installation. I don’t know why 2025.2.0 is installed here.

2025.2.0.0 is recently released Getting Started with Nsight Compute | NVIDIA Developer on 2025/5 while Jetpack 5.1 is bundled with CUDA 11.4.

2025.2.0 is for CUDA 12.9, so it is reasonable that it can not work compatibility with CUDA 11.4.

Can you check do you have /usr/local/cuda/nsight-compute folder on your Jetson device ? If yes, what is the version there ?

Also what’s under /opt/nvidia ?

Indeed, the /usr/local/cuda/nsight-compute folder doesn’t exist. And also, even though /opt/nvidia exists, it is empty.

Do I need to install an older version of nsight-compute ?

If both location do not exist nsight compute. How do you launch the profiler before ?
Were you doing remote profile before ?

I launch nsight-compute through nsight-system after having done a remote profiling.

It seems a unsupported scenario - Launch nsight compute remote profile within nsight system.

Please use nsight compute standalone to do remote profile.
Also please use a older version.

Thank you for your help, downloading an older version compatible with my CUDA version seems to work.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.