Installing the NVIDIA 390.46 Driver and CUDA 9 on AWS G2 Instances
Note that the existing CUDA 9 installer packages contain a version of the driver (375.26) that does not support the K520 GPU and thus additional steps are required to get started with using CUDA on the AWS EC2 G2 instances. One of the easier ways to install drivers and CUDA is to use the network installation package to install the NVIDIA 390.46 driver and the toolkit. For simplicity, these instructions will refer to the steps on an Ubuntu system using the APT package manager. The same instructions will apply when using other package managers such as yum or zypper.
- Update the CUDA network repo keys using the following command
# sudo apt-key adv --fetch-keys
http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
- Add the CUDA network repo and update the package lists on your system to get new versions of the software and their dependencies.
# sudo sh -c 'echo "deb
http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 /" > /etc/apt/sources.list.d/cuda.list'
# sudo apt-get update
- If you already have CUDA 9 installed on your instance and only need to update the NVIDIA driver, install the cuda-drivers meta-package. Then reboot the instance to complete the installation of the 390.46 NVIDIA driver.
# sudo apt-get -y --no-install-recommends install cuda-drivers
# sudo reboot
- If you also need to install the CUDA toolkit, then install the cuda-toolkit-9-1 meta-package to download and install CUDA 9.1.
# sudo apt-get -y install cuda-toolkit-9-1
Refer to the Linux Installation Guide for CUDA Toolkit for more information on using runfiles or local installers to install CUDA on various Linux distributions. The guide is located at the following URL: (
http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html)
V-Series:Tesla V100
P-Series:Tesla P100, Tesla P40, Tesla P6, Tesla P4
K-Series:Tesla K80, Tesla K520, Tesla K40c, Tesla K40m, Tesla K40s, Tesla K40st, Tesla K40t, Tesla K20Xm, Tesla K20m, Tesla K20s, Tesla K20c, Tesla K10, Tesla K8
C-Class:Tesla C2075, Tesla C2070, Tesla C2050
M-Class:M60, M40 24GB, M40, M6, M4, M2090, M2075, M2070, M2070-Q, M2050
X-Class:Tesla X2070, Tesla X2090