clover: Calculate optimal work group size when it's not specified by the user.
authorFrancisco Jerez <currojerez@riseup.net>
Mon, 4 Nov 2013 19:26:13 +0000 (11:26 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 4 Nov 2013 20:12:37 +0000 (12:12 -0800)
commitbf045bf9b409c47019fa7d9c859eaf8d50dd7032
treebad5999c02732ac455fb9d7896c13f3c3a3b40b0
parent67a303744434c9129931e9627d97e34af6bef8f3
clover: Calculate optimal work group size when it's not specified by the user.

Inspired by a patch sent to the mailing list by Tom Stellard, but
using a different algorithm to calculate the optimal block size that
has been found to be considerably more effective.

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/state_trackers/clover/Makefile.sources
src/gallium/state_trackers/clover/api/kernel.cpp
src/gallium/state_trackers/clover/core/kernel.cpp
src/gallium/state_trackers/clover/core/kernel.hpp
src/gallium/state_trackers/clover/util/factor.hpp [new file with mode: 0644]