Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1 KB

aws-g5-cuda-dev-environment.md

File metadata and controls

36 lines (28 loc) · 1 KB

Prepare the CUDA environment in AWS G5 instances undert Ubuntu 24.04

AWS G5 instances are powered by NVIDIA A10G GPUs. There's no Nvidia driver and CUDA in default. The following steps show how to prepare the CUDA environment in AWS G5 instances under Ubuntu 24.04.

Install the NVIDIA driver

sudo apt update
sudo apt install -y ubuntu-drivers-common
sudo ubuntu-drivers install nvidia
sudo reboot

After the reboot, check if the driver works.

nvidia-smi

Install the CUDA Toolkit

sudo apt nvidia-cuda-dev nvidia-cuda-toolkit nvidia-cuda-toolkit-gcc

Install the cuDNN

NVIDIA cuDNN, short for CUDA Deep Neural Network library, is a highly optimized library for deep learning applications. It accelerates the training and inference of deep neural networks on NVIDIA GPUs.

sudo apt install nvidia-cudnn

Install development tools

sudo apt install build-essential cmake git unzip

Now, you can start to develop your CUDA applications on AWS G5 instances.