Insert barrier after each GPU halo test
authorAlan Gray <alangray3@gmail.com>
Wed, 22 Sep 2021 14:51:07 +0000 (07:51 -0700)
committerMark Abraham <mark.j.abraham@gmail.com>
Tue, 26 Oct 2021 13:03:08 +0000 (13:03 +0000)
src/gromacs/domdec/tests/haloexchange_mpi.cpp

index 63659998efe79bd3fb26e9ea20cf628a09623584..45b8364f8087a5a81373f9748ceb95d53baa446e 100644 (file)
@@ -164,6 +164,7 @@ void gpuHalo(gmx_domdec_t* dd, matrix box, HostVector<RVec>* h_x, int numAtomsTo
             gpuHaloExchange[d][pulse].communicateHaloCoordinates(box, &coordinatesReadyOnDeviceEvent);
         }
     }
+    MPI_Barrier(MPI_COMM_WORLD);
 
     GpuEventSynchronizer haloCompletedEvent;
     haloCompletedEvent.markEvent(deviceStream);