Commit 8e3be827 authored by Peter Eastman's avatar Peter Eastman
Browse files

Workaround for bug on Lion that incorrectly reports the maximum workgroup size

parent 9a1b72ff
......@@ -80,7 +80,7 @@ public:
// Work out the work group sizes for various kernels.
int maxGroupSize = context.getDevice().getInfo<CL_DEVICE_MAX_WORK_GROUP_SIZE>();
int maxGroupSize = std::min(256, (int) context.getDevice().getInfo<CL_DEVICE_MAX_WORK_GROUP_SIZE>());
for (rangeKernelSize = 1; rangeKernelSize*2 <= maxGroupSize; rangeKernelSize *= 2)
;
positionsKernelSize = rangeKernelSize;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment