Re: [Mesa-dev] [PATCH] RFC clover: calculate maximum workgroup size based on device

2013-10-24 Thread Francisco Jerez
Aaron Watry awa...@gmail.com writes: The maximum workgroup size for a given kernel is based on the capabilities of the device that it's being run on. Previously, we were just returning the maximum value of a size_t which is obviously wrong. This patch uses the device's capabilities, but

[Mesa-dev] [PATCH] RFC clover: calculate maximum workgroup size based on device

2013-10-23 Thread Aaron Watry
The maximum workgroup size for a given kernel is based on the capabilities of the device that it's being run on. Previously, we were just returning the maximum value of a size_t which is obviously wrong. This patch uses the device's capabilities, but doesn't take into account any resource usage

Re: [Mesa-dev] [PATCH] RFC clover: calculate maximum workgroup size based on device

2013-10-23 Thread Tom Stellard
On Wed, Oct 23, 2013 at 06:41:56PM -0500, Aaron Watry wrote: The maximum workgroup size for a given kernel is based on the capabilities of the device that it's being run on. Previously, we were just returning the maximum value of a size_t which is obviously wrong. This patch uses the