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/4098816AMD Vulkan geekbench result:
https://browser.geekbench.com/v5/compute/4098822Mesa opencl doesn't work for my card at all and that was one reason I dug into this opencl stuff.
Regards,
A.