From 5d43901b2886d5c0e94fec02e1ee02cad92b0239 Mon Sep 17 00:00:00 2001 From: Alan Gray Date: Wed, 22 Sep 2021 07:51:07 -0700 Subject: [PATCH] Insert barrier after each GPU halo test --- src/gromacs/domdec/tests/haloexchange_mpi.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gromacs/domdec/tests/haloexchange_mpi.cpp b/src/gromacs/domdec/tests/haloexchange_mpi.cpp index 63659998ef..45b8364f80 100644 --- a/src/gromacs/domdec/tests/haloexchange_mpi.cpp +++ b/src/gromacs/domdec/tests/haloexchange_mpi.cpp @@ -164,6 +164,7 @@ void gpuHalo(gmx_domdec_t* dd, matrix box, HostVector* h_x, int numAtomsTo gpuHaloExchange[d][pulse].communicateHaloCoordinates(box, &coordinatesReadyOnDeviceEvent); } } + MPI_Barrier(MPI_COMM_WORLD); GpuEventSynchronizer haloCompletedEvent; haloCompletedEvent.markEvent(deviceStream); -- 2.22.0