Amazon Linux 2 AMD GPU Driver Setup

Setup Steps

Follow the documentation to “Install the AMD Driver on your Linux Instance”(https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-amd-driver.html#download-amd-driver) until step 7

Since Amazon Linux 2 has a kernel version lower than 5.15, step 7 must be replaced with the following command:

$ aws s3 cp  s3://ec2-amd-linux-drivers/archives/amdgpu-pro-20.20-1171946-rhel-7.8.tar.xz .

This command downloads a driver that supports the kernel version of the Amazon Linux 2 AMI.

Before you continue with the other steps you also have to import the gpg keys in the tar archive yourself using this command inside the amd driver directory:

$ rpm --import RPM-GPG-KEY-amdgpu