Your Name 6 years ago
parent
commit
4499f7ca8f
1 changed files with 20 additions and 3 deletions
  1. 20 3
      setup_amd.sh

+ 20 - 3
setup_amd.sh

@@ -3,11 +3,10 @@ set -e
 script_version="1.45"
 rdate="29/07/2018"
 remote_folder="http://wareck.free.fr/openrig"
-amd_driver_v="18.20-606296"
-
+amd_driver_v="18.40-673869"
 #### OPTIONS ####
 host_name="Miner1"
-Drivers="18.20" # can be 17.50 or 18.20
+Drivers="18.40" # can be 17.50 / 18.20 or 18.40
 Vega_card="NO"
 ROCM_="NO" #rcom compute
 ETHMine="YES"
@@ -134,6 +133,24 @@ if [ $Drivers = "17.50" ]
   fi
 fi
 
+if [ $Drivers = "18.40" ]
+ then
+ echo "Download amdgpu-pro-18.40-673869-ubuntu-16.04.tar.xz"
+ #curl -sf http://wareck.free.fr/grinder/drivers/amdgpu-pro-17.50-511655.tar.xz | tar xvJ
+ wget -c http://wareck.free.fr/grinder/drivers/amdgpu-pro-18.40-673869-ubuntu-16.04.tar.xz
+ tar xvfJ amdgpu-pro-18.40-673869-ubuntu-16.04.tar.xz
+ rm amdgpu-pro-18.40-673869-ubuntu-16.04.tar.xz
+ #cd amdgpu-pro-17.50-511655
+ cd amdgpu-pro-18.40-673869-ubuntu-16.04
+  if [ $ROCM_ = "YES" ]
+  then
+  sed -i -e "s/amdgpu-pro-dkms libdrm2-amdgpu-pro/libdrm2-amdgpu-pro/g" amdgpu-pro-install
+  ./amdgpu-pro-install --pro --opencl=legacy,rocm -y
+  else
+  ./amdgpu-pro-install --pro --opencl=legacy -y
+  fi
+fi
+
 echo -e "\n\e[95mInstall AMD SDK :\e[0m"
 cd /home/work/tempo/
 curl -f http://wareck.free.fr/grinder/drivers/AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2 | tar xvj