ethereum-mining / ethminer

Ethereum miner with OpenCL, CUDA and stratum support
GNU General Public License v3.0
5.96k stars 2.28k forks source link

AMD 5700 xt zero hashrate both benchmark and mining #2213

Open sp1derjohn opened 3 years ago

sp1derjohn commented 3 years ago

Describe the bug ehtminer mining/benchmarking 0 hashrate

To Reproduce Steps to reproduce the behavior: Clean install of Ubuntu 20.04 (or 18.04). Install amd drivers and opencl drivers install ethminer. run ethminer benchark or run ethminer -P...

Expected behavior Ethminer should start mining in pool, but fails to do so

Screenshots (Optional) If applicable, add screenshots to help explain your problem. Screenshot from 2021-03-05 09-48-18 Screenshot from 2021-03-05 09-56-37

Environment (please complete the following information):

Additional context I have tried to get this card to mine on multiple Ubuntu versions and kernels. I have also attempted to run using HiveOS. Google searches show people who claim to be mining with the 5700xt, but I continue to get the results above.

momohu commented 3 years ago

When I run ethminer, the display is as follows. Is the driver not installed correctly? Do I need any special command. Ubuntu 20 ethminer 0.19.0-alpha.0 Build: linux/release/gnu

Error: No usable mining devices found

patonoide commented 3 years ago

Hello, I have been using the rx 5600xt just fine. Which opencl implementation are you using?

sp1derjohn commented 3 years ago

Thank you... I installed using amdgpu-pro-install when I downloaded the driver from the AMD website for ubuntu 20.04 (1188099) My version is OpenCL 2.0 AMD-APP (3188.4)

sp1derjohn commented 3 years ago

Are you using Windows?

From: Gabriel Porto Oliveira notifications@github.com Sent: Monday, March 8, 2021 7:18 AM To: ethereum-mining/ethminer ethminer@noreply.github.com Cc: sp1derjohn dwhaley@chartertn.net; Author author@noreply.github.com Subject: Re: [ethereum-mining/ethminer] AMD 5700 xt zero hashrate both benchmark and mining (#2213)

Hello, I have been using the rx 5600xt just fine. Which opencl implementation are you using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ethereum-mining/ethminer/issues/2213#issuecomment-792717776 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXOIC2IDBIEJAGDEKRG4OLTCS55VANCNFSM4YVL5FBA . https://github.com/notifications/beacon/ABXOICYEAHW55F7KYVDDHO3TCS55VA5CNFSM4YVL5FBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOF476TUA.gif

patonoide commented 3 years ago

I use rocm with linux

sp1derjohn commented 3 years ago

Thanks. I guess, I’ll blow it out and retry with a fresh install. I’m not sure why it has given me so much trouble, but I’m glad to hear that it SHOULD work.

patonoide commented 3 years ago

Follow this guide for instructions on ROCM installation and it should work(OpenCl). If it doesn't I can try to help you. It's important to note that gfx1010 is not officially supported so things such as machine learning with tensorflow will not work.

Scr0nch commented 3 years ago

If this issue has not been solved yet, I think the problem may be similar to one I encountered because ethminer is not exiting after receiving an interrupt, you are using version 20.45 of amdgpu-pro, and the DAG never finishes generating.

To solve this, in my solution to a separate issue, I downgraded the amdgpu-pro driver from 20.45 to 20.40. See the linked issue for specifics on why it's necessary and how to on Arch Linux.

sp1derjohn commented 3 years ago

@patonoide Thank you. I uninstalled amggpu, rebooted and then installed ROCM per the instructions in the link you provided. rocminfo and clinfo both show my gpu: gfx1010. However, now when I run ethminer --list-devices, I get No OpenCL platforms found Error: No usable mining devices found

sp1derjohn commented 3 years ago

@Scr0nch Thank you for your suggestion. When I try to install 20.40, Ubuntu gives an error message that the 20.40 can only be installed on Ubuntu 18.04.

patonoide commented 3 years ago

@sp1derjohn try this when running ethminer LD_LIBRARY_PATH=/opt/rocm/opencl/lib ./ethminer

sp1derjohn commented 3 years ago

@patonoide that fixed the list-devices issue, but now if I run LD_LIBRARY_PATH=/opt/rocm/opencl/lib ethminer -G -M 0 I get SIGSEGV encountered ...

I think other folks are having this issue, but for me I get this immediately.

wasa4587 commented 3 years ago

I have the same problem, ethminer doesn't detect my 5700 XT on win10

Screen Shot 2021-07-27 at 10 09 32 AM Screen Shot 2021-07-27 at 10 09 18 AM