Results 1 to 2 of 2

Thread: OpenCL Object Queries and speed

  1. #1
    Junior Member
    Join Date
    Aug 2010
    Posts
    1

    OpenCL Object Queries and speed

    This is probably a simple question, but I'm not finding any info since this is likely an implementation issue as opposed to a spec issue.

    How fast are queries like clGetMemObjectInfo? Are they simply lookups in the opaque cl_mem struct or are they more involved? I'm asking because I'm trying to decide how much information to keep track of myself v. how much to simple query through OpenCL calls, particularly for objects like cl_mem that might be used frequently.

  2. #2
    Senior Member
    Join Date
    May 2010
    Location
    Toronto, Canada
    Posts
    845

    Re: OpenCL Object Queries and speed

    As you say, that's going to be implementation-dependent. However, I would expect clGetMemObjectInfo() on any implementation to basically translate to a struct field lookup. The same should hold true for most if not all the other clGetXXXInfo() calls.

    If I were you I would just use the CL calls indiscriminately.
    Disclaimer: Employee of Qualcomm Canada. Any opinions expressed here are personal and do not necessarily reflect the views of my employer. LinkedIn profile.

Similar Threads

  1. Image3D object in OpenCL
    By xargon in forum OpenCL
    Replies: 0
    Last Post: 05-15-2012, 09:06 AM
  2. beginner to openGL-ES.. few queries...
    By sinu_gowde in forum OpenGL ES general technical discussions
    Replies: 1
    Last Post: 06-02-2009, 09:01 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
  •