Results 1 to 3 of 3

Thread: clEnqueueNDRangeKernel offset parameter

  1. #1
    Junior Member
    Join Date
    Nov 2011

    clEnqueueNDRangeKernel offset parameter

    Hi Guys,

    I have a really simple question:
    If I have a kernel with some parameters including cl_mem buffers, and I set an offset parameter for clEnqueueNDRangeKernel, will all my buffers read from that specified offset or just the first one?

    Thanks a lot,

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

    Re: clEnqueueNDRangeKernel offset parameter

    The question isn't well formed.

    Passing a global offset when you enqueue an NDRange kernel simply affects the values returned by get_global_id(), as explained in section 3.2 of the specification. It doesn't affect in any way the memory objects that you pass to the kernel.
    Disclaimer: Employee of Qualcomm Canada. Any opinions expressed here are personal and do not necessarily reflect the views of my employer. LinkedIn profile.

  3. #3
    Junior Member
    Join Date
    Nov 2011

    Re: clEnqueueNDRangeKernel offset parameter

    thanks for the reply, I got it

Similar Threads

  1. Vector offset!
    By Atmapuri in forum OpenCL
    Replies: 1
    Last Post: 05-05-2011, 12:53 AM
  2. global work offset in OpenCL 1.1
    By dominik in forum OpenCL
    Replies: 2
    Last Post: 01-13-2011, 12:13 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
Proudly hosted by Digital Ocean