Page 1 of 1

How-to: AMDGPU-Pro OpenCL

PostPosted: Jun 28th, '23, 23:21
by yankee495
Hello,

I posted a How-to on getting OpenCL working for programs that benefit from OpenCL like Darktable etc.

That's here: https://forums.mageia.org/en/viewtopic.php?t=13309&p=77942

Since my wife an I are both running Mageia 9 Beta 2 with a RX580, I thought I'd look to see if there had been any progress on making OpenCL functional without the confusion of my manual method. My machine still has my old manual install of OpenCL while her's was a fresh install of Mageia 9 earlier this year. I never took the time to fix her OpenCL because she doesn't use it as much as I do, and I was hoping for a fix from the developers.

The developers have been hard at work and it worked perfectly on my wife's machine. Here's what they say.

So, things are now ready for testing.

You just need to activate core/updates_testing for Mageia9.
Then, install rocm-amd-opencl.

Please, do note this package, completely built from source, covers AMD GPU hardware of version higher than Vega 10.

If you have an older version (like Polaris), *after* installing rocm-amd-opencl, you will need to run, as root, the attached get_orca64.sh script.

It will download from AMD website one proprietary lib and install it for you.


Since I have a RX580 (Older than Vega) I had to run the "get_orca64.sh" script as root.
It seemed to stall then I remembered it has to download a large file to get the files we need.
It finished without issue and works great. I attached the get_orca64.sh script.

Here's some notes from the developers.
While testing it was reported that it did not work with a AMD Ryzen 7 4800H with Vega 7 integrated graphics.
They're working on it so this could change any minute.

It's reported to work with Vega 10 and higher and you do NOT need to run the script. Just install rocm-amd-opencl.

It works with the RX570/RX580 etc ONLY after installing rocm-amd-opencl and running the get_orca64.sh script as root.
Do NOT forget to make the script executable, then run it as root.

The script is attached below and good luck! And a big thank you to the developers who worked out the details to mostly automate this process. They are working to get the script to run after installing rocm-amd-opencl which would make it completely automatic. This is a huge plus for Mageia.

Re: How-to: AMDGPU-Pro OpenCL

PostPosted: Jun 28th, '23, 23:39
by morgano
Thank you!

For now, linked to here from https://wiki.mageia.org/en/Setup_the_gr ... ry_drivers

If you like, make a wiki page on this and then switch link to that :)