From ed89b8293a81fb437c36979752c0b69a3a76987b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Szil=C3=A1rd=20P=C3=A1ll?= Date: Thu, 13 Dec 2018 16:54:15 +0100 Subject: [PATCH] Avoid spurious timing in bonded GPU launch subcounter Change-Id: I09d9e6bf1b61b9578b0a39b7e0d21ac63f865057 --- src/gromacs/mdlib/sim_util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gromacs/mdlib/sim_util.cpp b/src/gromacs/mdlib/sim_util.cpp index 5205830b05..efca232e6f 100644 --- a/src/gromacs/mdlib/sim_util.cpp +++ b/src/gromacs/mdlib/sim_util.cpp @@ -1386,12 +1386,12 @@ static void do_force_cutsVERLET(FILE *fplog, flags, eatLocal, ppForceWorkload->haveGpuBondedWork); wallcycle_sub_stop(wcycle, ewcsLAUNCH_GPU_NONBONDED); - wallcycle_sub_start_nocount(wcycle, ewcsLAUNCH_GPU_BONDED); if (ppForceWorkload->haveGpuBondedWork && (flags & GMX_FORCE_ENERGY)) { + wallcycle_sub_start_nocount(wcycle, ewcsLAUNCH_GPU_BONDED); fr->gpuBonded->launchEnergyTransfer(); + wallcycle_sub_stop(wcycle, ewcsLAUNCH_GPU_BONDED); } - wallcycle_sub_stop(wcycle, ewcsLAUNCH_GPU_BONDED); wallcycle_stop(wcycle, ewcLAUNCH_GPU); } -- 2.11.4.GIT