cancel
Showing results for 
Search instead for 
Did you mean: 

Drivers & Software

bridgman
Staff
Staff

Re: Linux open CL 2.0

Ahh, good - Ellesmere. So we didn't change anything other than bug fixes between 20.40 and 20.45 for you. In hindsight I should have figured that out as soon as you said that installing with --opencl=pal,legacy was successful.

The info you pasted looks like it came from clinfo - I guess it would be interesting to see what clinfo on Windows says. I would offer to run it but my Windows box is pretty stone-age. 

I'll ask our OpenCL devs and see what they expect.

0 Likes
ableeker
Adept II

Re: Linux open CL 2.0

clinfo reports the following about OpenCL versions:

 

Platform Version: OpenCL 2.0 AMD-APP (3188.4)
Device OpenCL C version: OpenCL C 2.0
Version: OpenCL 2.0

This is about OpenCL running Ubuntu 20.10, a Vega64, and amdgpu-pro OpenCL 20.45.

 

0 Likes
caretaker
Adept II

Re: Linux open CL 2.0

Hi, any news on the matter?

0 Likes
baszczer
Adept III

Re: Linux open CL 2.0

Hi,

I'm using Navi (Ubuntu) for Blender and I need pro drivers. I have a problem with ROCm:

Spoiler
Split kernel error: failed to load kernel_path_init
Memory access fault by GPU node-1 (Agent handle: 0x7f715f786c00) on address 0x7f706aade000. Reason: Page not present or supervisor privilege.  

and (until it is fixed) I wold like to use OpenCl instead.

Info from ROCm developers is unfavorable for me:

Hi @clicks
Though ROCm is mainly focused for compute, it also supports Graphics also, but medium priority.
So, in the same lanes, ROCm supports Blender, but its broken at present. Our developers are working on the fix. Please stay tuned for the updates.
Thank you.

 

So, is there a possibility to install OpenCl instead of ROCm?

 

0 Likes
bridgman
Staff
Staff

Re: Linux open CL 2.0

Yes and no. The OpenCL code in the 20.45 driver packages is newer than what we have in the ROCm packages and we did quite a bit of testing/fixing on Blender. It's in slightly better shape on RDNA2 than RDNA1 but AFAIK should work on both (I'll try to find the test results). The 20.45 driver should install on any 5.4x kernel but since Ubuntu just pushed everything to 5.8.x you'll need to go back to the GA kernel rather than the HWE kernel. That's the "yes" part.

The "no" part is just that on 20.45 we are using the ROCr back end for OpenCL just like on the ROCm stack, but hopefully that should not be a problem for you. If you did want to try going all the way back to PAL-based OpenCL you should be able to install the 20.40 drivers but you'll need to take your kernel version back to 5.4.0-54 or older for 20.40 to install successfully.

0 Likes
baszczer
Adept III

Re: Linux open CL 2.0

With 20.40 I have that - "Split kernel error:failed to lad kernel_path_init".

Baking textures with 20.40 and 20.45 is impossible for me. 

I've bought that card mostly for work with Blender and can't use it as I expected (put in slot, install drivers and use).

It is far away from professional services.

As I remember problems with drivers is a never ending story, even with pro wx.

A reliable drivers! A reliable drivers! My kingdom for a reliable drivers!

 

ableeker
Adept II

Re: Linux open CL 2.0

OpenCL wasn't working with earlier versions of Blender, but I haven't had error messages with the current version. In some cases GPU rendering doesn't make any difference, and in some cases GPU rendering takes longer, but I haven't had any problems installing or using OpenCL with Blender. If you only need OpenCL, as I do, you can install AMDGPU-PRO OpenCL on any of the last Ubuntu's. For instance, I'm using OpenCL with a number of applications (including Blender) on Ubuntu 21.04.

I've installed 20.40 like so:

./amdgpu-install --no-dkms --headless --opencl=pal

If you've got an older card, you can also use --opencl=legacy,pal or even --opencl=legacy.

I've also tried to install 20.45 like this:

./amdgpu-install --no-dkms --headless --opencl=rocr

--opencl can be legacy, or legacy,rocr as well. This has changed because AMD currently isn't using PAL anymore, but ROCm.

But this didn't work as I was expecting, because no-dkms is ignored when you use the rocr option. Legacy may be fine though. I've been able to install it after all by removing amdgpu-dkms, and removing the blacklisting of AMDGPU.

baszczer
Adept III

Re: Linux open CL 2.0

but I haven't had error messages with the current version

Maybe that's why you didn't have errors, because you didn't try to bake textures using RX 5700 XT.

0 Likes