- Hands-On GPU Programming with Python and CUDA
- Dr. Brian Tuomanen
- 293字
- 2021-06-10 19:25:36
Installing the GPU drivers (Linux)
In Ubuntu, the default driver for NVIDIA GPUs is an open-source driver called Nouveau; unfortunately, this does not work with CUDA at all, so we will have to install a proprietary driver. We will have to add the special graphics-drivers repository to our package manager to be able to download proprietary NVIDIA drivers to our Ubuntu system. We add the repository by typing the following line into the bash prompt:
sudo add-apt-repository ppa:graphics-drivers/ppa
Since this is a sudo superuser command, you will have to enter your password. We now synchronize our system with the new repository by typing the following line:
sudo apt-get update
We should now be ready to install our driver. From the Ubuntu desktop, press Windows + R, and then enter software and drivers:
The Software & Drivers setup menu should appear. From here, click on the tab marked Additional Drivers. You should see a selection of available stable proprietary drivers for your GPU; choose the newest one you see I(n my case, it is nvidia-driver-396, demonstrated as follows):
With the latest driver selected, click on Apply Changes. You will be prompted again for your sudo password, and then the driver will install; a progress bar should appear. Note that this process can take a long time and it may appear that your computer is hanging; this process can take well over an hour, so please be patient.
Finally, when the process is complete, reset your computer, and return to your Ubuntu desktop. Now type Windows + A, and then enter nvidia-settings (or alternatively, run this program from a bash prompt). The NVIDIA X Server Settings manager should appear, and indicate that you are using the appropriate driver version:
- Cybersecurity:Attack and Defense Strategies
- Mobile-first Bootstrap
- Persistence in PHP with the Doctrine ORM
- Kubernetes網(wǎng)絡(luò)權(quán)威指南:基礎(chǔ)、原理與實(shí)踐
- vSphere Virtual Machine Management
- 從實(shí)踐中學(xué)習(xí)Kali Linux無線網(wǎng)絡(luò)滲透測(cè)試
- 寫給架構(gòu)師的Linux實(shí)踐:設(shè)計(jì)并實(shí)現(xiàn)基于Linux的IT解決方案
- 精解Windows 10
- Windows 7實(shí)戰(zhàn)從入門到精通(超值版)
- iOS 10 開發(fā)指南
- 統(tǒng)信UOS應(yīng)用開發(fā)進(jìn)階教程
- OpenVZ Essentials
- bash shell腳本編程經(jīng)典實(shí)例(第2版)
- Java EE 7 Developer Handbook
- Office 365 User Guide