[gpu-processing] Counting segment size moved to kernel.