cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

niravshah00
Journeyman III

Max number of Work groups

Max work items dimensions:             3
    Max work items[0]:                 1024
    Max work items[1]:                 1024
    Max work items[2]:                 1024
  Max work group size:                 1024

With this as my device information what is the max number of work groups i can use and what is the max workgroup size i can use if both has to be in 3 dimension

I would be using the work group id and work item id as the values of my variables.I have six variables.

3 variables would have a huge range and the other 3 would have small range .

Little confused on how to formulate my kernel.

 

0 Likes
3 Replies

The largest any single dimension can be 1024, the largest total work-items per group is 1024.

So if you have X dimension of 1024, then Y and Z must be 1.
Basically, the product of all dimensions must be <= Max work group size.

[edit] fixed typo, work-item per thread ==> work-item per group
0 Likes

Ok that i understood but how many work groups can be created each have 10 x 10 x 10 work items in it( <1024)

Can i have 1000,1000,1000 work groups < 2^32 -1  (address bit in my device is 32)

and each of this work group having 10,10,10 work items

 

Is this ok???????

0 Likes

yes. number of work group is practicali unlimited or it is limited by maximum of work items.

0 Likes