Commit 76716f1c authored by Peter Eastman's avatar Peter Eastman
Browse files

Set default cache configuration for the context

parent 2bb875b0
......@@ -132,6 +132,7 @@ CudaContext::CudaContext(const System& system, int deviceIndex, bool useBlocking
flags += CU_CTX_SCHED_SPIN;
CHECK_RESULT(cuCtxCreate(&context, flags, device));
contextIsValid = true;
CHECK_RESULT(cuCtxSetCacheConfig(CU_FUNC_CACHE_PREFER_SHARED));
numAtoms = system.getNumParticles();
paddedNumAtoms = TileSize*((numAtoms+TileSize-1)/TileSize);
numAtomBlocks = (paddedNumAtoms+(TileSize-1))/TileSize;
......
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