"tests/TestCustomNonbondedForce.h" did not exist on "b2af59a8534d8c0c77d469ba09576985785eed64"
Commit c2d9cc7b authored by one's avatar one
Browse files

Avoid host wait in PME post-sync

parent c1d643e2
......@@ -194,7 +194,9 @@ public:
}
double computeForceAndEnergy(bool includeForces, bool includeEnergy, int groups) {
if ((groups&(1<<forceGroup)) != 0) {
event->wait();
// Keep the dependency on reciprocal-space work, but avoid stalling the host
// when the default queue can wait for the PME queue asynchronously.
event->queueWait(cc.getCurrentQueue());
if (includeEnergy)
addEnergyKernel->execute(pmeEnergyBuffer.getSize());
}
......
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