AMDGPU vs. DaVinci Resolve

AMDGPU vs. DaVinci Resolve

Postby Northsoft » Dec 11th, '21, 11:48

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?
Northsoft
 
Posts: 33
Joined: Dec 18th, '12, 19:22
Location: Novosibirsk, Russia

Re: AMDGPU vs. DaVinci Resolve

Postby doktor5000 » Dec 11th, '21, 15:29

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18035
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: AMDGPU vs. DaVinci Resolve

Postby Northsoft » Dec 12th, '21, 09:17


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 ~]$
Last edited by doktor5000 on Dec 12th, '21, 15:28, edited 1 time in total.
Reason: fixed link
Northsoft
 
Posts: 33
Joined: Dec 18th, '12, 19:22
Location: Novosibirsk, Russia

Re: AMDGPU vs. DaVinci Resolve

Postby doktor5000 » Dec 12th, '21, 15:29

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18035
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: AMDGPU vs. DaVinci Resolve

Postby Northsoft » Dec 12th, '21, 20:44

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.
Northsoft
 
Posts: 33
Joined: Dec 18th, '12, 19:22
Location: Novosibirsk, Russia

Re: AMDGPU vs. DaVinci Resolve

Postby doktor5000 » Dec 12th, '21, 23:35

doktor5000 wrote:What version of the driver did you install, you should add that information to the other thread.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18035
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: AMDGPU vs. DaVinci Resolve

Postby Northsoft » Dec 13th, '21, 09:34

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
Northsoft
 
Posts: 33
Joined: Dec 18th, '12, 19:22
Location: Novosibirsk, Russia

Re: AMDGPU vs. DaVinci Resolve

Postby sturmvogel » Dec 13th, '21, 10:14

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?
sturmvogel
 
Posts: 738
Joined: Jul 30th, '12, 00:39

Re: AMDGPU vs. DaVinci Resolve

Postby Northsoft » Dec 14th, '21, 15:34

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).
Northsoft
 
Posts: 33
Joined: Dec 18th, '12, 19:22
Location: Novosibirsk, Russia


Re: AMDGPU vs. DaVinci Resolve

Postby Northsoft » Dec 14th, '21, 19:15



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]$
Northsoft
 
Posts: 33
Joined: Dec 18th, '12, 19:22
Location: Novosibirsk, Russia

Re: AMDGPU vs. DaVinci Resolve

Postby aurr » Jan 18th, '22, 02:23

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.
Attachments
amdgpu-userspace.tar.gz
script and spec for rpms to install opencl/vulkan amgpu-pro drivers
(2.63 KiB) Downloaded 321 times
aurr
 
Posts: 1
Joined: Jan 8th, '21, 20:56

Re: AMDGPU vs. DaVinci Resolve

Postby MagicD3VIL » Jul 4th, '22, 13:27

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
User avatar
MagicD3VIL
 
Posts: 74
Joined: Jun 2nd, '19, 00:25
Location: Ostrava, Czech Republic


Return to Video

Who is online

Users browsing this forum: No registered users and 1 guest

cron