I've been trying for days now to get cuda working on WSL2Tried cuda 12 not working, tried to deinstall it all from console.I ran
#instead of cuda12 i gave up on it, went for 11.6.2wget https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/cuda-keyring_1.0-1_all.debsudo dpkg -i cuda-keyring_1.0-1_all.debsudo apt-get updatesudo apt-get -y install cudawget https://developer.download.nvidia.com/compute/cuda/11.6.2/local_installers/cuda_11.6.2_510.47.03_linux.runsudo sh cuda_11.6.2_510.47.03_linux.run --silent --driver# altered bashrc :sudo nano ~/.bashrc export PATH=/usr/local/cuda-11.6.2/bin${PATH:+:${PATH}}export LD_LIBRARY_PATH=/usr/local/cuda-.6.2/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}export CUDA_HOME=/usr/local/cudawget https://developer.download.nvidia.com/compute/cuda/11.6.2/local_installers/cuda_11.6.2_510.47.03_linux.runsudo sh cuda_11.6.2_510.47.03_linux.runif i type 'nvidia-smi'i get (still 12??.. did everything from console to uninstall it, thats a long list of commands too)Thu Jan 12 17:07:17 2023
sorry unable to get the table right
| NVIDIA-SMI 527.92.01 Driver Version: 528.02 CUDA Version: 12.0 || GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC || Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. || 0 NVIDIA GeForce ... On | 00000000:07:00.0 On | N/A || 30% 28C P8 31W / 350W | 2655MiB / 12288MiB | 7% Default | | | N/A |Whatever I do i'm unable to run under WSL2 jupyter, pytorch with cuda support, I've removed and reinstalled WSL2 but nothing seams to work. cudnn didn't like my gcc version for 12 so I gave up on that end, this was all working fine like a month ago, some driver update corrupted it I think and I don't know how to get it all working again under WLS a complete reinstall of windows 11 isn't an option for me, and still then I face the problem I can't get it to work I tried to follow a medium article (but went for 11.6.2 for gcc match) https://medium.com/analytics-vidhya/install-cuda-11-2-cudnn-8-1-0-and-python-3-9-on-rtx3090-for-deep-learning-fcf96c95f7a1
I know more articles about this are at ask ubuntu followed various of them but since version 12 i don't know how to resolve it.