"vscode:/vscode.git/clone" did not exist on "309d12e7b6aaadf552113fe2dce8b62835e4e7d1"
Commit dac874af authored by Peter Eastman's avatar Peter Eastman
Browse files

Changed number of nonbonded thread blocks to improve performance

parent c77af6e9
......@@ -51,7 +51,7 @@ CudaNonbondedUtilities::CudaNonbondedUtilities(CudaContext& context) : context(c
string errorMessage = "Error initializing nonbonded utilities";
int multiprocessors;
CHECK_RESULT(cuDeviceGetAttribute(&multiprocessors, CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT, context.getDevice()));
numForceThreadBlocks = 2*multiprocessors;
numForceThreadBlocks = 3*multiprocessors;
forceThreadBlockSize = (context.getComputeCapability() < 2.0 ? 128 : 256);
}
......
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