Commit 624c878f authored by Peter Eastman's avatar Peter Eastman
Browse files

CudaApplyConstraintsKernel::apply() did not set the context as current,...

CudaApplyConstraintsKernel::apply() did not set the context as current, leading to errors when using multiple contexts
parent 29a301b4
......@@ -383,6 +383,7 @@ void CudaApplyConstraintsKernel::initialize(const System& system) {
}
void CudaApplyConstraintsKernel::apply(ContextImpl& context, double tol) {
cu.setAsCurrent();
if (!hasInitializedKernel) {
hasInitializedKernel = true;
map<string, string> defines;
......
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