Returns the number of work-groups that will execute a kernel for a specified dimension.

size_t get_num_groups(uint dimindx)

Description

Returns the number of work-groups that will execute a kernel for dimension identified by dimindx. Valid values of dimindx are 0 to get_work_dim() - 1. For other values of dimindx, get_num_groups() returns 1.

Also see

Specification