Getting error trying to profile an application on the Jetson Xavier from a Linux Host Nsight Compute

I set up a remote connection and the profiling started, but then stops with the following output on the host Nsight Compute:

Launching: /home/poseidonas/.cache/nvidia/nsight-compute/target/linux-desktop-t210-a64/ncu
Process launched

==PROF== Connected to ncu-ui at 127.0.0.1:50152.

==PROF== Connected to process 7972 (/home/poseidonas/learningCuda/addVectors)

==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

==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

==ERROR== The application returned an error code (9).

I do not understand from the above error what I should do to fix it.
Please help.

Hi,

Nsight profiler needs root authority on Jetson.
Could you try to run it with sudo ...?

Thanks.

I have already started it with sudo! That’s not the problem. This problem occurs when the ncu binary started on the Jetson through the UI on the host machine.

Hi,

Could you share a screenshot of the error reported in the ncu UI on the Linux host?
Thanks.

Hey I solved the problem. I had to set sudo sysctl fs.protected_regular = 1 on my device machine.