Results 1 to 2 of 2

Thread: Work group size

  1. #1
    Junior Member
    Join Date
    Feb 2011
    Posts
    4

    Work group size

    I got very strande issue with local group size.
    I proceed matrix 512x512 (my global group size) and had a local group size (256,256). The module worked without any problems using C API.
    Now I rewrote the program using C++ Wrapper. The kernel code stay the same, but I got message about wrong work group size from enqueueNDRange(). The biggest size I can use now is 16x16.
    Can anybody explain what's going on?

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

    Re: Work group size

    I have trouble believing that your hardware supports a work group size of 256x256. That would be 65536. Typical hardware supports a maximum work-group size of 256 or 512.

    Is it possible that your C code is actually using a work-group size of 256 and that's why it works fine? You can query your device's max work group size with clGetDeviceInfo() and CL_DEVICE_MAX_WORK_GROUP_SIZE.
    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. Regarding the work group size
    By shahsaurabh1990 in forum OpenCL
    Replies: 1
    Last Post: 03-14-2013, 05:12 AM
  2. Replies: 0
    Last Post: 02-10-2013, 01:55 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
  •