@@ -634,27 +634,55 @@ downloadAMDGPUDriversUbuntu() {
634
634
;;
635
635
esac
636
636
637
- # Add validation keys for amdgpu repo
638
- sudo mkdir --parents --mode=0755 /etc/apt/keyrings
639
- wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | \
640
- gpg --dearmor | sudo tee /etc/apt/keyrings/rocm.gpg > /dev/null
641
- sudo chmod 0644 /etc/apt/keyrings/rocm.gpg
642
-
643
- # for some reason the module is in blacklist for 22.04 and won't be loaded unless we remove it
644
- # attempt to remove it for other releases as well, just in case
637
+ # for some reason the amdgpu module is in blacklist and won't be loaded without this
645
638
sudo sed -i ' /blacklist amdgpu/d' /etc/modprobe.d/blacklist-radeon-instinct.conf
646
639
if [ " ${UBUNTU_RELEASE} " == " 22.04" ]; then
647
- echo " deb [arch=amd64,i386 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/amdgpu/6.3.3/ubuntu jammy main" \
648
- | sudo tee /etc/apt/sources.list.d/amdgpu.list
640
+ wget https://repo.radeon.com/rocm/installer/rocm-linux-install-offline/rocm-rel-6.3.3/ubuntu/22.04/rocm-offline-creator_1.0.7.60303-1~22.04.run -O rocm-offline-creator.run
649
641
elif [ " ${UBUNTU_RELEASE} " == " 24.04" ]; then
650
- echo " deb [arch=amd64,i386 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/amdgpu/ 6.3.3/ubuntu noble main " \
651
- | sudo tee /etc/apt/sources.list.d/ amdgpu.list
642
+ wget https://repo.radeon.com/rocm/installer/rocm-linux-install-offline/rocm-rel- 6.3.3/ubuntu/24.04/rocm-offline-creator_1.0.7.60303-1~24.04.run -O rocm-offline-creator.run
643
+ bash ./rocm-offline-creator_1.0.7.60303-1~24.04.run config=/etc/ amdgpu.config
652
644
else
653
645
echo " Unexpected Ubuntu Release (${UBUNTU_RELEASE} )"
654
646
exit 1
655
647
fi
656
- sudo apt-get update
657
- sudo apt-get install -y amdgpu-dkms
648
+ cat > /etc/amdgpu.config << EOL
649
+ # Creator/Build Options
650
+ ###############################
651
+ INSTALL_PACKAGE_TYPE=0
652
+ INSTALL_PACKAGE_NAME="rocm-offline-install.run"
653
+ INSTALL_PACKAGE_DIR=/root
654
+
655
+ INSTALL_PACKAGE_REPO=0
656
+
657
+ DOWNLOAD_PKG_CONFIG_NUM=0
658
+
659
+ # ROCm Options
660
+ ###############################
661
+ ROCM_USECASES=dkms
662
+ ROCM_VERSIONS=6.3.3
663
+
664
+ # Driver/amdgpu Options
665
+ ###############################
666
+ AMDGPU_INSTALL_DRIVER=yes
667
+ AMDGPU_POST_INSTALL_BLACKLIST=no
668
+ AMDGPU_POST_INSTALL_START=yes
669
+
670
+ # Post-Install Options
671
+ ###############################
672
+ AMDGPU_POST_GPU_ACCESS_CURRENT_USER=no
673
+ AMDGPU_POST_GPU_ACCESS_ALL_USERS=no
674
+
675
+ # Extra Package Options
676
+ ###############################
677
+ EXTRA_PACKAGES_ONLY=no
678
+ EXTRA_PACKAGES=""
679
+
680
+ # Post-Install Options
681
+ ###############################
682
+ AMDGPU_POST_GPU_ACCESS_CURRENT_USER=no
683
+ AMDGPU_POST_GPU_ACCESS_ALL_USERS=no
684
+ EOL
685
+ bash ./rocm-offline-creator.run config=/etc/amdgpu.config
658
686
}
659
687
660
688
downloadAMDGPUDrivers () {
0 commit comments