develsoftware / GMinerRelease

Ethash, ProgPoW, Equihash, CuckooCycle GPU Miner
https://bitcointalk.org/index.php?topic=5034735.0
1.95k stars 331 forks source link

GMiner V2.39 on LINUX 20.04 freezes for AMD RX 5700 XT card #112

Open MichelHeon opened 3 years ago

MichelHeon commented 3 years ago

For this trace: ./miner --list_devices GPU0: SAPPHIRE Radeon RX 580 Series 8GB PCI: 0000:01:00.0 GPU1: SAPPHIRE Radeon RX 580 Series 8GB PCI: 0000:02:00.0 GPU2: ASROCK AMD Radeon RX 5700 XT 8GB PCI: 0000:05:00.0 GPU3: MSI Radeon RX 580 Series 8GB PCI: 0000:06:00.0 GPU4: ASUS Radeon RX 580 Series 8GB PCI: 0000:07:00.0 GPU5: SAPPHIRE Radeon RX 580 Series 8GB PCI: 0000:08:00.0

and this config file:

[common]
algo=ethash
#devices=0 1 3 4 5
templimit=90
color=1 ; enable color output
watchdog=1
pec=1 ; enable power efficiency calculator
api=3000 ; enable API, to view statistics navigate to http://localhost:10555 in your browser
logfile=/opt/gminer/log.txt
#Main pool
[server]
host=MY-ADRESS
port=MY_PORT
user=MY_USER
pass=x

And de following command

root@Mineur-07:/opt/gminer# ./miner --config config.txt
+----------------------------------------------------------------+
|                          GMiner v2.39                          |
+----------------------------------------------------------------+
Algorithm:          Ethash
DevFee:             0.65%
Stratum server #1:  
  host:
  user:
  password:         x
Stratum server #2:  
  host:             :0
  user:             
  password:         
Power calculator:   on
Color output:       on
Watchdog:           on
API:                http://127.0.0.1:3000
Log to file:        /opt/gminer/log.txt
Selected devices:   GPU0 GPU1 GPU2 GPU3 GPU4 GPU5
Intensity:          100  100  100  100  100  100 
Temperature limits: 90C  90C  90C  90C  90C  90C 
------------------------------------------------------------------
07:40:29 Miner not responding, watchdog will restart process after 10 seconds
+----------------------------------------------------------------+
|                          GMiner v2.39                          |
+----------------------------------------------------------------+
Algorithm:          Ethash
DevFee:             0.65%
Stratum server #1:  
  host: 
  user: 
  password:         x
Stratum server #2:  
  host:             :0
  user:             
  password:         
Power calculator:   on
Color output:       on
Watchdog:           on
API:                http://127.0.0.1:3000
Log to file:        /opt/gminer/log.txt
Selected devices:   GPU0 GPU1 GPU2 GPU3 GPU4 GPU5
Intensity:          100  100  100  100  100  100 
Temperature limits: 90C  90C  90C  90C  90C  90C 

If I remove the comment to #devices=0 1 3 4 5 from the config.txt file then the miner is working correctly.

On the other hand, on Windows 10 everything works correctly

MichelHeon commented 3 years ago

V2.40 Linux doesn't fix the problem!

I also deleted all the cards to keep only the RX5700xt with no result.

Butinor commented 3 years ago

Recipe to solve this problem

Based on: https://sur1v.medium.com/amd-gpu-cryptocurrency-mining-like-a-pro-6a138b14d151

1- Install Linux ubuntu 20.04.1 from ISO Image Available here https://releases.ubuntu.com/20.04/ubuntu-20.04.1-live-server-amd64.iso 2- Do anapt-get update and DO NOT DO apt-get dist-upgrade 3- Installing amd-pro amdgpu-pro-20.30-1109583 (Be careful, versions of the 20.45 series does not work!) wget https://drivers.amd.com/drivers/linux/amdgpu-pro-20.30-1109583-ubuntu-20.04.tar.xz --referer https://support.amd.com 4- Install amdgpu with the following options: amdgpu-pro-install -y --opencl=legacy,pal --headless 5- Sometimes a compilation error related to the i386 architecture occurs. Then you have to execute the following command sequence:

sudo -s
amdgpu-pro-uninstall
dpkg --add-architecture i386
dpkg --configure -a && apt-get update && apt-get -f install 

... and redo point 4 6- Install gminer V2.41 and enjoy-it!