File tree 1 file changed +18
-0
lines changed
parts/linux/cloud-init/artifacts
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -844,6 +844,24 @@ ensureGPUDrivers() {
844
844
fi
845
845
}
846
846
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
+
847
865
disableSSH () {
848
866
systemctlDisableAndStop ssh || exit $ERR_DISABLE_SSH
849
867
}
You can’t perform that action at this time.
0 commit comments