This is my version of Ubuntu:
PS C:\WINDOWS\system32> wsl --list --verbose NAME STATE VERSION* Ubuntu-22.04 Running 2
This is my gcc version:
zhao@ZhaoYH:~$ gcc --versiongcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0Copyright (C) 2021 Free Software Foundation, Inc.This is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This is the result after entering nvidia-smi
:
When I followed Nvidia's tutorial for CUDA installation, an error occurred when I reached the second line of the command:
wget https://developer.download.nvidia.com/compute/cuda/12.2.2/local_installers/cuda_12.2.2_535.104.05_linux.runsudo sh cuda_12.2.2_535.104.05_linux.run
My first installation was successful, but then the ~/.bashrc
file was damaged. So I reinstalled Ubuntu. I tried various methods on the Internet to completely clear the remaining CUDA and Nvidia files, but I still got the same error. I even reinstalled Windows 11, but the error still did not disappear. I went to the official Nvidia forum for help, but no one answered.