Project

General

Profile

Feature #12733

Filmic RGB doesn't have OpenCL implementation

Added by Alexander Rabtchevich about 1 month ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
OpenCL
Target version:
-
Start date:
07/08/2020
Due date:
% Done:

0%

Estimated time:
Affected Version:
git master branch
System:
other GNU/Linux
bitness:
64-bit
hardware architecture:
amd64/x86

Description

Filmic v4 consumes so much processing power compared to v3, that without OpenCl implementation it cannot be used at exporting of any bunches of images. Here is profiling log of the same image with 4 and 3 versions of filmic RGB module. It took 40.6 seconds with V4 against 3.6s with V3 at AMD Phenom 1075T and Radeon 580. Modern processors are more powerful, but they seem to be not enough quick too.

V4

18,394184 [dev] took 0,148 secs (0,292 CPU) to load the image.
18,584420 [export] creating pixelpipe took 0,180 secs (0,209 CPU)
18,584481 [pixelpipe_process] [export] using device 0
18,625522 [dev_pixelpipe] took 0,041 secs (0,075 CPU) initing base buffer [export]
18,654501 [dev_pixelpipe] took 0,029 secs (0,007 CPU) processed `raw black/white point' on GPU, blended on GPU [export]
18,659303 [dev_pixelpipe] took 0,005 secs (0,001 CPU) processed `white balance' on GPU, blended on GPU [export]
18,663195 [dev_pixelpipe] took 0,004 secs (0,000 CPU) processed `highlight reconstruction' on GPU, blended on GPU [export]
19,545027 [dev_pixelpipe] took 0,882 secs (3,415 CPU) processed `demosaic ' on CPU, blended on CPU [export]
19,679568 [dev_pixelpipe] took 0,134 secs (0,001 CPU) processed `crop and rotate' on GPU, blended on GPU [export]
19,691346 [dev_pixelpipe] took 0,012 secs (0,003 CPU) processed `exposure' on GPU, blended on GPU [export]
19,710530 [dev_pixelpipe] took 0,019 secs (0,001 CPU) processed `input color profile' on GPU, blended on GPU [export]
image colorspace transform Lab-->RGB took 0,225 secs (0,866 CPU) [filmicrgb ]
58,848242 [dev_pixelpipe] took 39,138 secs (171,780 CPU) processed `filmic rgb' on CPU, blended on CPU [export]
image colorspace transform RGB-->Lab took 0,012 secs (0,000 GPU) [colorout ]
59,011786 [dev_pixelpipe] took 0,163 secs (0,000 CPU) processed `output color profile' on GPU, blended on GPU [export]
59,256903 [dev_pixelpipe] took 0,245 secs (0,656 CPU) processed `display encoding' on CPU, blended on CPU [export]
59,256945 [opencl_profiling] profiling device 0 ('Ellesmere'):
59,256964 [opencl_profiling] spent 0,1579 seconds in [Write Image (from host to device)]
59,256982 [opencl_profiling] spent 0,0055 seconds in rawprepare_1f
59,256995 [opencl_profiling] spent 0,0028 seconds in whitebalance_1f
59,257004 [opencl_profiling] spent 0,0019 seconds in highlights_1f_lch_bayer
59,257012 [opencl_profiling] spent 0,1693 seconds in [Read Image (from device to host)]
59,257020 [opencl_profiling] spent 0,0277 seconds in [Copy Image (on device)]
59,257028 [opencl_profiling] spent 0,0073 seconds in exposure
59,257036 [opencl_profiling] spent 0,0104 seconds in colorin_unbound
59,257043 [opencl_profiling] spent 0,0072 seconds in colorspaces_transform_rgb_matrix_to_lab
59,257051 [opencl_profiling] spent 0,0072 seconds in colorout
59,257058 [opencl_profiling] spent 0,3971 seconds totally in command queue (with 0 events missing)
59,257084 [dev_process_export] pixel pipeline processing took 40,673 secs (175,939 CPU)
[export_job] exported to `/media/sasha/WD5_4/Photos/2020.07.08_Minsk_park/darktable_exported/DSC08968_02.jpg

V3 with additional color balance and local contrast modules.

372,762005 [dev] took 0,133 secs (0,309 CPU) to load the image.
372,955165 [export] creating pixelpipe took 0,182 secs (0,202 CPU)
372,955216 [pixelpipe_process] [export] using device 0
372,998523 [dev_pixelpipe] took 0,043 secs (0,068 CPU) initing base buffer [export]
373,023521 [dev_pixelpipe] took 0,025 secs (0,000 CPU) processed `raw black/white point' on GPU, blended on GPU [export]
373,027775 [dev_pixelpipe] took 0,004 secs (0,000 CPU) processed `white balance' on GPU, blended on GPU [export]
373,031750 [dev_pixelpipe] took 0,004 secs (0,001 CPU) processed `highlight reconstruction' on GPU, blended on GPU [export]
373,905269 [dev_pixelpipe] took 0,873 secs (3,405 CPU) processed `demosaic ' on CPU, blended on CPU [export]
374,044957 [dev_pixelpipe] took 0,140 secs (0,000 CPU) processed `crop and rotate' on GPU, blended on GPU [export]
374,057027 [dev_pixelpipe] took 0,012 secs (0,000 CPU) processed `exposure' on GPU, blended on GPU [export]
374,068921 [dev_pixelpipe] took 0,012 secs (0,000 CPU) processed `input color profile' on GPU, blended on GPU [export]
374,076845 [dev_pixelpipe] took 0,008 secs (0,000 CPU) processed `color balance' on GPU, blended on GPU [export]
image colorspace transform Lab-->RGB took 0,230 secs (0,919 CPU) [filmicrgb ]
376,052460 [dev_pixelpipe] took 1,976 secs (8,396 CPU) processed `filmic rgb' on CPU, blended on CPU [export]
image colorspace transform RGB-->Lab took 0,008 secs (0,003 GPU) [bilat ]
376,292522 [dev_pixelpipe] took 0,240 secs (0,018 CPU) processed `local contrast' on GPU, blended on GPU [export]
376,315591 [dev_pixelpipe] took 0,023 secs (0,000 CPU) processed `output color profile' on GPU, blended on GPU [export]
376,557475 [dev_pixelpipe] took 0,242 secs (0,617 CPU) processed `display encoding' on CPU, blended on CPU [export]
376,557515 [opencl_profiling] profiling device 0 ('Ellesmere'):
376,557522 [opencl_profiling] spent 0,1588 seconds in [Write Image (from host to device)]
376,557526 [opencl_profiling] spent 0,0053 seconds in rawprepare_1f
376,557531 [opencl_profiling] spent 0,0018 seconds in whitebalance_1f
376,557534 [opencl_profiling] spent 0,0019 seconds in highlights_1f_lch_bayer
376,557540 [opencl_profiling] spent 0,1685 seconds in [Read Image (from device to host)]
376,557543 [opencl_profiling] spent 0,0308 seconds in [Copy Image (on device)]
376,557545 [opencl_profiling] spent 0,0073 seconds in exposure
376,557549 [opencl_profiling] spent 0,0052 seconds in colorin_unbound
376,557552 [opencl_profiling] spent 0,0045 seconds in colorbalance_cdl
376,557555 [opencl_profiling] spent 0,0071 seconds in colorspaces_transform_rgb_matrix_to_lab
376,557558 [opencl_profiling] spent 0,0036 seconds in pad_input
376,557560 [opencl_profiling] spent 0,0336 seconds in gauss_reduce
376,557563 [opencl_profiling] spent 0,0149 seconds in process_curve
376,557566 [opencl_profiling] spent 0,0234 seconds in laplacian_assemble
376,557568 [opencl_profiling] spent 0,0042 seconds in write_back
376,557571 [opencl_profiling] spent 0,0153 seconds in colorout
376,557579 [opencl_profiling] spent 0,4862 seconds totally in command queue (with 0 events missing)
376,557596 [dev_process_export] pixel pipeline processing took 3,602 secs (12,507 CPU)
[export_job] exported to `/media/sasha/WD5_4/Photos/2020.07.08_Minsk_park/darktable_exported/DSC08968_03.jpg'

Also available in: Atom PDF

Go to top