gpu.c: extract_grid_size: coalesce grid instead of coalescing grid size