Open alexvorobiev opened 8 months ago
Did WSL stop exposing Nvidia drivers via /usr/lib/wsl/lib? Did you update the nvidia driver on the Windows installation? I need a bit more information.
WSL does expose the drivers (I mentioned that nvtop works):
$ ls -l /usr/lib/wsl/lib
total 224076
-r-xr-xr-x 1 root root 10524136 Feb 15 10:42 libcudadebugger.so.1
-r-xr-xr-x 1 root root 162552 Mar 1 17:04 libcuda.so
-r-xr-xr-x 1 root root 162552 Mar 1 17:04 libcuda.so.1
-r-xr-xr-x 1 root root 162552 Mar 1 17:04 libcuda.so.1.1
-r-xr-xr-x 1 root root 6880344 Oct 20 00:13 libd3d12core.so
-r-xr-xr-x 1 root root 801840 Oct 20 00:13 libd3d12.so
-r-xr-xr-x 1 root root 829248 Jun 1 2022 libdxcore.so
-r-xr-xr-x 1 root root 11742584 Mar 1 17:04 libnvcuvid.so
-r-xr-xr-x 1 root root 11742584 Mar 1 17:04 libnvcuvid.so.1
-r-xr-xr-x 1 root root 115888416 Feb 15 10:42 libnvdxdlkernels.so
-r-xr-xr-x 1 root root 572008 Mar 1 17:04 libnvidia-encode.so
-r-xr-xr-x 1 root root 572008 Mar 1 17:04 libnvidia-encode.so.1
-r-xr-xr-x 1 root root 244344 Feb 15 10:42 libnvidia-ml.so.1
-r-xr-xr-x 1 root root 362960 Mar 1 17:04 libnvidia-opticalflow.so
-r-xr-xr-x 1 root root 362960 Mar 1 17:04 libnvidia-opticalflow.so.1
-r-xr-xr-x 1 root root 72656 Feb 15 10:42 libnvoptix.so.1
-r-xr-xr-x 1 root root 67625384 Mar 1 17:04 libnvwgf2umx.so
-r-xr-xr-x 1 root root 715296 Mar 1 17:04 nvidia-smi
env NIXPKGS_ALLOW_UNFREE=1 LD_LIBRARY_PATH=/usr/lib/wsl/lib nix run --impure nixpkgs#nvtop
Device 0 [NVIDIA GeForce RTX 3070] PCIe GEN 4@16x RX: 0.000 KiB/s TX: 0.000 KiB/s
GPU 1815MHz MEM 7000MHz TEMP 35°C FAN 0% POW 35 / 240 W
GPU[ 0%] MEM[|||||||| 1.998Gi/8.000Gi]
Setup Select Monitored GPUs
General [*] NVIDIA GeForce RTX 3070
Devices
Chart
Processes
GPU Select
The Windows driver is 551.76
@alexvorobiev you mentioned that it "no longer" sees the GPU. Nix isn't defining your Nvidia GPU, it is an impurity. Therefore, I need to know if you upgraded your Nvidia driver, manually, by hand, on the Windows host or not, and if so what the version jump is.
It is hard to say what the jump was. The drivers are updated by the Nvidia Geforce Experience app which offers new drivers fairly often. This PC is also used for gaming, so I update the drivers whenever the updates are available in the app. Today it offers 551.86. Is this message the source of the problem ""The installed version of bitsandbytes was compiled without GPU support. "?
I have tried to run the flake on WSL NixOS and it looks like pytorch no longer recognizes the GPU (RTX 3070). It used to work a few months ago. nvtop works as expected.