Installing CUDA Driver

Last updated: 2019-08-06 18:41:27

PDF

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

  1. Log in to Download CUDA Driver or copy the link https://developer.nvidia.com/cuda-75-downloads-archive.

  2. Select an operating system and an installer package. Suppose we use CentOS 7.2 (64 bit), we choose as follows:

    Notes:
    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.

  3. Right click Download -> Copy Link Address.

  4. Log in to the GPU instance, and paste the link address copied in the previous step to download the installer package by executing wget command. Or, you can download the CUDA installer package to a local system, and upload it to the GPU instance server.

  5. 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

  6. Go to the /usr/local/cuda-7.5/samples/1_Utilities/deviceQuery directory and execute make command to compile the deviceQuery program.

  7. 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.

  1. Download the CUDA installer package from CUDA Driver Official Website.
  2. Select an operating system and an installer package. Suppose we use Win Server 2012 R2 (64 bit), we choose as follows:

  3. 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.