Results 1 to 2 of 2

Thread: reg workitems

  1. #1
    Junior Member
    Join Date
    Mar 2011
    Posts
    13

    reg workitems

    how to set the number of local work groups
    what we have to set for globalworksize parameter
    and local work size parameter.

    i want to creat a local workgroup size =9;
    wat i have set the above mentioned parameters

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

    Re: reg workitems

    If you want N work-groups and each work-group has M work-items,

    Code :
    size_t local_size = M;
    size_t global_size = N * M;
    errcode = clEnqueueNDrangeKernel(myCommandQueue, myKernel, 1, NULL /* offset */, &global_size, &local_size, 0, NULL, NULL);

    Notice that a work-group size of 9 is very small and it will likely impact performance.
    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. Dynamic workitems insertion while kernel is running
    By whn in forum Suggestions for next release
    Replies: 0
    Last Post: 10-26-2011, 07:08 PM
  2. Replies: 4
    Last Post: 09-02-2011, 02:58 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
  •