Use the following command to execute CUDA on your Ubuntu system- sudo dpkg -i cuda-repo-ubuntu-local_11.6.1-510.47.03-1_b Run the given command to download the CUDA toolkit on your system – wget Using this method you will get the latest released version of this software from Nvidia.įirst, use the given command to download the CUDA pin in /etc/preferences.d directory- sudo wget -O /etc/apt/preferences.d/cuda-repository-pin-600 In this method first, you have to enable the Nvidia CUDA repository on your Ubuntu system. You can verify the installation by using the given command – nvcc -version Method 2: Installing CUDA toolkit from its official repository Press y and then Enter when it asks for your confirmation. Next, run the given command to install the CUDA toolkit – sudo apt install nvidia-cuda-toolkit Installing a package from the Ubuntu software repository is one of the easiest methods to install software on a Ubuntu system.īefore your run the command to install CUDA make sure your apt repository is updated – sudo apt update The CUDA is available in the official repository of Ubuntu. Method 1: Installing CUDA from Ubuntu repository Use one of the given methods to install it on your system. There are multiple ways using which you can install CUDA on a Ubuntu system. You should have the Nvidia graphics driver installed on your system.Access to a user account that has superuser privileges.To follow this guide you should have the following –
0 Comments
Leave a Reply. |