Hi Roumano,

thanks for giving my code changes a try!

I should mention that the isolated profiling data from OpenCL not always 
give a good indication. Some devices/drivers for example do not account 
for the full host<->device transfer timings. It's better to rely on the 
total time spent in the pixelpipe which is given by darktable when the 
file has been successfully exported. Here is an example with 
opencl_use_pinned_memory=TRUE:

http://pastebin.com/VM4zuv1E

The total export time is 32 seconds.

Ulrich


Am 10.06.2013 12:01, schrieb Roumano:
> Hi Ulrich,
>
> Test on a ATI Tahiti XT (7870 XT 2Go) with a picture 5196 * 3462 pixel
> size (18Mbit)
>
> For me, i can't see any difference on the picture. (but file size is 2
> Ko diff) (every time a exporting a file i never have the exactly same
> size of the file)
>
> For performance,
> Yes it's better for me only on Read Buffer (from device to host), we can
> see real difference time (*from 0.0490 seconds to 0.0006*)
> But a slower on Read Image (from device to host) (*from 0.3329 seconds
> to 0.2353 seconds*)
>
>  > So it's slower for this test.
>
> My "test protocol" :
>
> With opencl_use_pinned_memory=true
>
> open darktable, Go to darkroom, export , exit
> /opt/darktable/bin/darktable -d perf -d opencl > /tmp/true
> grep opencl_profiling /tmp/true | grep from > /tmp/true2
>
>
> [opencl_profiling] spent *0.0198* seconds in [Write Image (from host to
> device)]
> [opencl_profiling] spent *0.0170* seconds in [Read Image (from device to
> host)]
> [opencl_profiling] spent *0.0002* seconds in [Read Buffer (from device
> to host)]
> [opencl_profiling] spent *0.0117* seconds in [Write Image (from host to
> device)]
> [opencl_profiling] spent *0.0207* seconds in [Read Image (from device to
> host)]
> [opencl_profiling] spent *0.2180* seconds in [Write Image (from host to
> device)]
> [opencl_profiling] spent *0.2353* seconds in [Read Image (from device to
> host)]
> [opencl_profiling] spent *0.0006* seconds in [Read Buffer (from device
> to host)]
>
>
>
> opencl_use_pinned_memory=false
>
> open darktable, Go to darkroom, export , exit
>
> [opencl_profiling] spent *0.0193* seconds in [Write Image (from host to
> device)]
> [opencl_profiling] spent *0.0170* seconds in [Read Image (from device to
> host)]
> [opencl_profiling] spent *0.0002* seconds in [Read Buffer (from device
> to host)]
> [opencl_profiling] spent *0.0129* seconds in [Write Image (from host to
> device)]
> [opencl_profiling] spent *0.0165* seconds in [Read Image (from device to
> host)]
> [opencl_profiling] spent *0.2267* seconds in [Write Image (from host to
> device)]
> [opencl_profiling] spent *0.3329* seconds in [Read Image (from device to
> host)]
> [opencl_profiling] spent *0.0490* seconds in [Read Buffer (from device
> to host)]
>
>

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
darktable-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-devel

Reply via email to