mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
The generator function for atomic_fence uses the current workgroup size to determine the number of non atomic variables per thread in the kernel. The kernel should hence be regenerated when the workgroup size changes. However regenerating the kernel can itself change the workgroup size. This change introduces an iterative loop that reduces the workgroup sizes by 2 each time re-generating the kernel until we find one that works (or exit at groupsize == 1) Change-Id: Ic32fe967e32de6643e01c6775f4bddbcad0a299a