Results 1 to 3 of 3

Thread: Store programs or kernels?

  1. #1

    Store programs or kernels?

    Hi gals/guys,

    I've an application where I basically apply some image processing algorithms on each image of the database. So far, I compile the OpenCL programs when I start the application and store them in some cl_program instance variables. When I consider a new image, I create the kernels, set the parameters, enqueue the kernel, etc. I was thinking that maybe it would be more efficient to store the kernels instead of the program? What do you think?

    Thanks.

  2. #2

    Re: Store programs or kernels?

    Yes, you should re-use your kernel instead of re-creating it all the time. It's hard to tell what goes on behind the scenes when one creates a new kernel (maybe most structures are cached, maybe not), so better use only one instance.

  3. #3

    Re: Store programs or kernels?

    I'm going to follow your advice.
    Thank you!

Similar Threads

  1. rebuilding programs
    By bienator in forum OpenCL
    Replies: 2
    Last Post: 02-24-2010, 07:02 AM
  2. Compiling the simple programs
    By ehsan2004 in forum OpenGL ES general technical discussions
    Replies: 6
    Last Post: 12-06-2004, 03:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •