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

porting a GEGL filter to OpenCL

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.

11 of 11 messages available
Toggle history

Please log in to manage your subscriptions.

porting a GEGL filter to OpenCL kcleung@users.sourceforge.net 13 Dec 06:56
  porting a GEGL filter to OpenCL Victor Oliveira 15 Dec 18:25
  porting a GEGL filter to OpenCL Florian Klemme 16 Dec 06:39
  porting a GEGL filter to OpenCL Alexandre Prokoudine 16 Dec 07:38
   porting a GEGL filter to OpenCL Qichang Liang 17 Dec 00:33
    porting a GEGL filter to OpenCL Jon Nordby 17 Dec 01:20
     porting a GEGL filter to OpenCL Victor Oliveira 17 Dec 01:25
      porting a GEGL filter to OpenCL Qichang Liang 17 Dec 02:01
       porting a GEGL filter to OpenCL Jon Nordby 17 Dec 20:15
    porting a GEGL filter to OpenCL Florian Klemme 17 Dec 21:21
     porting a GEGL filter to OpenCL Tom Stellard 17 Dec 21:30
kcleung@users.sourceforge.net
2014-12-13 06:56:37 UTC (over 9 years ago)

porting a GEGL filter to OpenCL

Hi!

I have just learned OpenCL programming, and would like to get solid experience in OpenCL. I would like to port an existing GEGL filter to OpenCL.

I had a look at:

http://wiki.gimp.org/wiki/Hacking:Porting_filters_to_GEGL

There are a couple of filters listed that have a GEGL CPU implementation but without OpenCL implementation. How updated is this list?

Could you please kindly suggest an existing GEGL filter that is reasonably small, yet no-one has worked on porting to OpenCL? I would like to claim and implement that filter and get my hand dirty :)

Thanks!

Qichang

Victor Oliveira
2014-12-15 18:25:53 UTC (over 9 years ago)

porting a GEGL filter to OpenCL

Considering you've just learned OpenCL, a nice thing to do would be to test filters that already have CL implementations for performance and correctness, fill out bugs for the problems you find and start from that.

Victor

On Fri, Dec 12, 2014 at 10:56 PM, wrote:

Hi!

I have just learned OpenCL programming, and would like to get solid experience in OpenCL. I would like to port an existing GEGL filter to OpenCL.

I had a look at:

http://wiki.gimp.org/wiki/Hacking:Porting_filters_to_GEGL

There are a couple of filters listed that have a GEGL CPU implementation but without OpenCL implementation. How updated is this list?

Could you please kindly suggest an existing GEGL filter that is reasonably small, yet no-one has worked on porting to OpenCL? I would like to claim and implement that filter and get my hand dirty :)

Thanks!

Qichang _______________________________________________ gegl-developer-list mailing list
List address: gegl-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gegl-developer-list

Florian Klemme
2014-12-16 06:39:52 UTC (over 9 years ago)

porting a GEGL filter to OpenCL

Hi.

I'm still pretty new to GEGL myself so I can't give you a good answer of how up to date that list is. I suggest you just choose a filter of which you have a good idea what it does, grab the current master branch and have a look of its progress. If you grab the current Gimp as well you can get an idea of its state by looking if it has already a place in the filter menu or if it's still listed under Tools -> GEGL Operation. Or if it's not listed at all.

I experienced that the (Gimp) IRC channel (irc://irc.gimp.org/#gimp) is much more active than this mailing list. You might want to ask this question there again and hopefully get the answer your looking for. :-)

If your are willing to port a filter from Gimp to GEGL (including an OpenCL implementation or not) I'm sure your help will be appreciated.

Florian

Am 13.12.2014 07:56, schrieb kcleung@users.sourceforge.net:

Hi!

I have just learned OpenCL programming, and would like to get solid experience in OpenCL. I would like to port an existing GEGL filter to OpenCL.

I had a look at:

http://wiki.gimp.org/wiki/Hacking:Porting_filters_to_GEGL

There are a couple of filters listed that have a GEGL CPU implementation but without OpenCL implementation. How updated is this list?

Could you please kindly suggest an existing GEGL filter that is reasonably small, yet no-one has worked on porting to OpenCL? I would like to claim and implement that filter and get my hand dirty :)

Thanks!

Qichang _______________________________________________ gegl-developer-list mailing list
List address: gegl-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gegl-developer-list

Alexandre Prokoudine
2014-12-16 07:38:30 UTC (over 9 years ago)

porting a GEGL filter to OpenCL

13 дек. 2014 г. 10:56 пользователь написал:

Hi!

I have just learned OpenCL programming, and would like to get solid experience in OpenCL. I would like to port an existing GEGL filter to OpenCL.

I had a look at:

http://wiki.gimp.org/wiki/Hacking:Porting_filters_to_GEGL

There are a couple of filters listed that have a GEGL CPU implementation but without OpenCL implementation. How updated is this list?

I try to keep it up to date, but some mistakes may have crawled in :) Don't hesitate to report any inconsistencies you stumble upon.

Alex

Qichang Liang
2014-12-17 00:33:33 UTC (over 9 years ago)

porting a GEGL filter to OpenCL

Currently I am working on MacbookPro Retina installed with OS X 10.10. I have a VMware virtual machine on my USB 3 hard drive, which I can run using VMware Fusion 7.1

However for correctness and performance testing, which option is the best?

* compile the gegl directly on OS X (which I can't get it compiled) * compile on a Linux VM that runs on VMware Fusion 7.1 * install Linux on my USB hard drive, boot my retina macbook from the Linux USB hard drive and compile from there?

I don't know whether I can really test performance of OpenCL in a VM. Also both the USB HD and the retina support USB 3, so in this case, will the hard disk no longer be the bottleneck?

On Tue, Dec 16, 2014 at 8:38 PM, Alexandre Prokoudine wrote:

13 дек. 2014 г. 10:56 пользователь написал:

Hi!

I have just learned OpenCL programming, and would like to get solid experience in OpenCL. I would like to port an existing GEGL filter to OpenCL.

I had a look at:

http://wiki.gimp.org/wiki/Hacking:Porting_filters_to_GEGL

There are a couple of filters listed that have a GEGL CPU implementation but without OpenCL implementation. How updated is this list?

I try to keep it up to date, but some mistakes may have crawled in :) Don't hesitate to report any inconsistencies you stumble upon.

Alex

_______________________________________________ gegl-developer-list mailing list
List address: gegl-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gegl-developer-list

Jon Nordby
2014-12-17 01:20:59 UTC (over 9 years ago)

porting a GEGL filter to OpenCL

On 17 December 2014 at 01:33, Qichang Liang wrote:

Currently I am working on MacbookPro Retina installed with OS X 10.10. I have a VMware virtual machine on my USB 3 hard drive, which I can run using VMware Fusion 7.1

However for correctness and performance testing, which option is the best?

* compile the gegl directly on OS X (which I can't get it compiled) * compile on a Linux VM that runs on VMware Fusion 7.1 * install Linux on my USB hard drive, boot my retina macbook from the Linux USB hard drive and compile from there?

Test something that typical users use. That would be a plain OSX or Linux install. USB harddrive will make boot, application startup a bit slow but should not impact perfomance otherwise. And as long as your compare performance on the same system, comparisons will stay valid.

GEGL should compile on Mac OSX. If it does not, it is probably not so hard to fix. And it needs to be fixed for applications using GEGL (like GIMP) anyways.
Post your compile error along with what you did here if you are stuck with a problem.

Victor Oliveira
2014-12-17 01:25:33 UTC (over 9 years ago)

porting a GEGL filter to OpenCL

Something you can try on OS X is to use brew to compile GIMP and get some of the new libraries installed.

On Tue, Dec 16, 2014 at 5:20 PM, Jon Nordby wrote:

On 17 December 2014 at 01:33, Qichang Liang wrote:

Currently I am working on MacbookPro Retina installed with OS X 10.10. I have a VMware virtual machine on my USB 3 hard drive, which I can run using VMware Fusion 7.1

However for correctness and performance testing, which option is the best?

* compile the gegl directly on OS X (which I can't get it compiled) * compile on a Linux VM that runs on VMware Fusion 7.1 * install Linux on my USB hard drive, boot my retina macbook from the Linux USB hard drive and compile from there?

Test something that typical users use. That would be a plain OSX or Linux install. USB harddrive will make boot, application startup a bit slow but should not impact perfomance otherwise. And as long as your compare performance on the same system, comparisons will stay valid.

GEGL should compile on Mac OSX. If it does not, it is probably not so hard to fix. And it needs to be fixed for applications using GEGL (like GIMP) anyways.
Post your compile error along with what you did here if you are stuck with a problem.

_______________________________________________ gegl-developer-list mailing list
List address: gegl-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gegl-developer-list

Qichang Liang
2014-12-17 02:01:22 UTC (over 9 years ago)

porting a GEGL filter to OpenCL

It now builds on OS X, and OpenCL directory looks like it is built as well. But I haven't installed libraries such as cairo and openexr, so my gel is not supported. For my purpose, is it essential for me to install every library checked by configure?

On Wed, Dec 17, 2014 at 2:25 PM, Victor Oliveira wrote:

Something you can try on OS X is to use brew to compile GIMP and get some of the new libraries installed.

On Tue, Dec 16, 2014 at 5:20 PM, Jon Nordby wrote:

On 17 December 2014 at 01:33, Qichang Liang wrote:

Currently I am working on MacbookPro Retina installed with OS X 10.10. I have a VMware virtual machine on my USB 3 hard drive, which I can run using VMware Fusion 7.1

However for correctness and performance testing, which option is the best?

* compile the gegl directly on OS X (which I can't get it compiled) * compile on a Linux VM that runs on VMware Fusion 7.1 * install Linux on my USB hard drive, boot my retina macbook from the Linux USB hard drive and compile from there?

Test something that typical users use. That would be a plain OSX or Linux install. USB harddrive will make boot, application startup a bit slow but should not impact perfomance otherwise. And as long as your compare performance on the same system, comparisons will stay valid.

GEGL should compile on Mac OSX. If it does not, it is probably not so hard to fix. And it needs to be fixed for applications using GEGL (like GIMP) anyways.
Post your compile error along with what you did here if you are stuck with a problem.

_______________________________________________ gegl-developer-list mailing list
List address: gegl-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gegl-developer-list

Jon Nordby
2014-12-17 20:15:01 UTC (over 9 years ago)

porting a GEGL filter to OpenCL

On 17 December 2014 at 03:01, Qichang Liang wrote:

It now builds on OS X, and OpenCL directory looks like it is built as well. But I haven't installed libraries such as cairo and openexr, so my gel is not supported. For my purpose, is it essential for me to install every library checked by configure?

Nice.
No, as long as you are able to build the operations you want you can treat other dependencies as optional.

Florian Klemme
2014-12-17 21:21:59 UTC (over 9 years ago)

porting a GEGL filter to OpenCL

FYI on VMs:
I haven't seen a virtual machine that supports any kind of OpenCL passthough, so if you're developing on a virtual machine you won't be able to run your OpenCL code there.
I'm developing on a Linux VM because I don't want to figure out the build process on Windows. ;-) But for testing OpenCL, I (have to) copy my code to a native Linux machine an test it there.

Florian

Am 17.12.2014 01:33, schrieb Qichang Liang:

Currently I am working on MacbookPro Retina installed with OS X 10.10. I have a VMware virtual machine on my USB 3 hard drive, which I can run using VMware Fusion 7.1

However for correctness and performance testing, which option is the best?

* compile the gegl directly on OS X (which I can't get it compiled) * compile on a Linux VM that runs on VMware Fusion 7.1 * install Linux on my USB hard drive, boot my retina macbook from the Linux USB hard drive and compile from there?

I don't know whether I can really test performance of OpenCL in a VM. Also both the USB HD and the retina support USB 3, so in this case, will the hard disk no longer be the bottleneck?

On Tue, Dec 16, 2014 at 8:38 PM, Alexandre Prokoudine wrote:

13 дек. 2014 г. 10:56 пользователь написал:

Hi!

I have just learned OpenCL programming, and would like to get solid experience in OpenCL. I would like to port an existing GEGL filter to OpenCL.

I had a look at:

http://wiki.gimp.org/wiki/Hacking:Porting_filters_to_GEGL

There are a couple of filters listed that have a GEGL CPU implementation but without OpenCL implementation. How updated is this list?

I try to keep it up to date, but some mistakes may have crawled in :) Don't hesitate to report any inconsistencies you stumble upon.

Alex

_______________________________________________ gegl-developer-list mailing list
List address: gegl-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gegl-developer-list

_______________________________________________ gegl-developer-list mailing list
List address: gegl-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gegl-developer-list

Tom Stellard
2014-12-17 21:30:25 UTC (over 9 years ago)

porting a GEGL filter to OpenCL

On Wed, Dec 17, 2014 at 10:21:59PM +0100, Florian Klemme wrote:

FYI on VMs:
I haven't seen a virtual machine that supports any kind of OpenCL passthough, so if you're developing on a virtual machine you won't be able to run your OpenCL code there. I'm developing on a Linux VM because I don't want to figure out the build process on Windows. ;-) But for testing OpenCL, I (have to) copy my code to a native Linux machine an test it there.

You can actually use OpenCL with a virtual machine. I've started doing this lately for testing clover, which is an Open Source OpenCL implementation for AMD GPUs. There is one annoying issue that on some AMD hardware, you can only boot the guest once per host boot, so if you want to reboot the guest you must also reboot the host.

Otherwise things seem to be working fine, at least with clover. I'm working on a guide for how to set this up in case anyone is interested:

http://dri.freedesktop.org/wiki/PCIPassthrough/

-Tom

Florian

Am 17.12.2014 01:33, schrieb Qichang Liang:

Currently I am working on MacbookPro Retina installed with OS X 10.10. I have a VMware virtual machine on my USB 3 hard drive, which I can run using VMware Fusion 7.1

However for correctness and performance testing, which option is the best?

* compile the gegl directly on OS X (which I can't get it compiled) * compile on a Linux VM that runs on VMware Fusion 7.1 * install Linux on my USB hard drive, boot my retina macbook from the Linux USB hard drive and compile from there?

I don't know whether I can really test performance of OpenCL in a VM. Also both the USB HD and the retina support USB 3, so in this case, will the hard disk no longer be the bottleneck?

On Tue, Dec 16, 2014 at 8:38 PM, Alexandre Prokoudine wrote:

13 дек. 2014 г. 10:56 пользователь написал:

Hi!

I have just learned OpenCL programming, and would like to get solid experience in OpenCL. I would like to port an existing GEGL filter to OpenCL.

I had a look at:

http://wiki.gimp.org/wiki/Hacking:Porting_filters_to_GEGL

There are a couple of filters listed that have a GEGL CPU implementation but without OpenCL implementation. How updated is this list?

I try to keep it up to date, but some mistakes may have crawled in :) Don't hesitate to report any inconsistencies you stumble upon.

Alex

_______________________________________________ gegl-developer-list mailing list
List address: gegl-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gegl-developer-list

_______________________________________________ gegl-developer-list mailing list
List address: gegl-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gegl-developer-list

_______________________________________________ gegl-developer-list mailing list
List address: gegl-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gegl-developer-list