OpenCL: Optimal work group size
If you ever try to determine the optimal work group size, you have to keep an odd thing in mind: most implementations have significant performance boosts for powers of two. So just benchmark performance for 512, 1024, 2048... workers. In tests, 1024 workers performed 60 times better than 1023 or 1025 workers.











