Commit 0e5073cf authored by Yutong Zhao's avatar Yutong Zhao
Browse files

Merge pull request #46 from peastman/master

Workaround for CUDA bug: only enable shuffle optimization on CUDA 5.5 or later
parents a950d697 b8b00973
......@@ -457,7 +457,9 @@ CUfunction CudaNonbondedUtilities::createInteractionKernel(const string& source,
}
replacements["LOAD_ATOM1_PARAMETERS"] = load1.str();
bool useShuffle = (context.getComputeCapability() >= 3.0);
int cudaVersion;
cuDriverGetVersion(&cudaVersion);
bool useShuffle = (context.getComputeCapability() >= 3.0 && cudaVersion >= 5050);
// Part 1. Defines for on diagonal exclusion tiles
stringstream loadLocal1;
......
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