RSS/Atom feed Twitter
Site is read-only, email is disabled

Building opencl branch

This discussion is connected to the gegl-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

Building opencl branch Victor Oliveira 26 Dec 18:25
  Building opencl branch Øyvind Kolås 27 Dec 22:49
Victor Oliveira
2012-12-26 18:25:30 UTC (about 12 years ago)

Building opencl branch

For now, I've been using the gegl op tool in gimp to test gegl operations with OpenCL.
But it shouldn't be hard to create a simple filter using the gegl API and test performance.

If you want to enable OpenCL, just set the GEGL_USE_OPENCL env variable [1].

Also, if you build gegl with --enable-debug, you can set GEGL_DEBUG=opencl and get some messages about what's going on [2]. Take care that these messages change execution time.

Victor

[1] http://git.gnome.org/browse/gegl/tree/gegl/gegl-init.c#n295 [2] http://git.gnome.org/browse/gegl/tree/gegl/gegl-debug.h#n34

On Wed, Dec 26, 2012 at 4:05 PM, wrote:

Hello!

Ok, I see, that opencl branch is outdated, I successfully compiled and installed version 0.2 from master.

But there is a question: do you have some code examples/tests I should run to give you information about bugs/speed comparison? I did not found any opencl tests in master.

I have this config right now: - Mageia 2 Operating System
- gegl 0.2 from git
- GIMP 2.8
- Intel Pentium 4 CPU 3.0 GHz
- 8 Gb RAM pc-10660
- Nvidia GeForce GT430 GPU

Wed, 26 Dec 2012 00:11:22 -0200 Victor Oliveira :

Hi RPG!

So, it is already integrated in master, you can just ignore the branch. Victor

On Tue, Dec 25, 2012 at 9:27 PM, wrote:

Hello!

I clone a repo with gegl and build it. But when I ckeckout to branch opencl-ops I get segfault on building stage! Is it normal?

I compiled master, but there is no some OpenCL tests...

-- Pavel aka RPG

--
Pavel

Øyvind Kolås
2012-12-27 22:49:04 UTC (about 12 years ago)

Building opencl branch

On Thu, Dec 27, 2012 at 5:25 AM, Victor Oliveira wrote:

For now, I've been using the gegl op tool in gimp to test gegl operations with OpenCL.
But it shouldn't be hard to create a simple filter using the gegl API and test performance.

If you want to enable OpenCL, just set the GEGL_USE_OPENCL env variable [1].

Also, if you build gegl with --enable-debug, you can set GEGL_DEBUG=opencl and get some messages about what's going on [2]. Take care that these messages change execution time.

It makes more sense to test with GIMP 2.9 than GIMP 2.8 (the current development version of GIMP which will be come next stable 2.10) has moved its core storage model to actual GeglBuffers, and it is GeglOperations doing the grunt work for compositing layers and other core functionality in GIMP.

GIMP provides quite a few of its operations on its own, with only CPU versions for now. OpenCL has been enabled by default during the last bits of the GEGL development cycle.. even though it sometimes slows things down a bit with CPU OpenCL backends, if the next tarball release is soon, it will probably be switched off by default again. (having it had enabled like this has allowed us to catch a few bugs that otherwise would have gone undetected.)

The future is already here. It's just not very evenly distributed
                                                 -- William Gibson
http://pippin.gimp.org/                            http://ffii.org/