Am 01.10.20 um 16:43 schrieb Germano Massullo:
AMD RX480 + Fedora user here.
I am using the GPU with amdgpu (open) drivers for everything.
When I have to use darktable, I use the proprietary amdgpu-pro OpenCL
drivers. In order to prepare the environment, you have to download the
amdgpu-pro drivers from AMD website
Unpack the tar.xz file in a folder let's call it
/home/user/unpacked
After that, there will be a folder
/home/user/unpacked/amdgpu-pro
that contains subfolders
amdgpu-pro-install  repodata  RPMS  SRPMS
go in RPMS and take all RPM files that are in subfolder
/home/user/unpacked/amdgpu-pro/x86_64
and put them together someelsewhere, for example
/home/user/amd_opencl
then unpack them all.
You will get
/home/user/amd_opencl/etc/
/home/user/amd_opencl/lib/
/home/user/amd_opencl/opt/
/home/user/amd_opencl/usr/

Then to run darktable
OPENCL_VENDOR_PATH=/home/user/amd_opencl/etc/OpenCL/vendors/
LD_LIBRARY_PATH=/home/user/amd_opencl/opt/amdgpu-pro/lib64/ darktable


Here: Dual-boot openSUSE Leap 15.2 and Tumbleweed,
processor AMD ryzen 1700, graphics card AMD-RX460,
used graphics driver: amdgpu-pro-20.30-1109584-sle-15

I created the dirctory amd_OpenCL_darktable on my /data_partition and
unpacked the RPMs there.
I followed your instruction but couldn't get openCL working with
openSUSE Tumbleweed.

A posting from Rafa Garcia (thankyou Rafa) brought an link:

https://discuss.pixls.us/t/using-amd-open-source-and-the-amdgpu-pro-opencl-driver-for-image-processing/6864

where I found
...
amdocl64.icd            -> /etc/OpenCL/vendors
libamdocl12cl64.so      -> /opt/amdgpu-pro/lib64/
...

which means, the amdgpu-pro driver uses hard-coded
references.

So I simply added links to the system root:

/etc/OpenCL -> /data_partition/amd_OpenCL_darktable/etc/OpenCL/

/opt/amdgpu-pro -> /data_partition/amd_OpenCL_darktable/opt/amdgpu-pro/

added a bash-script to my home directoy, and BINGO there was darktable
with openCL.

It is basically what you wrote, but using two links in /etc and /opt.

bash-script:
---------------
#!/bin/bash
# call Darktable with openCL
# orgiginal: OPENCL_VENDOR_PATH=/home/user/amd_opencl/etc/OpenCL/vendors/
# orgiginal: LD_LIBRARY_PATH=/home/user/amd_opencl/opt/amdgpu-pro/lib64/
darktable
#
# adapted
OPENCL_VENDOR_PATH=/etc/OpenCL/vendors/
LD_LIBRARY_PATH=/opt/amdgpu-pro/lib64/ darktable
#
------------

The beauty of of it:
My data-partition is accesible from Leap and from Tumbleweed.
So I copied links and script to my Leap system and run darktable with
openCL, too.

No more problems with the ampgpu-pro driver for the system and several
users on that computer can use one  800MB(!) openCL package by simply
copying the script to their HOME.

Thanks
Peter

____________________________________________________________________________
darktable user mailing list
to unsubscribe send a mail to [email protected]

Reply via email to