Skip to content

Commit bc82c20

Browse files
committed
GPU: Fix time measurements of reco steps, synchronization was missing
1 parent 72b9f51 commit bc82c20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

GPU/GPUTracking/Global/GPUChain.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ inline int32_t GPUChain::runRecoStep(RecoStep step, S T::*func, Args... args)
297297
}
298298
int32_t retVal = (reinterpret_cast<T*>(this)->*func)(args...);
299299
if (timer) {
300+
SynchronizeGPU();
300301
timer->timerTotal.Stop();
301302
timer->timerCPU += (double)(std::clock() - c) / CLOCKS_PER_SEC;
302303
}

0 commit comments

Comments
 (0)