Page 1 of 1

AMDGPU vs. DaVinci Resolve

PostPosted: Dec 11th, '21, 11:48
by Northsoft
Hello, I try to run DaVinci Resolve on Mageia 8, I have RX 5500 XT.
As far as I understand:
1. AMDGPU is not supported by DaVinci Resolve.
2. Proprietary AMD Radeon driver has no installer for Mageia.
3. DaVinci Resolve does not start without supported GPU.
4. There are some tutorials to split and mix AMDGPU and proprietary AMD driver, but it looks like really dirty hacks.

Is there any way to run DaVinci Resolve on Mageia?

Re: AMDGPU vs. DaVinci Resolve

PostPosted: Dec 11th, '21, 15:29
by doktor5000
According to https://wiki.archlinux.org/title/DaVinc ... stallation it should work both with the admgpu pro or the opencl driver (which also comes with the admgpu pro driver).
FWIW, someone described here how to install the opencl driver via the installer: viewtopic.php?f=23&t=13309
Although according to some other mentions you probably should only install up to version 20.40 because newer driver versions have a lot of issues with davinci resolve.

Re: AMDGPU vs. DaVinci Resolve

PostPosted: Dec 12th, '21, 09:17
by Northsoft

No luck there =(
Code: Select all
[admin@localhost ~]$ clinfo -l
Number of platforms:                             1
  Platform Profile:                              FULL_PROFILE
  Platform Version:                              OpenCL 2.1 AMD-APP (3004.6)
  Platform Name:                                 AMD Accelerated Parallel Processing
  Platform Vendor:                               Advanced Micro Devices, Inc.
  Platform Extensions:                           cl_khr_icd cl_amd_event_callback cl_amd_offline_devices


  Platform Name:                                 AMD Accelerated Parallel Processing
ERROR: clGetDeviceIDs(-1)
[admin@localhost ~]$

Re: AMDGPU vs. DaVinci Resolve

PostPosted: Dec 12th, '21, 15:29
by doktor5000
Well, you don't really mention any details. What version of the driver did you install, you should add that information to the other thread.

Re: AMDGPU vs. DaVinci Resolve

PostPosted: Dec 12th, '21, 20:44
by Northsoft
doktor5000 wrote:Well, you don't really mention any details. What version of the driver did you install, you should add that information to the other thread.

I can have no clue about which details I should add, and I hope that one can elaborate details.

Re: AMDGPU vs. DaVinci Resolve

PostPosted: Dec 12th, '21, 23:35
by doktor5000
doktor5000 wrote:What version of the driver did you install, you should add that information to the other thread.

Re: AMDGPU vs. DaVinci Resolve

PostPosted: Dec 13th, '21, 09:34
by Northsoft
doktor5000 wrote:What version of the driver did you install, you should add that information to the other thread.

I have already written that =)
UPD: it was amdgpu-pro-19.50-967956-rhel-8.1.tar.xz.

Looks like this is really sort of allergic reaction. :D

Re: AMDGPU vs. DaVinci Resolve

PostPosted: Dec 13th, '21, 10:14
by sturmvogel
Why don't you try newer the newer drivers? It's worth a try.
20.20/20.30/20.40/20.45/20.50/21.10/21.20/21.30/21.40?

Re: AMDGPU vs. DaVinci Resolve

PostPosted: Dec 14th, '21, 15:34
by Northsoft
sturmvogel wrote:Why don't you try newer the newer drivers? It's worth a try.
20.20/20.30/20.40/20.45/20.50/21.10/21.20/21.30/21.40?

According to that howto I have to extract libopencl rpm file.
AMD repo does not provide this rpm file since 21.40 (and the only elder driver available is 19.50, I tried that and had no luck).

Re: AMDGPU vs. DaVinci Resolve

PostPosted: Dec 14th, '21, 16:22
by sturmvogel

Re: AMDGPU vs. DaVinci Resolve

PostPosted: Dec 14th, '21, 19:15
by Northsoft


Looks like I was kinda blind and didn't see info about previous versions.

I have taken all versions and checked existence of libopencl rpm file. Only one version had this file, and it was 20.20. I tried to do that, and had no luck. =(

Code: Select all
[root@localhost clinfo_files]# clinfo -l
Number of platforms:                             1
  Platform Profile:                              FULL_PROFILE
  Platform Version:                              OpenCL 2.1 AMD-APP (3110.6)
  Platform Name:                                 AMD Accelerated Parallel Processing
  Platform Vendor:                               Advanced Micro Devices, Inc.
  Platform Extensions:                           cl_khr_icd cl_amd_event_callback cl_amd_offline_devices


  Platform Name:                                 AMD Accelerated Parallel Processing
ERROR: clGetDeviceIDs(-1)
[root@localhost clinfo_files]#
exit
[admin@localhost clinfo_files]$ clinfo -l
Number of platforms:                             1
  Platform Profile:                              FULL_PROFILE
  Platform Version:                              OpenCL 2.1 AMD-APP (3110.6)
  Platform Name:                                 AMD Accelerated Parallel Processing
  Platform Vendor:                               Advanced Micro Devices, Inc.
  Platform Extensions:                           cl_khr_icd cl_amd_event_callback cl_amd_offline_devices


  Platform Name:                                 AMD Accelerated Parallel Processing
ERROR: clGetDeviceIDs(-1)
[admin@localhost clinfo_files]$

Re: AMDGPU vs. DaVinci Resolve

PostPosted: Jan 18th, '22, 02:23
by aurr
I've seen this thread and decided to post here my mageia hacks of amdgpu-pro drivers for user space only. This is similar with https://aur.archlinux.org/packages/opencl-amd/, but using redhat pkgs and skipping all rocm stuff that's not necessary to package opencl driver. Hope some of you guys may find it useful.
Attached is a (kinda messy) script to get the amdgpu driver files and a spec file to generate rpm files from them.
Although I have no idea how to use DavinciResolve, the software showed the AMD's opencl as an option in graphics configuration. If it works with it, I have no idea.
The script needs wget/rpm2cpio/cpio/bm to be installed in order to generate the rpms.
Code: Select all
$ tar -xzf amdgpu-userspace.tar.gz; cd amdgpu-userspace
$ sh gettarball2-amdgpu-userspace.sh
$ sh gettarball2-amdgpu-userspace.sh --with-bm

If everything went smooth, then the rpms for opencl and vulkan drivers will be in RPMS/x86_64. Then install lib64amdgpu-pro and opencl-amdgpu-pro together for opencl driver while vulkan drivers can be installed alone. clinfo and vulkaninfo should pick each of them if you install them all.
The easiest for me to test the opencl/vulkan installation was to run geekbench5:
Code: Select all
$ ./geekbench5 --compute-list
...
OpenCL
0 0 AMD Radeon RX 6600 XT
1 0 AMD Radeon RX 6600 XT (DIMGREY_CAVEFISH, DRM 3.42.0, 5.15.15-desktop-1.mga9, LLVM 13.0.0)
Vulkan
0 0 AMD RADV DIMGREY_CAVEFISH
0 1 llvmpipe (LLVM 13.0.0, 256 bits)
0 2 AMD Radeon RX 6600 XT  # - opensource AMD driver
0 3 AMD Radeon RX 6600 XT  # - pro AMD driver (no distinction in geekbench!)

$ ./geekbench5 --compute=OpenCL --compute-platform-id 0
$ ./geekbench5 --compute=Vulkan --compute-device-id 2
# same as above but with environment variable
$ VK_ICD_FILENAMES=/etc/vulkan/icd.d/amd_icd64.json ./geekbench5 --compute=Vulkan
$ VK_ICD_FILENAMES=/etc/vulkan/icd.d/amdpro_icd64.json ./geekbench5 --compute=Vulkan

AMD OpenCL geekbench result: https://browser.geekbench.com/v5/compute/4098816
AMD Vulkan geekbench result: https://browser.geekbench.com/v5/compute/4098822

Mesa opencl doesn't work for my card at all and that was one reason I dug into this opencl stuff.
Regards,
A.

Re: AMDGPU vs. DaVinci Resolve

PostPosted: Jul 4th, '22, 13:27
by MagicD3VIL
aurr wrote:I've seen this thread and decided to post here my mageia hacks


Thank you, Aurr! The script worked perfectly!

I have Mesa OpenCL installed and I was stuck not being able to run the Geeks3D GpuTest. Every time I tried to launch it, it crashed with:
Code: Select all
./GpuTest: symbol lookup error: /usr/lib64/gallium-pipe/pipe_radeonsi.so: undefined symbol: amdgpu_query_video_caps_info


I had no idea how to fix it and Google found only 4 related links in which everyone said it was some Mesa version bug.

Your script saved me a lot of my time and sanity, so thanks again, Aurr!

EDIT: My GPU is Radeon RX580