From: Alan Gray Date: Wed, 22 Sep 2021 14:51:07 +0000 (-0700) Subject: Insert barrier after each GPU halo test X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=5d43901b2886d5c0e94fec02e1ee02cad92b0239;hp=bbca0c8f0492b91432afc5034fd9aa9f6ef5ff28;p=alexxy%2Fgromacs.git Insert barrier after each GPU halo test --- 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);