Your Name 6 years ago
parent
commit
da85e16904
1 changed files with 2 additions and 8 deletions
  1. 2 8
      setup_amd.sh

+ 2 - 8
setup_amd.sh

@@ -10,7 +10,7 @@ host_name="Miner1"
 #Drivers="18.20"
 #Drivers="18.20"
 Drivers="18.40"
 Drivers="18.40"
 
 
-ROCM_="NO" #rcom compute
+ROCM_="YES" #rcom compute
 ETHMine="YES"
 ETHMine="YES"
 XMRIG_AMD="YES"
 XMRIG_AMD="YES"
 XMRIG_CPU="YES"
 XMRIG_CPU="YES"
@@ -150,13 +150,7 @@ if [ $Drivers = "18.40" ]
  rm 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-17.50-511655
  cd amdgpu-pro-18.40-673869-ubuntu-16.04
  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
+./amdgpu-pro-install --pro --opencl=legacy -y
 fi
 fi
 
 
 echo -e "\n\e[95mInstall AMD SDK :\e[0m"
 echo -e "\n\e[95mInstall AMD SDK :\e[0m"