Skip to content

Commit 2f2391e

Browse files
committed
add script to install AMD drivers
1 parent c90fd1d commit 2f2391e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

parts/linux/cloud-init/artifacts/cse_config.sh

+18
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,24 @@ ensureGPUDrivers() {
844844
fi
845845
}
846846

847+
# TODO: this is a temporary ubuntu-only HACK until we get a driver
848+
ensureAMDGPUDrivers() {
849+
echo "Installing AMD GPU drivers"
850+
851+
# delete amdgpu module from blacklist
852+
sudo sed -i '/blacklist amdgpu/d' /etc/modprobe.d/blacklist-radeon-instinct.conf
853+
854+
# temporary solution, until the driver is available in MCR
855+
sudo apt-get update
856+
wget https://repo.radeon.com/amdgpu-install/6.3.1/ubuntu/jammy/amdgpu-install_6.3.60301-1_all.deb
857+
sudo apt-get install -y ./amdgpu-install_6.3.60301-1_all.deb
858+
sudo apt-get update
859+
sudo apt-get install -y amdgpu-dkms
860+
861+
REBOOTREQUIRED=true
862+
echo "AMD GPU drivers installed"
863+
}
864+
847865
disableSSH() {
848866
systemctlDisableAndStop ssh || exit $ERR_DISABLE_SSH
849867
}

0 commit comments

Comments
 (0)