Getting an AMD APU to work with Ubuntu 20.04

Bill
Bill
Joined: 2 Jun 17
Posts: 38
Credit: 249294508
RAC: 284405
Topic 225256

Hi all-

 

Keith suggested I reach out here to see if anyone could help me.  I'm trying to get the GPU portion of my 2200G to work in Ubuntu 20.04.  What I've attempted so far is all in the post here on the BOINC forum.  Any suggestions would be helpful.  I'm not really well versed in Linux (there should be an acronym for being good in Windows, but not in Linux - GiWBNiL?  Doesn't roll off the tongue).

Gary Roberts
Gary Roberts
Moderator
Joined: 9 Feb 05
Posts: 5845
Credit: 109859444785
RAC: 30325816

Bill wrote:I'm trying to get

Bill wrote:
I'm trying to get the GPU portion of my 2200G to work in Ubuntu 20.04.

I don't know anything about Ubuntu - only that it seems like every 6 months, after April and October when the new versions are released, there appears always to be a spate of problems for people trying to use OpenCL.

I use a distro that doesn't package BOINC or OpenCL.  I just download the Red Hat version of AMDGPU-PRO and extract just the OpenCL libs manually, (both PAL and legacy) and install both using a home-made installation script.  All my discrete GPUs use legacy.  The APUs use PAL.  I have Athlon 200GE and Athlon3000G APUs which have Vega 3 - just 3 compute units (CUs) - so not as powerful as your Vega 8.  I have tested both the discrete and internal GPUs (separately) and they both work quite automatically without needing any software or setup changes.  In normal circumstances I just use discrete GPUs but I'm absolutely sure the internal GPUs work as well if I remove the discrete GPU.  I've actually tested that.

Please understand that OpenCL capability is something extra that is not part of a standard video driver install.  It's an extra that extends the functionality of the video drivers.  The standard video driver these days is amdgpu - a kernel module that comes as part of the Linux kernel.  OpenCL is something extra that runs in addition to and depends on the amdgpu module.  With Ubuntu, so it seems from what I've read, you need to worry about kernel versions and which particular OpenCL versions may be compatible or not.

If you look at the clinfo output you posted at BOINC, it clearly says "No platform" and "No devices found in platform" so you're being told that a working OpenCL capability is not installed.  Once you get clinfo to properly report the platform and device information, you should then see (very early in the BOINC startup messages) something like

OpenCL: AMD/ATI GPU 0: AMD Radeon HD7800 Series (driver version 3180.7, ...

That line was from one of my machines with a HD7850 GPU.  If you don't see that OpenCL: line, you don't have OpenCL properly installed.

There is a long running thread on the "Problems" board that has "Ubuntu 20" and "AMD drivers" in the title.  Have you looked at that thread for what people who do use Ubuntu have said?  I'll refer you in particular to this post by Mountkidd that goes into chapter and verse about Ubuntu 20.04 and which particular kernels will or wont work with some particular versions of AMDGPU-PRO.  He also points out an AMD community thread where the problem is more fully explained.  maybe if you follow those leads, you might find a way forward to getting a working OpenCL installed.

I've recently seen that AMD have announced the 21.10 version of Radeon Software for Linux (the AMDGPU- PRO stuff).  One of the headline comments was "Introducing full support for Ubuntu 20.04.2"  You just mention 20.04.  If that happened to be 20.04.2, it looks like the new 21.10 would allow you to install OpenCL that actually works with your install.

Cheers,
Gary.

cecht
cecht
Joined: 7 Mar 18
Posts: 1432
Credit: 2468021941
RAC: 1059579

Bill wrote: ...  What I've

Bill wrote:

...  What I've attempted so far is all in the post here on the BOINC forum.  Any suggestions would be helpful.

From that discussion thread, the post by Ian & Steve C. nailed it: there are no Ubuntu/Linux AMDGPU drivers for your APU, thus no E@H crunching.

BUT, I see in today's post over there that Tom M is checking to see if the AMD 2200G can be cajoled into working. I'll keep my fingers crossed for you.

It's unfortunate that even modest GPU cards are crazy expensive right now.

Ideas are not fixed, nor should they be; we live in model-dependent reality.

Tom M
Tom M
Joined: 2 Feb 06
Posts: 5630
Credit: 7716410121
RAC: 2071940

Ok, first the news. I have

Ok, first the news.

I have an Amd 2200G installed under Ubuntu 20.04.1 using the 5.4 Kernel and the Rx 5700 graphics driver (older version) version 20.30

It has downloaded and is now munching a Gamma Ray task.

The short version of the solution is:

  1. You must install the 5.4 Kernel only.  If the distro you have has a 5.4 kernel available then you can probably install that kernel by installing the OS with no access to the internet.
  2. You must install the Amd Linux gpu driver error free.  If there are any reported errors there is not a usable driver installed as far as Boinc is concerned.
  3. You can try uninstalling the Amd driver using either
    amdgpu-uninstall or 


    amdgpu-pro-uninstall


  4. You can check your Linux kernel version with:  uname -r

I will run through a how to, step by step in another message.

Tom M

 

 

A Proud member of the O.F.A.  (Old Farts Association).  Be well, do good work, and keep in touch.® (Garrison Keillor)

Ian&Steve C.
Ian&Steve C.
Joined: 19 Jan 20
Posts: 3702
Credit: 34500140140
RAC: 40885204

I found this also:

I found this also: https://askubuntu.com/questions/1223032/install-opencl-2-0-driver-for-amd-gpu-on-ubuntu-19-10-whats-my-options

 

for an older version of Ubuntu, but the main issue probably still holds true, too new of a kernel as Tom pointed out.

 

Tom, is that task running on the APU? you have no discrete GPU in that system, correct?

_________________________________________________________________________

Tom M
Tom M
Joined: 2 Feb 06
Posts: 5630
Credit: 7716410121
RAC: 2071940

This is a summary how-to

This is a summary how-to install Ubuntu 20 LTS with any (apparently) Radeon graphics including both the regular external cards and the APU internal graphics adapters.

  1. Create an install media for Ubuntu 20 LTS.   You want to use version 20.04.1  Unless someone has changed it, it has Kernel 5.4 (not 5.8!) as its baseline install.
  2. Do a clean install with the system unable to access the Internet in any way, shape or form.
    1. This means you have to choose your time zone manually.  If you type in the first couple of letters of the time zone it normally displays for you (in my case Chicago) you can select that and get on with it.
  3. After the install and re-boot you should disable all the system update choices as much as possible.
    1. You can usually find the update app and start it from the lower left corner of your desktop.  Change parameters and it will remember you don't want to do "anything".
  4. Now download a copy of the Ubuntu drivers for say an Rx 5700 video card.  I have just successfully downloaded and installed Revision: 20.30 which is the first driver specifically named for Ubuntu 20.04.1 LTS
  5. Un-Archive it someplace you can find it.
  6. Go into the file manager and open that archived folder in the Terminal.
  7. Copy paste this: ./amdgpu-pro-install -y --opencl=pal,legacy --headless   
    1. I usually have to use the menu paste in terminal.  The Cntl-V doesn't work for me.
  8. If it runs without an error then reboot, install Boinc and off you go.
  9. I believe this is a public link to the AIO Linux version of the Boinc Manager.
    1. http://www.arkayn.us/lunatics/BOINC.7z

A Proud member of the O.F.A.  (Old Farts Association).  Be well, do good work, and keep in touch.® (Garrison Keillor)

Tom M
Tom M
Joined: 2 Feb 06
Posts: 5630
Credit: 7716410121
RAC: 2071940

Ian&Steve C. wrote:I found

Ian&Steve C. wrote:

I found this also: https://askubuntu.com/questions/1223032/install-opencl-2-0-driver-for-amd-gpu-on-ubuntu-19-10-whats-my-options

 

for an older version of Ubuntu, but the main issue probably still holds true, too new of a kernel as Tom pointed out.

 

Tom, is that task running on the APU? you have no discrete GPU in that system, correct?

Yes, it is running a Gamma Ray task as I type.  I am typing from the Linux 20 box with the Amd 2200G cpu on it and driving my monitor via the VGA plug on the back of the motherboard.  I have no other video card installed.

I usually set the MB bios to "always" use the Internal Graphics Adapter this kind of system so if/when I add another video card for additional crunching power I can still find/use the internal adapter.

The first iGPU Gamma Ray task took slightly over 28 minutes.

Tom

A Proud member of the O.F.A.  (Old Farts Association).  Be well, do good work, and keep in touch.® (Garrison Keillor)

cecht
cecht
Joined: 7 Mar 18
Posts: 1432
Credit: 2468021941
RAC: 1059579

Tom M wrote:...You can try

Tom M wrote:

...You can try uninstalling the Amd driver using either

amdgpu-uninstall or 

amdgpu-pro-uninstall

There have been times when that hasn't worked for me to allow a subsequent error-free install, but this always as worked, for some reason:

/usr/bin/amdgpu-uninstall

And gratz on finding the solution!

Ideas are not fixed, nor should they be; we live in model-dependent reality.

Tom M
Tom M
Joined: 2 Feb 06
Posts: 5630
Credit: 7716410121
RAC: 2071940

I have taken my test APM/Amd

I have taken my test APM/Amd 2200G offline to free space on my work/test bench.

The HD is untouched.  And so is the MB/Cpu/APM and ram.

At the end of the testing, I was checking to see if an Rx 580 was still working so some of the times were significantly below 28 minutes.

Tom M

A Proud member of the O.F.A.  (Old Farts Association).  Be well, do good work, and keep in touch.® (Garrison Keillor)

Bill
Bill
Joined: 2 Jun 17
Posts: 38
Credit: 249294508
RAC: 284405

Wow, that was a lot more

Wow, that was a lot more thorough help then I expected, thank you!  I need to reread these posts a little more thoroughly to understand, but one thing sticks out that I am curious about.  Isn’t it better for security reasons to have the kernel up to date?  This computer isn’t going to be used for anything else but crunching, but still.  I would almost prefer to use a different flavor of Linux like Gary to make it work and keep the software up to date, but at a glance if Gary is running homemade scripts, that may be a bit much for me.  Not from a technical ability, but the amount of time I can spend to absorb and apply is the problem.

Regardless, it looks like there is a way to make the apu work, which I do want to do.  I will report back here when I have studied these posts more and tried to get it to work.

Keith Myers
Keith Myers
Joined: 11 Feb 11
Posts: 4743
Credit: 17661631007
RAC: 6061391

No, not really. Most kernel

No, not really. Most kernel updates are either performance updates or updates for handling a larger or smaller matrix of hardware.

Security updates are likely to be in other subsystems, not the kernels.

It is common for servers to run LTS kernels several generations older than the current releases.

Stability is key.

 

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.