fireice-uk / xmr-stak-amd

Monero AMD miner
GNU General Public License v3.0
193 stars 114 forks source link

Unable to make it working with AMD Radeon RX 550 on Linux #126

Open cialu opened 6 years ago

cialu commented 6 years ago

Hi all. I'm using xmr-stak-cpu with AMD Ryzen and it's working out of the box without issue. Thank you so much for that. Now, I'm also trying to use xmr-stak-amd with a AMD Radeon RX 550 gpu, but I'm unable to make it working. I think that the problem is related to the driver (opensource amdgpu), tried different solution (also the AmdGpuPro driver) but nothing worked, so I opened a bug on Launchpad (https://bugs.launchpad.net/ubuntu/+source/clinfo/+bug/1720759). Now, I'm testing the DRM-next kernel and Mesa-dev, but same result.

Any suggestion on how to make it working. Thanks in advance.

Related to xmr-stak-amd:

cialu@ryzen:/opt/xmr-stak-amd/bin$ ./xmr-stak-amd 
[2017-10-02 12:11:16] : Compiling code and initializing GPUs. This will take a while...
[2017-10-02 12:11:16] : Error UNKNOWN_ERROR when calling clGetPlatformIDs for number of platforms.
cialu@ryzen:~$ uname -a
Linux ryzen 4.14.0-996-generic #201710012258 SMP Mon Oct 2 03:00:16 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
cialu@ryzen:~$ glxinfo | grep OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: Radeon RX 550 Series (POLARIS12 / DRM 3.20.0 / 4.14.0-996-generic, LLVM 6.0.0)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.3.0-devel - padoka PPA
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 17.3.0-devel - padoka PPA
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 17.3.0-devel - padoka PPA
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:
cialu@ryzen:~$ clinfo
Number of platforms                               0
psychocrypt commented 6 years ago

This is an driver issue. As long as clinfo is not working the miner can not find the gpus. Maybe someone else can help?

dan-and commented 6 years ago

Nobody can help except AMD. They already know this driver issue: https://community.amd.com/thread/218107

cialu commented 6 years ago

@dan-and it seems that the latest beta mining driver for Linux solved the issue. I can't test it directly because I have switched my Linux machine to RX 560 and moved the RX 550s to a Windows machine. I'm waiting for feedbacks: https://www.reddit.com/r/MoneroMining/comments/775a03/amd_releases_amdgpupro_beta_mining_driver_1740/

dan-and commented 6 years ago

@cialu : 2 days ago, raShMan777 answered you with:

still doesn't work. just tested (on arch linux if someone's interested).

cialu commented 6 years ago

@cialu : 2 days ago, raShMan777 answered you with:

still doesn't work. just tested (on arch linux if someone's interested).

@dan-and I know, but Arch Linux is also a unsupported operating system. More feedbacks are welcome.

cialu commented 6 years ago

@dan-and It's official from AMD. OpenCL for RX 550 is not supported and the card is compatible only with the base driver. We must wait again.

https://www.reddit.com/r/MoneroMining/comments/775a03/amd_releases_amdgpupro_beta_mining_driver_1740/dorgxbc/?context=3

mirh commented 6 years ago

December 8th, 2017 AMDGPU-Pro Beta Driver is reported working.

Possibly, this also made into normal AMDGPU-PRO (which is 17.50, rather than 17.40). So if you are on arch, you might want to try the usual opencl-amd aur package.

cialu commented 6 years ago

@mirh did you experimented it?

I have no more RX 550 and I can´t test it, but on reddit all that people said it´s not working.

paulliss commented 6 years ago

I am trying to make it working day by day but no success yet. Debian (experimental firmware) Arch Ubuntu

CLinfo could not see it correctly :-(

Any help/ideas would be appreciated. telegram: @Niklomas

nedoune commented 6 years ago

Hi Guys, After spending two nigth, in order to make it work, I've a RX550 working with opencl on ubuntu 16.04.

  1. Uninstall amdgpu-pro (commande amdgpu-pro-uninstall
  2. Use UKUU to install kernel 4.13.12
  3. Install amdgpu-pro rev 16.60 (commande amd-gpu-pro-install --compute)

edit : the problem with this methode is that on reboot I've black screen issue.

Other idea : I made a fresh install of Ubuntu 17.10, install amdgpu-pro rev 16.60 and reboot in commande line. this works

Hope this will help you

tenpin784 commented 6 years ago

@nedoune's solution worked for me!!

vesselsec commented 6 years ago

@nedoune Thanks for your guide, however I'm having issues finding the 16.60 online. Can you perhaps assist with that? 16.40 I was able to find but unable to run :)

MoneroCrusher commented 6 years ago

@nedoune Ive been looking for 16.60 linux drivers for hours now. Could you give me a download link? Also what is the hashrate like? 500 on windows, possible here?

nedoune commented 6 years ago

@vesselsec @MoneroCrusher I have put the Amdgpu-pro rev 16.60 driver at your disposition here : https://drive.google.com/file/d/1POW7iFG3uMrhn_0VUFdj4YvxIJ4nBWmH/view?usp=sharing

Concerning hashrate with a flashed bios I have 430 H/s.

MoneroCrusher commented 6 years ago

@nedoune Thanks! Already found it though (at download.hiveos.farm/drivers). With your first method I was able to get my RX 550 to 506 H/s in Ubuntu 16.04 with 16.60 but it didnt succefully reboot afterwards.

So I installed Ubuntu 17.10.1 and tried installing 16.60 but it gave an error in installation and after it couldn't even successfully reboot.

Are there additional steps with 17.10.1 (need to download a certain kernel?)? Or what could be the problem?

Also do you have any idea how many GPUs one could use maximum in 1 system? Possible to have 30+?

Do you have telegram or discord?

Thank you

nedoune commented 6 years ago

@MoneroCrusher I have the same error during installation. But it seems the only effect of this error is the black screen at boot in graphical mode. Opencl run good in command line. You can configure ubuntu to boot in command line following this guide : http://ask.xmodulo.com/boot-into-command-line-ubuntu-debian.html

MoneroCrusher commented 6 years ago

@nedoune thanks for the tip! but with 17.10.1 I can do without command line, right? What is the exact step for step for 17.10.1?

nedoune commented 6 years ago

@MoneroCrusher I think due to the error during install, there's no way to use graphical mode. Perhaps someone with better knowing of linux and driver could do it, but it is not in my capcities. As the system runs only for monero, command line is not a problem for me. So step by step :

  1. Install ubuntu 17.10.1 (I think version is not important but i havn't test other versions)
  2. Update ubuntu
  3. Add user to group video (usermod -a -G video $username)
  4. Install amdgpu-pro 16.60 driver (amdgpu-pro-install --compute)
  5. Configure Ubuntu to boot in command line (following this guide http://ask.xmodulo.com/boot-into-command-line-ubuntu-debian.html)
  6. Reboot and launch miner