Your Name 7 years ago
parent
commit
75e4685d68
2 changed files with 19 additions and 1 deletions
  1. 1 1
      amdgpu-mod.sh
  2. 18 0
      setup_amd.sh

+ 1 - 1
amdgpu-mod.sh

@@ -36,7 +36,7 @@ function warn { echo -e "${CYELL}${1}${NC}"; }
 function error { echo -e "${CRED}${1}${NC}"; }
 
 FILE_DAG="/amd/amdgpu/amdgpu_vm.c"
-FILE_P10="/amd/powerplay/smumgr/polaris10_smc.c"
+FILE_P10="/amd/powerplay/smumgr/polaris10_smumgr.c"
 FILE_HW_SMU7="/amd/powerplay/hwmgr/smu7_hwmgr.c"
 FILE_HW_VEGA="/amd/powerplay/hwmgr/vega10_hwmgr.c"
 

+ 18 - 0
setup_amd.sh

@@ -13,6 +13,7 @@ XMRIG_AMD="YES"
 XMR_STAK="YES"
 SGMINER="YES"
 SGMINER_TT="YES"
+SGMINER_x16r="YES"
 Lyra2z="YES"
 
 swap_size="0" # 0/4/8/16 Go
@@ -51,6 +52,7 @@ if [ $XMRIG_AMD = "YES" ]; then echo -e "\e[97m     +\e[91m XMRig-amd \e[0m\e[97
 if [ $XMR_STAK = "YES" ]; then echo -e "\e[97m     +\e[91m XMR-Stak \e[0m\e[97m";fi
 if [ $SGMINER = "YES" ]; then echo -e "\e[97m     +\e[91m Sgminer-nicehash\e[0m\e[97m";fi
 if [ $SGMINER_TT = "YES" ]; then echo -e "\e[97m     +\e[91m Sgminer-timetravel\e[0m\e[97m";fi
+if [ $SGMINER_x16r = "YES" ]; then echo -e "\e[97m     +\e[91m Sgminer-x16r\e[0m\e[97m";fi
 echo -e "\e[97m     +\e[91m Claymore dualminer $claymore_dual_v\e[0m\e[97m"
 echo -e "\e[97m     +\e[91m Claymore zcash $claymore_zcash_v\e[0m\e[97m"
 echo -e "\e[97m     +\e[91m Claymore xmr $claymore_xmr_v\e[0m\e[97m"
@@ -212,6 +214,22 @@ cd ~
 echo "Done."
 fi
 
+if [ $SGMINER_x16r = "YES" ]
+then
+echo -e "\n\e[95mInstall sgminer-x16r :\e[0m"
+cd ~
+git clone https://github.com/wareck/sgminer-x16r.git
+cd ~/sgminer-x16r
+git pull
+git submodule init
+git submodule update
+./autogen.sh
+CFLAGS="-Os -Wall -march=native -I/opt/AMDAPPSDK-3.0/include" LDFLAGS="-L/opt/amdgpu-pro/lib/x86_64-linux-gnu" ./configure --disable-git-version --disable-adl
+make -j $(nproc)
+cd ~
+echo "Done."
+fi
+
 if [ $XMRIG_AMD = "YES" ]
 then
 echo -e "\n\e[95mInstall XMRIG-AMD:\e[0m"