Votre Nom il y a 2 ans
Parent
commit
a38f6e5039
1 fichiers modifiés avec 13 ajouts et 13 suppressions
  1. 13 13
      build/build_linux.sh

+ 13 - 13
build/build_linux.sh

@@ -56,19 +56,19 @@ sudo apt autoremove -y
 
 if [ $Mode = "AMD" ]
 then
-cd ~/Téléchargements
-sudo dpkg --add-architecture i386
-sudo apt install wget gnupg2 -y
-sudo usermod -aG video $LOGNAME
-#wget -q -O - https://repo.radeon.com/rocm/rocm.gpg.key | sudo apt-key add -
-echo 'deb [arch=amd64] https://repo.radeon.com/rocm/apt/debian/ ubuntu main' | sudo tee /etc/apt/sources.list.d/rocm.list
-sudo apt update
-sudo apt install rocm-smi-lib4.3.0 libnuma-dev -y
-#wget -c https://drivers.amd.com/drivers/linux/amdgpu-pro-20.40-1147287-ubuntu-18.04.tar.xz --referer https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-20-40
-#tar -Jxvf amdgpu-pro-20.40-1147287-ubuntu-18.04.tar.xz
-#cd amdgpu-pro-20.40-1147287-ubuntu-18.04
-#./amdgpu-pro-install -y --opencl=pal,legacy,rocm --headless -y
-sudo apt install build-essential cmake git libuv1-dev libssl-dev libhwloc-dev libmicrohttpd-dev lm-sensors htop opencl-amdgpu-pro-dev opencl-amdgpu-pro ocl-icd-opencl-dev clinfo -y
+cd /home/wareck
+echo -e ""
+echo -e "Install drivers:"
+wget -c -q --show-progress http://folivier.homelinux.org/cube/pack/amdgpu-install_22.10.2.50102-1_all.deb -O /home/wareck/Build_Cube/pack/amdgpu-install_22.10.2.50102-1_all.deb
+wget -c -q --show-progress http://folivier.homelinux.org/cube/pack/linux-firmware.tar.xz
+tar xvfJ linux-firmware.tar.xz
+sudo cp /home/wareck/linux-firmware/amdgpu/* /lib/firmware/amdgpu/
+sudo rm -r -f /home/wareck/linux-firmware /home/wareck/linux-firmware.tar.xz
+sudo apt-get install /home/wareck/Build_Cube/pack/amdgpu-install_22.10.2.50102-1_all.deb -y
+sudo apt-get update
+sudo amdgpu-install --opencl=legacy --accept-eula -y
+sudo apt-get install ocl-icd-opencl-dev -y
+sudo apt install build-essential cmake git libuv1-dev libssl-dev libhwloc-dev libmicrohttpd-dev lm-sensors htop clinfo -y
 fi
 }