Re: GSOC 2011 - GEGL: Make OpenGL branch use OpenCL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 30, 2011 at 10:33 AM, Alexandre Prokoudine
<alexandre.prokoudine@xxxxxxxxx> wrote:
> On 3/29/11, Øyvind Kolås wrote:
>
>> Another important issue when implementing a new set of vfunc for the
>> OpenCL code (which would have to be fully conditional at compile time,
>> to keep GEGL buildable without).
>
> As much as I like OpenCL, this part of implementation is going to be
> hairy, because to build an app that uses OpenCL one needs binary ATi
> drivers, binary NVidia drivers or Gallium 3D. Or you would have to
> keep a local copy of respective headers (or write your own ones). You
> can imagine the kind of fun that packagers will have.

but that's really a packaging problem. it is perfectly possible to
implement stub functions that encapsulate the opencl stuff and all
conditional code, so most of the code can be kept clean of
preprocessor magic. see

http://darktable.git.sourceforge.net/git/gitweb.cgi?p=darktable/darktable;a=blob;f=src/common/opencl.h;h=5c22dd2ae84251129bd6f14676176ae757acd7d5;hb=HEAD

maybe it would even be possible to dlopen() the cl dependencies during runtime?

cheers,
 jo
_______________________________________________
Gegl-developer mailing list
Gegl-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gegl-developer



[Index of Archives]     [Yosemite News]     [Yosemite Photos]     [gtk]     [GIMP Users]     [KDE]     [Gimp's Home]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux