clover: implement CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE
authorGrigori Goronzy <greg@chown.ath.cx>
Thu, 28 May 2015 11:01:51 +0000 (13:01 +0200)
committerGrigori Goronzy <greg@chown.ath.cx>
Mon, 29 Jun 2015 11:24:37 +0000 (13:24 +0200)
commitd15b32ebded278243eb648bb9ecd4c5f5d6d0569
tree5f9f347641e1a5751f5a463a723d67a8d450d7a3
parent249a9df7fce0a6bebc70852ab583c5324208bf06
clover: implement CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE

Work-group size should always be aligned to subgroup size; this is a
basic requirement, otherwise some work-items will be no-operation.

It might make sense to refine the value according to a kernel's
resource usage, but that's a possible optimization for the future.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/api/kernel.cpp
src/gallium/state_trackers/clover/core/device.cpp
src/gallium/state_trackers/clover/core/device.hpp