Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"No GPU to monitor" on Jetson AGX Xavier #150

Closed
Jason-wwww opened this issue Jun 3, 2022 · 13 comments
Closed

"No GPU to monitor" on Jetson AGX Xavier #150

Jason-wwww opened this issue Jun 3, 2022 · 13 comments

Comments

@Jason-wwww
Copy link

I have installed the 'nvtop' on Jetson AGX Xavier and I got this output "No GPU to monitor" while running "nvtop" to start it.

@cxed
Copy link

cxed commented Jun 3, 2022

I have the exact same issue. Note that deviceQuery from cuda-samples works perfectly fine. How can we do whatever configuration is necessary to get nvtop working?

@cxed
Copy link

cxed commented Jun 3, 2022

Jetpack's jtop also works.

@Jason-wwww
Copy link
Author

Jetpack's jtop also works.

I can also use 'jtop', but 'nvtop' did not work.

@Syllo
Copy link
Owner

Syllo commented Jun 4, 2022

Hello,
nvtop will try to dynamically load libnvidia-ml.so or libnvidia-ml.so.1 to query the GPU state. Is this library installed?
Can you also please provide the nvidia driver version

@cxed
Copy link

cxed commented Jun 6, 2022

I'm trying to figure out how to install libnvidia-ml.so on a Jetson Xavier. This is a SoC which needs the tegra drivers (present and working). There is no nvidia kernel module running and I don't know if that is necessary or valid. The display works, some diagnostic tools certainly find and can monitor the "GPU" (which isn't a proper graphics card in the classic sense). Any thoughts on how this critical library (libnvidia-ml) can be installed directly for aarch64?

@Syllo
Copy link
Owner

Syllo commented Jun 9, 2022

It usually comes packaged with the NVIDIA drivers or CUDA. https://packages.ubuntu.com/jammy/libnvidia-ml-dev seems to provide it for Ubuntu.

@cxed
Copy link

cxed commented Jun 10, 2022

Thanks for your valuable response Syllo.
Your link highlights the problem I think. The libnvidia-ml-dev packages for 22.04 does seem available for arm64, which is fine. But for 20.04 it does not seem to be available for that architecture. This is pretty frustrating since it's an Nvidia machine where Nvidia picks out everything - including what version of Ubuntu to run. Maybe not your problem and I do appreciate the good tip of what to look for. Any ideas for getting this on the stock distro Nvidia's own Jetpack installed (Ubuntu 20.04)? Thanks!

@Syllo
Copy link
Owner

Syllo commented Jun 15, 2022

According to the NVIDIA website it should be included with cuda.
It may be in a non-standard location, you could search for it on your system find / -name libnvidia-ml.so.1.

There is always the hack of downloading the .deb package from debian, ignoring the missing dependencies, and remove it if it does not work.

Other than that I don't know.

@Syllo
Copy link
Owner

Syllo commented Sep 3, 2022

Closing for inactivity. Feel free to reopen if the issue persists.

@Syllo Syllo closed this as completed Sep 3, 2022
@pktiuk
Copy link

pktiuk commented Jul 19, 2023

This issue also exists on Nvidia Jetson Orin. Please reopen.

@ratsputin
Copy link

I'm using a Jetson Orin NX. That library does exist at the following path:
/usr/local/cuda-11.4/targets/aarch64-linux/lib/stubs/libnvidia-ml.so
That is, however, the only instance of that library.

As NVIDIA's jtop utility is horribly unstable (crashes as frequently as once every 2-3 minutes if processes come and go), I'll spend some time trying to get this to build on mine.

@pktiuk
Copy link

pktiuk commented Jul 24, 2023

@ratsputin
Do you know how can I ensure nvtop uses this library? (due to operating system used on my jetson I have to use snap package)

@Syllo
Copy link
Owner

Syllo commented Jul 24, 2023

Hello,
Nvtop uses the dynamic linker to load the libraries.
If the libraries are not in the linker search path you can add additional paths using LD_LIBRARY_PATH (man ld.so), for example, LD_LIBRARY_PATH=/usr/local/cuda-11.4/targets/aarch64-linux/lib/stubs/ nvtop (this option is ignored in secure-execution mode).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants