1068a1069,1079
>
> void
> Wavefront::computeActualWgSz(NDRange *ndr)
> {
> actualWgSzTotal = 1;
> for (int d = 0; d < 3; ++d) {
> actualWgSz[d] = std::min(workGroupSz[d],
> gridSz[d] - ndr->wgId[d] * workGroupSz[d]);
> actualWgSzTotal *= actualWgSz[d];
> }
> }