Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: betajuice on October 03, 2020, 06:03:18 PM



Title: Can't get AMD drivers working on Ubuntu 20.04
Post by: betajuice on October 03, 2020, 06:03:18 PM
Hi everyone.

I'm trying to get drivers working on Ubuntu 20.04 so I can mine with AMD cards (have not had luck yet).

I have a Radeon VII and an RX 580 I am using to see if I can get it to work.

I have read the amdgpu guide on driver installation, via:

Code:
./amdgpu-pro-install --opencl=pal,legacy --headless

and it seems to have installed fine.

In trying to using Claymore's Dual GPU Miner v15.0,

I get the following:
Code:
Cannot load OpenCL library, AMD cards will be unavailable
No NVIDIA CUDA GPUs detected.
No AMD OPENCL or NVIDIA CUDA GPUs found, exit

I'm unsure why it cannot load the OpenCL library,

Anyone have any suggestions?
Any help is appreciated, thanks.

(Further specs below:)

Miner: Claymore's Dual GPU Miner v15.0
Driver: amdgpu-pro-20.40-1147286-ubuntu-20.04
OS: Ubuntu 20.04.1 LTS
CPU: Intel Core i5-6400T
Mobo: Asrock H110 Pro BTC+



Title: Re: Can't get AMD drivers working on Ubuntu 20.04
Post by: adaseb on October 03, 2020, 07:20:07 PM
Hi everyone.

I'm trying to get drivers working on Ubuntu 20.04 so I can mine with AMD cards (have not had luck yet).

I have a Radeon VII and an RX 580 I am using to see if I can get it to work.

I have read the amdgpu guide on driver installation, via:

Code:
./amdgpu-pro-install --opencl=pal,legacy --headless

and it seems to have installed fine.

In trying to using Claymore's Dual GPU Miner v15.0,

I get the following:
Code:
Cannot load OpenCL library, AMD cards will be unavailable
No NVIDIA CUDA GPUs detected.
No AMD OPENCL or NVIDIA CUDA GPUs found, exit

I'm unsure why it cannot load the OpenCL library,

Anyone have any suggestions?
Any help is appreciated, thanks.

(Further specs below:)

Miner: Claymore's Dual GPU Miner v15.0
Driver: amdgpu-pro-20.40-1147286-ubuntu-20.04
OS: Ubuntu 20.04.1 LTS
CPU: Intel Core i5-6400T
Mobo: Asrock H110 Pro BTC+



When you installed Ubuntu recently did you have it connected to an onboard video or have onboard video enabled in the bios? I had a similar issue with Ubuntu 15 so no idea if its related to yours but I had to do the following.

Basically go to bios and disable onboard video, then plug in your monitor to the main GPU0 for display. When ubuntu fails to boot, go into the terminal, then go to the AMD driver install direction and use the --px command so

./amdgpu-pro-install --px

and when you reboot your Ubuntu should load with the drivers. Then you can go back to bios, re-enable onboard video, and reconnect monitor back to onboard video and it should load again and this time the drivers will be correctly installed.

Let me know if this works for you.


Title: Re: Can't get AMD drivers working on Ubuntu 20.04
Post by: betajuice on October 03, 2020, 11:58:46 PM

When you installed Ubuntu recently did you have it connected to an onboard video or have onboard video enabled in the bios? I had a similar issue with Ubuntu 15 so no idea if its related to yours but I had to do the following.

Basically go to bios and disable onboard video, then plug in your monitor to the main GPU0 for display. When ubuntu fails to boot, go into the terminal, then go to the AMD driver install direction and use the --px command so

./amdgpu-pro-install --px

and when you reboot your Ubuntu should load with the drivers. Then you can go back to bios, re-enable onboard video, and reconnect monitor back to onboard video and it should load again and this time the drivers will be correctly installed.

Let me know if this works for you.

I did originally install Ubuntu via the onboard video. I just went and looked and onboard VGA was disabled. also, it says --px option is depricated.

thanks


Title: Re: Can't get AMD drivers working on Ubuntu 20.04
Post by: adaseb on October 04, 2020, 03:38:17 AM


I did originally install Ubuntu via the onboard video. I just went and looked and onboard VGA was disabled. also, it says --px option is depricated.

thanks

--px is PowerExpress support so see if in the new version there is an option for it.

If there is no option for it then just ignore it, but try and boot with the monitor plugged into GPU0 and run the install then and see if it works. If you can't get Ubuntu to load then go into the terminal. I had an endless login loop and only way to fix it was to go into the terminal and reinstall the drivers from there.

If it doesn't work, then just install everything from scratch (Ubuntu and AMD drivers) with GPU0 as main display and see if it makes a difference. Ubuntu is always finicky with AMD and onboard video.


Title: Re: Can't get AMD drivers working on Ubuntu 20.04
Post by: betajuice on October 04, 2020, 07:01:10 PM
Also want to point out that I get no result when searching with dpkg:

Code:
~$ dpkg -l amdgpu
dpkg-query: no packages found matching amdgpu

Does this mean the `amdgpu-pro-install` is not working?

apt show amdgpu shows the driver.

When I followed the AMD rocm install from here: https://rocmdocs.amd.com/en/latest/Installation_Guide/Installation-Guide.html#ubuntu

Then claymore's detects just 1 of my cards (Radeon VII) and attempts to mine with it, however I keep getting "Can't create DAG" message over and over.

I tried also installing the amdgpu-pro again after that but still no luck :/


Title: Re: Can't get AMD drivers working on Ubuntu 20.04
Post by: YuSoDum on October 06, 2020, 06:25:29 PM
https://linuxconfig.org/amd-radeon-ubuntu-20-04-driver-installation

read this perhaps?


Title: Re: Can't get AMD drivers working on Ubuntu 20.04
Post by: VasilyS on October 07, 2020, 09:02:33 AM
Claymore and Phoenix don't work on Ubuntu 20.04. You have to use nanominer or ethminer, also there are some problems with downvolting and fan control. It is better to use (x)ubuntu 18.04 at the moment - all miners and utilities work well.