Commit 5ed1d277 authored by Peter Eastman's avatar Peter Eastman
Browse files

Optimized number of work groups

parent 82f9a867
...@@ -49,7 +49,7 @@ OpenCLNonbondedUtilities::OpenCLNonbondedUtilities(OpenCLContext& context) : con ...@@ -49,7 +49,7 @@ OpenCLNonbondedUtilities::OpenCLNonbondedUtilities(OpenCLContext& context) : con
} }
else if (context.getSIMDWidth() == 32) { else if (context.getSIMDWidth() == 32) {
if (context.getSupports64BitGlobalAtomics()) { if (context.getSupports64BitGlobalAtomics()) {
numForceThreadBlocks = 4*context.getDevice().getInfo<CL_DEVICE_MAX_COMPUTE_UNITS>(); numForceThreadBlocks = 2*context.getDevice().getInfo<CL_DEVICE_MAX_COMPUTE_UNITS>();
forceThreadBlockSize = 256; forceThreadBlockSize = 256;
numForceBuffers = 2; numForceBuffers = 2;
} }
......
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