unable to profile on jetson nano from host nsight

I am going through all the steps of CUDA development on the Jetson Nano device.

From my host’s Nsight Eclipse Edition program I can cross-build a CUDA sample for AArch64 without issue. I can also run that sampled program on the nano device without problems.
The issue comes when I try to remote profile the program.
A pop-up saying “Obtaining list fo devices” runs for a long time and finally gives up with the following error message:

Data collection for 1 analysis stages failed
Failed to execute “/bin/sh -c “export LD_LIBRARY_PATH=”/usr/local/cuda-10.0/lib64”:${LD_LIBRARY_PATH};export NVPROF_TMPDIR="/tmp";"/usr/local/cuda-10.0/bin/nvprof" --query-cuda-info; export LD_LIBRARY_PATH="/usr/local/cuda-10.0/lib64":${LD_LIBRARY_PATH};export NVPROF_TMPDIR="/tmp";"/usr/local/cuda-10.0/bin/nvprof" --version""

The weird thing is that when I try to run the exact same nvprof commands directly on the Jetson nano’s command line I get no error.


  • Profiling with the same Nsight Eclipse Edition on a host program works.
  • I have the same issue with the NVIDIA Visual Profiler tool

There seem to be an issue of Nsight running nvprof commands on the device, but I’m not sure why. Can you help me out ?

My system is relatively vanilla, and setup according to the documentation:
I have a host Ubuntu machine on which I have installed Jetpack 4.2
I have a Nano device on which I have flashed the corresponding linux distribution.

I am moving this issue to Nsight Eclipse Edition forum and I am also going to ping the engineering team to try to get you an answer.

Ok cool.
Will the engineering team respond here as well ?

that is my expectation, yup.

This is a known Visual Profiler issue. Remote profiling is not supported for the Android aarch64 target. The workaround is to run nvprof on the target and load the nvprof output in Visual Profiler. Refer the https://docs.nvidia.com/cuda/profiler-users-guide/index.html#import-nvprof-session section in the Profiler User Guide.
It is same issue with the Nsight Eclipse Edition.

Thanks much ssatoor.

So what you’re saying is that GUI remote profiling altogether is not possible with Jetson Nano (unless as you suggest you run nvprof on the device and load the result) ?


I had followed the tutorial on there : https://devblogs.nvidia.com/cuda-jetson-nvidia-nsight-eclipse-edition/
This tutorial was originally for the Jetson TX2, but hinted in the forum as appropriate for Jetson Nano as well https://devtalk.nvidia.com/default/topic/1049637/jetson-nano-amp-nsight-eclipse-edition-/
They are not mentioning this bug in the tutorial. Is it because only Jetson Nano has it ?


The issue I mentioned in my earlier reply is on Android aarch64 target. You must be using L4T on the Jetson Nano. I need to confirm if we have some remote profiling issue on the Jetson Nano.

Hi ssatoor,
Yes that is correct, I’m using L4T on the Jetson Nano (installed through the nvidia tutorial).

Great, please let me know when you have the answer.


Hi nicolas.stoi,

We could not reproduce this issue at our end. Primarily it seems some permission issues on target. Can you please check if you have any network level restrictions on your target (Jetson board)? Do you have root permission to your target? Can you please try SSH to the target machine and try manually running that command and see if it runs successfully? For example, run

$ ssh root@your-target-ip /bin/sh -c “export LD_LIBRARY_PATH=”/usr/local/cuda-10.0/lib64":${LD_LIBRARY_PATH};export NVPROF_TMPDIR="/tmp";"/usr/local/cuda-10.0/bin/nvprof" --query-cuda-info; export LD_LIBRARY_PATH="/usr/local/cuda-10.0/lib64":${LD_LIBRARY_PATH};export NVPROF_TMPDIR="/tmp";"/usr/local/cuda-10.0/bin/nvprof" --version"


Hi Ramesh,
Thanks for the answer.

I’ve created an admin user “nicolas” that has sudo permission, but is different from the root user.

If I do (as you suggest):
$ ssh nicolas@jetson-ip /bin/sh -c “export LD_LIBRARY_PATH=”/usr/local/cuda-10.0/lib64":${LD_LIBRARY_PATH};export NVPROF_TMPDIR="/tmp";"/usr/local/cuda-10.0/bin/nvprof" --query-cuda-info; export LD_LIBRARY_PATH="/usr/local/cuda-10.0/lib64":${LD_LIBRARY_PATH};export NVPROF_TMPDIR="/tmp";"/usr/local/cuda-10.0/bin/nvprof" --version"

I get this:
export DBUS_SESSION_BUS_ADDRESS=‘unix:path=/run/user/1001/bus’
export HOME=’/home/nicolas’
export LANG=‘en_US.UTF-8’
export LC_ADDRESS=‘fr_FR.UTF-8’
export LC_CTYPE=‘en_US.UTF-8’
export LC_MONETARY=‘fr_FR.UTF-8’
export LC_NAME=‘fr_FR.UTF-8’
export LC_NUMERIC=‘fr_FR.UTF-8’
export LC_PAPER=‘fr_FR.UTF-8’
export LC_TELEPHONE=‘fr_FR.UTF-8’
export LC_TIME=‘fr_FR.UTF-8’
export LOGNAME=‘nicolas’
export MAIL=’/var/mail/nicolas’
export OLDPWD=’/home/nicolas’
export PATH=’/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games’
export PWD=’/home/nicolas’
export SHELL=’/bin/zsh’
export SHLVL=‘1’
export SSH_CLIENT=‘ 40778 22’
export SSH_CONNECTION=‘ 40778 22’
export USER=‘nicolas’
export XDG_RUNTIME_DIR=’/run/user/1001’
export XDG_SESSION_ID=‘6’
export _=’/bin/sh’
0/(NVIDIA Tegra X1 cc=5.3)
nvprof: NVIDIA ® Cuda command line profiler
Copyright © 2012 - 2018 NVIDIA Corporation
Release version 10.0.166 (21)

It appears no errors is triggered there. Does that help you figure out where the problem is coming from ?

Hi nicolas.stoi,

The command output looks fine. We still suspect that this is something related to root privileges. Can you please try enabling root login and use root for your remote profiling?

Here are the steps to enable root user

  1. sudo passwd root
  2. sudo passwd -u root
  3. vim /etc/ssh/sshd_config
    and set -PermitRootLogin yes
  4. systemctl restart sshd

For more details please check

Hi Ramesh,
Thanks for the answer.

Success! enabling a root user and using it for building/debugging/profiling works.

So it is indeed a privilege issue. Do you think there could be a fix to enable remote profiling for a standard user ?

Thanks much