Hi,
I am trying to install cuda on my computer but having difficulty. I’m running Ubuntu 20.04.6 and my laptop has a Nvidia Quadro M2200 Mobile GPU, which it says is supported with a compute score of 5.2.
I followed the installation instructions on here, however when I get to running the deviceQuery program from the cuda-samples repository, the terminal reads:
./deviceQuery Starting...
CUDA Device Query (Runtime API) version (CUDART static linking)
cudaGetDeviceCount returned 100
-> no CUDA-capable device is detected
Result = FAIL
The steps I took to install, following the installation instructs as closely as possible was:
2.1. Verify You Have a CUDA-Capable GPU
lspci | grep -i nvidia
01:00.0 3D controller: NVIDIA Corporation GM206GLM [Quadro M2200 Mobile] (rev a1)
2.2. Verify You Have a Supported Version of Linux
uname -m && cat /etc/*release
x86_64
DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS"
2.3. Verify the System Has gcc Installed
gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
2.5. Download the NVIDIA CUDA Toolkit
This step sends me to: CUDA Toolkit 12.8 Update 1 Downloads | NVIDIA Developer, from where I select linux, x86_64, ubuntu, 20.04, deb (local), and run the following commands that it presents:
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/12.8.1/local_installers/cuda-repo-ubuntu2004-12-8-local_12.8.1-570.124.06-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu2004-12-8-local_12.8.1-570.124.06-1_amd64.deb
sudo cp /var/cuda-repo-ubuntu2004-12-8-local/cuda-*-keyring.gpg /usr/share/keyrings/
sudo apt-get update
sudo apt-get -y install cuda-toolkit-12-8
followed by the driver installation command:
sudo apt-get install -y nvidia-open
(I have also tried this with the proprietary driver, with the same final results)
Having completed the pre-installation steps, I then ran the package manager installation steps for ubuntu in section 3.8 - confusingly, these seemed to duplicate the preinstall steps. I have tried installing by using the duplicate steps and without using the duplicate steps, with the same results at the end.
3.8.2. Local Repo Installation for Ubuntu
sudo apt-key del 7fa2af80
sudo dpkg -i cuda-repo-ubuntu2004-12-8-local_12.8.1-570.124.06-1_amd64.deb
sudo cp /var/cuda-repo-ubuntu2004-12-8-local/cuda-*-keyring.gpg /usr/share/keyrings/
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
3.8.4. Common Installation Instructions for Ubuntu
sudo apt-get update
sudo apt-get install cuda-toolkit
sudo apt-get install nvidia-gds
sudo reboot
I then followed the post install instruction:
export PATH=/usr/local/cuda-12.8/bin${PATH:+:${PATH}}
and then I run the deviceQuery file, with the result that it cannot detect any CUDA capable device. What am I likely doing wrong? Thanks for any assistance.