Project

General

Profile

Feature #12202

OpenCL now works with AMD Ryzen 2400G APU

Added by Michal Karczub 7 months ago. Updated 7 months ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
OpenCL
Target version:
-
Start date:
05/18/2018
Due date:
% Done:

0%

Affected Version:
2.4.3
System:
Fedora/RHEL
bitness:
64-bit
hardware architecture:
amd64/x86

Description

Hello,
inspired by this blog post:
https://blog.cryptomilk.org/2018/03/02/using-amd-open-source-and-the-amdgpu-pro-opencl-driver-for-image-processing/,
I just tried the latest amdgpu-pro driver - the Radeon™ RX Vega​​ Series, pre-release v18.20 for RHEL available here:
https://support.amd.com/en-us/download/linux

Rpm names slightly differ from those originally described in the blog, and the libamdocl12cl64.so is missing in the package (or I did not find it). Nevertheless, the extracted OpenCL libs work fine. Random 16MPix arw (Sony A37) file conversion is almost twice as fast with OpenCL on. Pleasant surprise from AMD :)

without OpenCL:
120.574606 [dev] took 0.000 secs (0.000 CPU) to load the image.
120.640889 [export] creating pixelpipe took 0.065 secs (0.137 CPU)
120.650616 [dev_pixelpipe] took 0.010 secs (0.028 CPU) initing base buffer [export]
120.657807 [dev_pixelpipe] took 0.007 secs (0.030 CPU) processed `raw black/white point' on CPU, blended on CPU [export]
120.663633 [dev_pixelpipe] took 0.006 secs (0.022 CPU) processed `white balance' on CPU, blended on CPU [export]
120.684047 [dev_pixelpipe] took 0.020 secs (0.150 CPU) processed `highlight reconstruction' on CPU, blended on CPU [export]
120.900792 [dev_pixelpipe] took 0.217 secs (1.464 CPU) processed `raw denoise' on CPU, blended on CPU [export]
121.319664 [dev_pixelpipe] took 0.419 secs (2.730 CPU) processed `demosaic' on CPU, blended on CPU [export]
121.351248 [dev_pixelpipe] took 0.032 secs (0.127 CPU) processed `base curve' on CPU, blended on CPU [export]
121.383013 [dev_pixelpipe] took 0.032 secs (0.215 CPU) processed `input color profile' on CPU, blended on CPU [export]
121.410016 [dev_pixelpipe] took 0.027 secs (0.175 CPU) processed `crop and rotate' on CPU, blended on CPU [export]
130.334366 [dev_pixelpipe] took 8.924 secs (69.616 CPU) processed `denoise (non-local means)' on CPU, blended on CPU [export]
130.734381 [dev_pixelpipe] took 0.400 secs (2.788 CPU) processed `sharpen' on CPU, blended on CPU [export]
132.656671 [dev_pixelpipe] took 1.922 secs (3.030 CPU) processed `highpass' on CPU, blended on CPU [export]
132.705916 [dev_pixelpipe] took 0.049 secs (0.347 CPU) processed `output color profile' on CPU, blended on CPU [export]
132.797180 [dev_pixelpipe] took 0.091 secs (0.658 CPU) processed `scale into final size' on CPU, blended on CPU [export]
132.797202 [dev_process_export] pixel pipeline processing took 12.156 secs (81.379 CPU)
[export_job] exported to `/data/fotky/2018.05.00 - KVETEN/_arw/../DSC03378dt_02.jpg'

with OpenCL:
183.780826 [dev] took 0.000 secs (0.000 CPU) to load the image.
183.859236 [export] creating pixelpipe took 0.076 secs (0.151 CPU)
183.868474 [dev_pixelpipe] took 0.009 secs (0.026 CPU) initing base buffer [export]
183.878325 [dev_pixelpipe] took 0.010 secs (0.016 CPU) processed `raw black/white point' on GPU, blended on GPU [export]
183.884516 [dev_pixelpipe] took 0.006 secs (0.013 CPU) processed `white balance' on GPU, blended on GPU [export]
183.890575 [dev_pixelpipe] took 0.006 secs (0.013 CPU) processed `highlight reconstruction' on GPU, blended on GPU [export]
184.151244 [dev_pixelpipe] took 0.261 secs (1.491 CPU) processed `raw denoise' on CPU, blended on CPU [export]
184.558772 [dev_pixelpipe] took 0.408 secs (2.689 CPU) processed `demosaic' on CPU, blended on CPU [export]
184.638888 [dev_pixelpipe] took 0.080 secs (0.000 CPU) processed `base curve' on GPU, blended on GPU [export]
184.654620 [dev_pixelpipe] took 0.016 secs (0.000 CPU) processed `input color profile' on GPU, blended on GPU [export]
184.668459 [dev_pixelpipe] took 0.014 secs (0.001 CPU) processed `crop and rotate' on GPU, blended on GPU [export]
189.966947 [dev_pixelpipe] took 5.298 secs (0.102 CPU) processed `denoise (non-local means)' on GPU, blended on GPU [export]
190.203821 [dev_pixelpipe] took 0.237 secs (0.002 CPU) processed `sharpen' on GPU, blended on GPU [export]
190.342883 [dev_pixelpipe] took 0.139 secs (0.004 CPU) processed `highpass' on GPU, blended on GPU [export]
190.365737 [dev_pixelpipe] took 0.023 secs (0.001 CPU) processed `output color profile' on GPU, blended on GPU [export]
190.393275 [dev_pixelpipe] took 0.028 secs (0.001 CPU) processed `scale into final size' on GPU, blended on GPU [export]
190.432299 [dev_process_export] pixel pipeline processing took 6.573 secs (4.360 CPU)
[export_job] exported to `/data/fotky/2018.05.00 - KVETEN/_arw/../DSC03378dt_03.jpg'

My system is Fedora 28 with +/- latest packages available in standard repos.

That's all folks,
hpmickey

History

#1 Updated by Benoit Brummer 7 months ago

That's a statement not a feature request right? It would be a better fit for freenode #darktable, https://www.reddit.com/r/DarkTable/ , or the mailing list than in the issues tracker.

#2 Updated by Michal Karczub 7 months ago

Oops, sorry, you are right, it was just a statement/recommendation.
Please, close the issue here.

I will drop a message to reddit #darktable as soon as I recheck the driver file list (to describe whole procedure more clearly).

Also available in: Atom PDF