Installing CUDA Driver
Last updated: 2019-08-06 18:41:27PDF
CUDA (Compute Unified Device Architecture) is a computing platform published by the graphic card vendor NVIDIA. As a generic parallel computing architecture, CUDA(tm) allows GPUs to solve complex computing problems. It contains CUDA instruction set architecture (ISA) and parallel computing engine within the GPU. Now, developers can write programs for CUDA(tm) architecture using C, C++, and FORTRAN. These programs can be run with great performance on processors that support CUDA(tm).
GPU instances use NVIDIA graphic cards and you need to install CUDA development operating environment for them. Here we take the most commonly used CUDA 7.5 as an example. You can install it by following these steps.
In Linux System
Log in to Download CUDA Driver or copy the link https://developer.nvidia.com/cuda-75-downloads-archive.
Select an operating system and an installer package. Suppose we use CentOS 7.2 (64 bit), we choose as follows:
It is recommended to choose rpm (network) for "Installer Type".
network: Network installer package. The package is small, and you need to download the actual installer package in the CVM via private network.
local: local installer package. The package is large because it contains the installer packages for all downloaded installation components.
Right click Download -> Copy Link Address.
Log in to the GPU instance, and paste the link address copied in the previous step to download the installer package by executing
wgetcommand. Or, you can download the CUDA installer package to a local system, and upload it to the GPU instance server.
Run the following commands in the directory where the CUDA installer package is located:
sudo rpm -i cuda-repo-rhel7-7.5-18.x86_64.rpm
sudo yum clean all
sudo yum install cuda
Go to the
/usr/local/cuda-7.5/samples/1_Utilities/deviceQuerydirectory and execute
makecommand to compile the deviceQuery program.
Execute deviceQuery. The CUDA installation is successful if the following device information is displayed.
In Windows System
To install CUDA on Windows instance, use the remote desktop to log in to your Windows instance as admin.
- Download the CUDA installer package from CUDA Driver Official Website.
- Select an operating system and an installer package. Suppose we use Win Server 2012 R2 (64 bit), we choose as follows:
- Launch the installation program and proceed according to the instructions. Installation is successful when you see the final dialog indicating the end of the process.