hi heiko, are you on irc at some point? my internet connection is intermittent these days, but discussing these things sounds like an interactive medium would be better suited.
i was traditionally looking at the easiest module (sharpen, src/iop/sharpen.c) for reference. for the opencl kernel, you'd need to implement process_cl() which gets passed pointers to cl_mem instead of the regular heap pointers for input and output. that means the memory is already on the GPU by the time your code runs. there are a few silly shenanigans to be done to initialise the kernel once globally instead of every time you enter darkroom mode. that's init_global(). the kernel itself is in data/kernels/something.cl and data/kernels/programs.conf takes care to identify the kernels with some integer that has to be used in the code to grab the compiled kernel for you. i'm sure there will be more things coming up as the first ten issues will be resolved :) cheers, jo On Wed, Sep 5, 2018 at 8:57 PM Heiko Bauke <heiko.ba...@mail.de> wrote: > > Hi Andreas, > > Am 05.09.2018 um 08:48 schrieb Andreas Schneider: > > However, something else, I'm still looking forward to get the guided filter > > for parametric and drawn masks, any news on that front? :-) > > still lacking time and sufficient knowledge in OpenCL programming to > implement this feature properly. In particular, I would need to > understand better how the OpenCL image processing pipeline works in > darktable. For example, how is it decided when data needs to be copied > from host memory to GPU? Do I need to care about explicit copying at > all? Where should I put the OpenCL kernel? Etc. > > > Heiko > > > -- > -- Number Crunch Blog @ https://www.numbercrunch.de > -- Cluster Computing @ https://www.clustercomputing.de > -- Social Networking @ https://www.researchgate.net/profile/Heiko_Bauke > ___________________________________________________________________________ > darktable developer mailing list > to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org > ___________________________________________________________________________ darktable developer mailing list to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org