From bc82c206db1248c9f6522521ea50fc64f28aad88 Mon Sep 17 00:00:00 2001 From: David Rohr Date: Wed, 26 Nov 2025 14:45:19 +0100 Subject: [PATCH] GPU: Fix time measurements of reco steps, synchronization was missing --- GPU/GPUTracking/Global/GPUChain.h | 1 + 1 file changed, 1 insertion(+) diff --git a/GPU/GPUTracking/Global/GPUChain.h b/GPU/GPUTracking/Global/GPUChain.h index e3a20ad81a2cb..9ce3da1092e83 100644 --- a/GPU/GPUTracking/Global/GPUChain.h +++ b/GPU/GPUTracking/Global/GPUChain.h @@ -297,6 +297,7 @@ inline int32_t GPUChain::runRecoStep(RecoStep step, S T::*func, Args... args) } int32_t retVal = (reinterpret_cast(this)->*func)(args...); if (timer) { + SynchronizeGPU(); timer->timerTotal.Stop(); timer->timerCPU += (double)(std::clock() - c) / CLOCKS_PER_SEC; }