Results 1 to 3 of 3

Thread: Two dimensional global worksize

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    6

    Two dimensional global worksize

    Hello eveveryone,

    I'm writing a simple OpenCL program which needs a two dimensional global worksize. When using a one dimensional worksize, I used a variable of type size_t to pass the value of the global worksize to the enqueueNDRange function.
    What should I pass to the function now? A pointer to an array?

    I've been googling this but I got nowhere.

    Thanks,
    caseClosed

  2. #2
    Senior Member
    Join Date
    Mar 2011
    Location
    Seoul
    Posts
    118

    Re: Two dimensional global worksize

    Pass a pointer to a two-dimensional array of size_t. Remember that the get_local_size(0) should evenly divide get_global_size(0), and similarly get_local_size(1) should evenly divide get_global_size(1), and the limits on the number of work-items per work-group.

  3. #3
    Junior Member
    Join Date
    Jan 2012
    Posts
    6

    Re: Two dimensional global worksize

    Got it!

    Thanks a lot!!
    caseClosed

Similar Threads

  1. Support of Multi-dimensional arrays
    By Sheliak in forum Suggestions for next release
    Replies: 1
    Last Post: 10-19-2011, 04:16 PM
  2. Replies: 3
    Last Post: 05-22-2011, 07:39 PM

Posting Permissions

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