Skip to content

nvtop --No GPU to monitor. #318

Open

Description

@lransona

Hi after reviewing most of the suggestions from MS and NV, and surfing the web, I can not get nvtop to see my GPU. Ollama saw the GPU and used but nvtop failed to see it?

Here is some information about the setup of my machine:

wsl --version
Versión de WSL: 2.3.24.0
Versión de kernel: 5.15.153.1-2
Versión de WSLg: 1.0.65
Versión de MSRDC: 1.2.5620
Versión de Direct3D: 1.611.1-81528511
Versión DXCore: 10.0.26100.1-240331-1435.ge-release
Versión de Windows: 10.0.22631.4169

$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Thu_Nov_18_09:45:30_PST_2021
Cuda compilation tools, release 11.5, V11.5.119
Build cuda_11.5.r11.5/compiler.30672275_0

$ nvidia-smi
Fri Oct 4 13:57:04 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 565.51.01 Driver Version: 565.90 CUDA Version: 12.7 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=====================================+========================+======================|
| 0 NVIDIA GeForce RTX 4090 On | 00000000:05:00.0 On | Off |
| 0% 49C P8 10W / 450W | 1536MiB / 24564MiB | 5% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+----------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=====================================================================================|
| 0 N/A N/A 26 G /Xwayland N/A |
+-----------------------------------------------------------------------------------------+

$ curl -fsSL https://ollama.com/install.sh | sh

Installing ollama to /usr/local
Downloading Linux amd64 bundle
######################################################################## 100.0%##O=# #
######################################################################## 100.0%
Adding ollama user to render group...
Adding ollama user to video group...
Adding current user to ollama group...
Creating ollama systemd service...
Enabling and starting ollama service...
Nvidia GPU detected.
The Ollama API is now available at 127.0.0.1:11434.
Install complete. Run "ollama" from the command line.
mywsl@Galileo:~$ ollama run llama3.2:3b
Good morning
Good morning! How can I assist you today?

$ nvtop -v -> nvtop version 1.2.2
$ nvtop -> No GPU to monitor.

Do you have any suggestions about how to fix the problem? Have I missed something?
Many thanks for considering my request.

Activity

  1. Xiaomin-HUANG commented on Oct 16, 2024

    @Xiaomin-HUANG

    Your Kernel might need to be upgraded. My system is Ubuntu, and this works for me :
    $ sudo apt remove nvtop
    $ sudo reboot to update to a new kernel
    then reboot the system by power off so that the new kernel can be loaded
    $ sudo apt install nvtop

  2. lransona commented on Oct 16, 2024

    @lransona
    Author

    Thanks for your answer.
    I did what you suggested but still the same error.

    ~$ nvtop
    No GPU to monitor.
    ~$ nvtop -v
    nvtop version 3.0.0

  3. najibveto commented on Nov 5, 2024

    @najibveto

    Thanks for your answer. I did what you suggested but still the same error.

    ~$ nvtop No GPU to monitor. ~$ nvtop -v nvtop version 3.0.0

    i am curious if you have windows 10 or 11?

  4. lransona commented on Nov 5, 2024

    @lransona
    Author

    Windows 11 Pro.

  5. najibveto commented on Nov 5, 2024

    @najibveto

    Windows 11 Pro.

    i tried both, i got the same error when i used win10 but it worked fine when i used windows 11 pro.

  6. jeffgsf commented on Jan 25, 2025

    @jeffgsf

    Same issue. Windows 11 Pro, 2 Nvidia GPUs. I am running on WSL2 Ubuntu 22.04.3 LTS. "watch nvidia-smi" shows GPUs correctly. But nvtop responds with "No GPU to monitor."
    NVML appears to see and report my GPUs correctly. I've run through all of the reinstalling checks, but can't figure it out. Is it Ubuntu 22.04.3? WSL2?

    ~$ nvtop -v --> nvtop version 3.1.0

    Possibly --> no WSL2 kernel support for /dev/nvidia*

  7. bramvera commented on Feb 1, 2025

    @bramvera

    nvtop-git latest still no luck on Arch Linux WSL

    [100%] Built target nvtop
    ❯ sudo make install
    [100%] Built target nvtop
    Install the project...
    -- Install configuration: "Release"
    -- Installing: /usr/local/bin/nvtop
    -- Set non-toolchain portion of runtime path of "/usr/local/bin/nvtop" to "/usr/local/lib"
    -- Installing: /usr/local/share/man/man1/nvtop.1
    -- Installing: /usr/local/share/icons/nvtop.svg
    -- Installing: /usr/local/share/applications/nvtop.desktop
    -- Installing: /usr/local/share/metainfo/nvtop.metainfo.xml
    ❯ nvtop
    No GPU to monitor.
    
  8. iddrew commented on Feb 3, 2025

    @iddrew

    I'm having the same issue. my ollama docker container running from my Ubuntu 24.04.1 LTS WSL distro on a windows 11 PC is seeing the GPU just fine and utilizing it. nvidia-smi on ubuntu also sees the GPU. it's just nvtop (v3.0.2) which is showing "no GPU to monitor"

  9. rynoian commented on Feb 7, 2025

    @rynoian

    Same issue with linux mint

  10. dm0red commented on Feb 7, 2025

    @dm0red

    Same.
    nvtop 3.0.2
    Ubuntu 24.04.1 LTS WSL2 on Windows 11 Pro

    +-----------------------------------------------------------------------------------------+
    | NVIDIA-SMI 565.77.01              Driver Version: 566.36         CUDA Version: 12.7     |
    |-----------------------------------------+------------------------+----------------------+
    | GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
    | Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
    |                                         |                        |               MIG M. |
    |=========================================+========================+======================|
    |   0  NVIDIA GeForce RTX 2080 Ti     On  |   00000000:01:00.0  On |                  N/A |
    |  0%   34C    P8             28W /  300W |    1317MiB /  11264MiB |     15%      Default |
    |                                         |                        |                  N/A |
    +-----------------------------------------+------------------------+----------------------+
    
    +-----------------------------------------------------------------------------------------+
    | Processes:                                                                              |
    |  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
    |        ID   ID                                                               Usage      |
    |=========================================================================================|
    |  No running processes found                                                             |
    +-----------------------------------------------------------------------------------------+
    
  11. wallentx commented on Feb 10, 2025

    @wallentx

    It looks like this just started happening on Arch Linux as well.
    Running nvidia-open 570.86.16-3.1.

    It worked on the 6th..
    But I'm noticing that even nvidia-smi is giving me:

    Failed to initialize NVML: Driver/library version mismatch
    NVML library version: 570.86
    

    And that worked on Jan 28.

    My GPU is def working.

    /opt/cuda/extras/demo_suite/bandwidthTest

    [CUDA Bandwidth Test] - Starting...
    Running on...
    
     Device 0: NVIDIA RTX A4000
     Quick Mode
    
     Host to Device Bandwidth, 1 Device(s)
     PINNED Memory Transfers
       Transfer Size (Bytes)	Bandwidth(MB/s)
       33554432			2904.0
    
     Device to Host Bandwidth, 1 Device(s)
     PINNED Memory Transfers
       Transfer Size (Bytes)	Bandwidth(MB/s)
       33554432			2729.6
    
     Device to Device Bandwidth, 1 Device(s)
     PINNED Memory Transfers
       Transfer Size (Bytes)	Bandwidth(MB/s)
       33554432			397060.8
    
    Result = PASS
    
    NOTE: The CUDA Samples are not meant for performance measurements. Results may vary when GPU Boost is enabled.
    

    Maybe nvidia broke something

  12. Harsha-Vardhan-Bojja commented on Mar 24, 2025

    @Harsha-Vardhan-Bojja

    Hi after reviewing most of the suggestions from MS and NV, and surfing the web, I can not get nvtop to see my GPU. Ollama saw the GPU and used but nvtop failed to see it?

    Here is some information about the setup of my machine:

    wsl --version
    Versión de WSL: 2.3.24.0
    Versión de kernel: 5.15.153.1-2
    Versión de WSLg: 1.0.65
    Versión de MSRDC: 1.2.5620
    Versión de Direct3D: 1.611.1-81528511
    Versión DXCore: 10.0.26100.1-240331-1435.ge-release
    Versión de Windows: 10.0.22631.4169

    $ nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2021 NVIDIA Corporation Built on Thu_Nov_18_09:45:30_PST_2021 Cuda compilation tools, release 11.5, V11.5.119 Build cuda_11.5.r11.5/compiler.30672275_0

    $ nvidia-smi Fri Oct 4 13:57:04 2024 +-----------------------------------------------------------------------------------------+ | NVIDIA-SMI 565.51.01 Driver Version: 565.90 CUDA Version: 12.7 | |-----------------------------------------+------------------------+----------------------+ | GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |=====================================+========================+======================| | 0 NVIDIA GeForce RTX 4090 On | 00000000:05:00.0 On | Off | | 0% 49C P8 10W / 450W | 1536MiB / 24564MiB | 5% Default | | | | N/A | +-----------------------------------------+------------------------+----------------------+----------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=====================================================================================| | 0 N/A N/A 26 G /Xwayland N/A | +-----------------------------------------------------------------------------------------+

    $ curl -fsSL https://ollama.com/install.sh | sh

    Installing ollama to /usr/local
    Downloading Linux amd64 bundle
    ######################################################################## 100.0%##O=# #
    ######################################################################## 100.0%
    Adding ollama user to render group...
    Adding ollama user to video group...
    Adding current user to ollama group...
    Creating ollama systemd service...
    Enabling and starting ollama service...
    Nvidia GPU detected.
    The Ollama API is now available at 127.0.0.1:11434.
    Install complete. Run "ollama" from the command line.
    mywsl@Galileo:~$ ollama run llama3.2:3b
    Good morning
    Good morning! How can I assist you today?

    $ nvtop -v -> nvtop version 1.2.2 $ nvtop -> No GPU to monitor.

    Do you have any suggestions about how to fix the problem? Have I missed something? Many thanks for considering my request.

    I think there was no profiling was enabled

  13. Harsha-Vardhan-Bojja commented on Mar 24, 2025

    @Harsha-Vardhan-Bojja

    I'm having the same issue. my ollama docker container running from my Ubuntu 24.04.1 LTS WSL distro on a windows 11 PC is seeing the GPU just fine and utilizing it. nvidia-smi on ubuntu also sees the GPU. it's just nvtop (v3.0.2) which is showing "no GPU to monitor"

    Mostly the profling has not update or else use the latest nvtop version

  14. zhuoqun-chen commented on Mar 30, 2025

    @zhuoqun-chen

    I also have the same issue (nvtop installed via brew install nvtop)

    I'm working on:

    lsb_release -a
    lsb_release -a
    No LSB modules are available.
    Distributor ID:	Ubuntu
    Description:	Ubuntu 20.04.6 LTS
    Release:	20.04
    Codename:	focal
    

    nvtop info:

    nvtop
    # NO GPU to monitor.
    nvtop --verison
    # 3.2.0

    however, nvidia-smi works fine:

    nvidia-smi
    Sun Mar 30 10:51:42 2025
    +---------------------------------------------------------------------------------------+
    | NVIDIA-SMI 535.183.01             Driver Version: 535.183.01   CUDA Version: 12.2     |
    |-----------------------------------------+----------------------+----------------------+
    | GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
    | Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
    |                                         |                      |               MIG M. |
    |=========================================+======================+======================|
    |   0  NVIDIA GeForce RTX 4070 Ti     Off | 00000000:01:00.0  On |                  N/A |
    |  0%   35C    P8               8W / 285W |    372MiB / 12282MiB |      0%      Default |
    |                                         |                      |                  N/A |
    +-----------------------------------------+----------------------+----------------------+
    
    +---------------------------------------------------------------------------------------+
    | Processes:                                                                            |
    |  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
    |        ID   ID                                                             Usage      |
    |=======================================================================================|
    |    0   N/A  N/A      1581      G   /usr/lib/xorg/Xorg                           35MiB |
    |    0   N/A  N/A      3561      G   /usr/lib/xorg/Xorg                          190MiB |
    |    0   N/A  N/A      3877      G   /usr/bin/gnome-shell                         29MiB |
    |    0   N/A  N/A     14632      G   ...ures=SpareRendererForSitePerProcess       18MiB |
    |    0   N/A  N/A     80357      G   ...seed-version=20250207-050113.109000       22MiB |
    |    0   N/A  N/A   2172711      G   /usr/bin/totem                               17MiB |
    |    0   N/A  N/A   4157827      G   ...yOnDemand --variations-seed-version       25MiB |
    +---------------------------------------------------------------------------------------+
    
  15. mkgai commented on Apr 10, 2025

    @mkgai

    yep

  16. wallentx commented on Apr 22, 2025

    @wallentx

    I was able to fix mine. When 6.13 came out on arch, nvidia drivers were busted, I had to get some early-leaked drivers to fix it (wget https://github.com/flathub/org.freedesktop.Platform.GL.nvidia/releases/download/cuda/NVIDIA-Linux-x86_64-570.86.10.run I think), and I had never installed nvidia drivers from one of their .run files before.. and I actually thought it was pretty nice.. and the dkms install part seemed to be some extra separate step which put me out of sync with later drivers that I installed via pacman.

    I was able to get things back on track just by downloading the latest .run installer, and using that again.

  17. y9c commented on May 21, 2025

    @y9c

    I’m experiencing the same issue on Arch Linux, but nvitop works and might be a good alternative.

    https://github.com/XuehaiPan/nvitop

  18. Gordon01 commented on May 22, 2025

    @Gordon01

    Make sure you don't have anything from a system package manager, like libnvidia-compute- packages in Ubuntu. You may have accidentally install them with nvidia-smi coming from apt. You should only use a bundle coming from the Windows drivers in /usr/lib/wsl/lib/ ref: https://docs.nvidia.com/cuda/wsl-user-guide/index.html

    The only problem I have is wrong memory usage numbers.

    Ubuntu from msstore: Ubuntu 24.04.2 LTS
    I've built nvtop from source:

    cmake .. -DAMDGPU_SUPPORT=OFF -DINTEL_SUPPORT=OFF -DMSM_SUPPORT=OFF -DAPPLE_SUPPORT=OFF -DPANFROST_SUPPORT=OFF -DPANTHOR_SUPPORT=OFF -DASCEND_SUPPORT=OFF -DV3D_SUPPORT=OFF -DTPU_SUPPORT=OFF
    
    $ nvtop --version
    nvtop version 3.2.0
    

    Image

  19. masteryf commented on Jul 5, 2025

    @masteryf

    Hi everyone,

    I think I have found a possible cause for the "No GPU to monitor" issue in WSL.
    nvtop works fine for me on WSL until I install nvidia-cuda-toolkit. After installing nvidia-cuda-toolkit, running nvtop gives the "No GPU to monitor" error.

    I tested this multiple times:

    Without nvidia-cuda-toolkit: nvtop works and detects my GPU.
    After installing nvidia-cuda-toolkit: nvtop shows "No GPU to monitor".
    It seems that installing nvidia-cuda-toolkit somehow causes this problem.
    Maybe it's related to the drivers or libraries that the toolkit package installs or overwrites.

    I hope this information helps to troubleshoot the issue!

  20. Gordon01 commented on Jul 6, 2025

    @Gordon01

    After installing nvidia-cuda-toolkit, running nvtop gives the "No GPU to monitor" error.

    From https://docs.nvidia.com/cuda/wsl-user-guide/index.html#cuda-support-for-wsl-2

    Once a Windows NVIDIA GPU driver is installed on the system, CUDA becomes available within WSL 2. The CUDA driver installed on Windows host will be stubbed inside the WSL 2 as libcuda.so, therefore users must not install any NVIDIA GPU Linux driver within WSL 2. One has to be very careful here as the default CUDA Toolkit comes packaged with a driver, and it is easy to overwrite the WSL 2 NVIDIA driver with the default installation. We recommend developers to use a separate CUDA Toolkit for WSL 2 (Ubuntu) available from the CUDA Toolkit Downloads page to avoid this overwriting. This WSL-Ubuntu CUDA toolkit installer will not overwrite the NVIDIA driver that was already mapped into the WSL 2 environment. To learn how to compile CUDA applications, please read the CUDA documentation for Linux.

  21. bramvera commented on Jul 7, 2025

    @bramvera

    Hi everyone,

    I think I have found a possible cause for the "No GPU to monitor" issue in WSL. nvtop works fine for me on WSL until I install nvidia-cuda-toolkit. After installing nvidia-cuda-toolkit, running nvtop gives the "No GPU to monitor" error.

    I tested this multiple times:

    Without nvidia-cuda-toolkit: nvtop works and detects my GPU. After installing nvidia-cuda-toolkit: nvtop shows "No GPU to monitor". It seems that installing nvidia-cuda-toolkit somehow causes this problem. Maybe it's related to the drivers or libraries that the toolkit package installs or overwrites.

    I hope this information helps to troubleshoot the issue!

    thanks, I can confirm work, I only install toolkit
    sudo ./cuda_12.9.1_575.57.08_linux.run --silent --toolkit --toolkitpath=/opt/cuda-12.9.1 --override

    Image

  22. pcgeek86 commented on Aug 6, 2025

    @pcgeek86

    Same original problem here .... "No GPU to monitor"

    • Ubuntu Server 24.04 LTS
    • NVIDIA GeForce RTX 3060.
    • NVIDIA driver 570.158.01
    +-----------------------------------------------------------------------------------------+
    | NVIDIA-SMI 570.158.01             Driver Version: 570.158.01     CUDA Version: 12.8     |
    |-----------------------------------------+------------------------+----------------------+
    | GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
    | Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
    |                                         |                        |               MIG M. |
    |=========================================+========================+======================|
    |   0  NVIDIA GeForce RTX 3060        Off |   00000000:2D:00.0 Off |                  N/A |
    |  0%   54C    P8             12W /  170W |   11400MiB /  12288MiB |      0%      Default |
    |                                         |                        |                  N/A |
    +-----------------------------------------+------------------------+----------------------+
    
    +-----------------------------------------------------------------------------------------+
    | Processes:                                                                              |
    |  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
    |        ID   ID                                                               Usage      |
    |=========================================================================================|
    |    0   N/A  N/A            7473      C   python                                 1862MiB |
    |    0   N/A  N/A          167111      C   /usr/bin/python3                       9002MiB |
    |    0   N/A  N/A         1095938      C   /usr/bin/ollama                         408MiB |
    |    0   N/A  N/A         3873555      C   python3                                 102MiB |
    +-----------------------------------------------------------------------------------------+
    trevor@server:~$ nvtop
    No GPU to monitor.
    trevor@server:~$ nvtop --version
    nvtop version 3.2.0
    
  23. bramvera commented on Aug 6, 2025

    @bramvera

    Same original problem here .... "No GPU to monitor"

    • Ubuntu Server 24.04 LTS
    • NVIDIA GeForce RTX 3060.
    • NVIDIA driver 570.158.01
    +-----------------------------------------------------------------------------------------+
    | NVIDIA-SMI 570.158.01             Driver Version: 570.158.01     CUDA Version: 12.8     |
    |-----------------------------------------+------------------------+----------------------+
    | GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
    | Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
    |                                         |                        |               MIG M. |
    |=========================================+========================+======================|
    |   0  NVIDIA GeForce RTX 3060        Off |   00000000:2D:00.0 Off |                  N/A |
    |  0%   54C    P8             12W /  170W |   11400MiB /  12288MiB |      0%      Default |
    |                                         |                        |                  N/A |
    +-----------------------------------------+------------------------+----------------------+
    
    +-----------------------------------------------------------------------------------------+
    | Processes:                                                                              |
    |  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
    |        ID   ID                                                               Usage      |
    |=========================================================================================|
    |    0   N/A  N/A            7473      C   python                                 1862MiB |
    |    0   N/A  N/A          167111      C   /usr/bin/python3                       9002MiB |
    |    0   N/A  N/A         1095938      C   /usr/bin/ollama                         408MiB |
    |    0   N/A  N/A         3873555      C   python3                                 102MiB |
    +-----------------------------------------------------------------------------------------+
    trevor@server:~$ nvtop
    No GPU to monitor.
    trevor@server:~$ nvtop --version
    nvtop version 3.2.0
    

    #318 (comment)
    This solved my problem, I completely removed Nvidia driver and only install toolkit, check my previous reply

  24. pcgeek86 commented on Aug 6, 2025

    @pcgeek86

    I found another utility called "nvitop" that worked on the first try. My NVIDIA drivers are working perfectly fine on my server.

  25. db414813 commented on Aug 28, 2025

    @db414813

    I had same issue with no gpu detection with nvtop. However if I ran it

    sudo nvtop

    it works? whatever I will take it.

  26. added a commit that references this issue on Feb 9, 2026
    4960712
  27. filipemilani commented on Jun 4, 2026

    @filipemilani

    Installing NVTOP 3.2.0 on WSL2 with NVIDIA GPU Support

    This guide explains how to install nvtop version 3.2.0 on WSL2 running inside Windows 11, especially when using an NVIDIA GPU such as the RTX 4070 Ti.

    1. Check if WSL2 can see the NVIDIA GPU

    First, make sure your GPU is visible inside WSL2:

    nvidia-smi

    If this command shows your NVIDIA GPU, WSL2 is correctly detecting the GPU.

    2. Install required dependencies

    sudo apt update && sudo apt install -y git cmake build-essential libncurses5-dev libncursesw5-dev pkg-config libudev-dev libsystemd-dev libdrm-dev

    3. Download NVTOP and checkout version 3.2.0

    rm -rf ~/nvtop && git clone https://github.com/Syllo/nvtop.git ~/nvtop && cd ~/nvtop && git fetch --tags && git checkout 3.2.0

    4. Build NVTOP with NVIDIA support

    cd ~/nvtop && rm -rf build && mkdir build && cd build && cmake .. \
    -DNVIDIA_SUPPORT=ON \
    -DAMDGPU_SUPPORT=OFF \
    -DINTEL_SUPPORT=OFF \
    -DV3D_SUPPORT=OFF \
    -DPANFROST_SUPPORT=OFF \
    -DPANTHOR_SUPPORT=OFF \
    -DMSM_SUPPORT=OFF && \
    make -j$(nproc) && sudo make install

    5. Verify the installed version

    /usr/local/bin/nvtop --version

    Expected output:

    nvtop version 3.2.0
    

    6. Fix NVIDIA library path on WSL2

    On WSL2, NVIDIA libraries are typically exposed through:

    /usr/lib/wsl/lib
    

    If running nvtop shows:

    No GPU to monitor.
    

    launch NVTOP with the correct library path:

    LD_LIBRARY_PATH=/usr/lib/wsl/lib:/usr/local/lib /usr/local/bin/nvtop

    This should successfully detect the GPU and open the NVTOP interface.

    7. Make the fix permanent

    Add the following alias to your .bashrc:

    echo 'alias nvtop="LD_LIBRARY_PATH=/usr/lib/wsl/lib:/usr/local/lib /usr/local/bin/nvtop"' >> ~/.bashrc
    source ~/.bashrc

    Now simply run:

    nvtop

    8. Diagnostic commands

    If NVTOP still cannot detect your GPU, collect the following information:

    nvidia-smi
    ls -l /usr/lib/wsl/lib/libnvidia-ml.so*
    ldd /usr/local/bin/nvtop | grep -Ei "nvidia|nvml|cuda|not found"
    ls -l /dev/dxg

    Working Solution

    For my setup (Windows 11 + WSL2 + NVIDIA RTX 4070 Ti), the following command solved the issue:

    LD_LIBRARY_PATH=/usr/lib/wsl/lib:/usr/local/lib /usr/local/bin/nvtop

    After creating the alias, NVTOP can be launched normally with:

    nvtop

    Environment

    • Windows 11
    • WSL2 (Ubuntu)
    • NVIDIA RTX 4070 Ti
    • NVIDIA Windows Driver
    • NVTOP 3.2.0
  28. drscotthawley commented on Jul 23, 2026

    @drscotthawley

    Tried @filipemilani's recipe, but after doing the make and install with no errors, at the end of Step 6 I still get this:

    $ LD_LIBRARY_PATH=/usr/lib/wsl/lib:/usr/local/lib /usr/local/bin/nvtop
    No GPU to monitor

    Diagnostics read:

    $ ls -l /usr/lib/wsl/lib/libnvidia-ml.so*
    -r-xr-xr-x 2 root root 285016 May  5 22:16 /usr/lib/wsl/lib/libnvidia-ml.so.1*
    $ ldd /usr/local/bin/nvtop | grep -Ei "nvidia|nvml|cuda|not found"
    $  (blank line)
    $ ls -l /dev/dxg
    crw-rw-rw- 1 root root 10, 125 Jul 23 10:01 /dev/dxg
    

    Any tips?

  29. filipemilani commented on Jul 26, 2026

    @filipemilani

    Thanks for testing it!

    Your diagnostics are interesting. The fact that /dev/dxg exists means WSL can see the GPU, so we're probably dealing with an NVML loading issue rather than a WSL GPU passthrough issue.

    The empty output from:

    ldd /usr/local/bin/nvtop | grep -Ei "nvidia|nvml|cuda|not found"

    is actually expected. NVTOP loads NVML dynamically at runtime, so it won't necessarily appear in ldd.

    Could you try the following?

    sudo ln -sf /usr/lib/wsl/lib/libnvidia-ml.so.1 /usr/local/lib/libnvml.so
    sudo ln -sf /usr/lib/wsl/lib/libnvidia-ml.so.1 /usr/local/lib/libnvidia-ml.so
    sudo ldconfig

    Then verify the links:

    ls -l /usr/local/lib/libnvml.so /usr/local/lib/libnvidia-ml.so

    Both should point to:

    /usr/lib/wsl/lib/libnvidia-ml.so.1
    

    Now try running NVTOP again:

    LD_LIBRARY_PATH=/usr/lib/wsl/lib:/usr/local/lib /usr/local/bin/nvtop

    If it still says "No GPU to monitor", could you also run these commands?

    nvidia-smi
    python3 - <<'PY'
    import ctypes
    
    for lib in ("libnvml.so", "libnvidia-ml.so.1"):
        try:
            ctypes.CDLL(lib)
            print(f"OK: {lib}")
        except OSError as e:
            print(f"ERROR: {lib}: {e}")
    PY

    and:

    echo $LD_LIBRARY_PATH

    One more question: which GPU do you have, and which Windows NVIDIA driver version are you using? (nvidia-smi will show both.)

    This worked on my setup (Windows 11 + WSL2 + RTX 4070 Ti + NVTOP 3.2.0), so I'd like to understand what's different in your environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions