Skip to content

Commit 0a93b3a

Browse files
Fix overwriting of --PROCresetTimers
1 parent 61a9e88 commit 0a93b3a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

GPU/GPUTracking/Definitions/GPUSettingsList.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ AddOption(recoTaskTiming, bool, 0, "", 0, "Perform summary timing after whole re
335335
AddOption(deterministicGPUReconstruction, int32_t, -1, "", 0, "Make CPU and GPU debug output comparable (sort / skip concurrent parts), -1 = automatic if debugLevel >= 6 or deterministic compile flag set", def(1))
336336
AddOption(showOutputStat, bool, false, "", 0, "Print some track output statistics")
337337
AddOption(runCompressionStatistics, bool, false, "compressionStat", 0, "Run statistics and verification for cluster compression")
338-
AddOption(resetTimers, int8_t, 1, "", 0, "Reset timers every event")
338+
AddOption(resetTimers, int8_t, 0, "", 0, "Reset timers every event")
339339
AddOption(deviceTimers, bool, true, "", 0, "Use device timers instead of host-based time measurement")
340340
AddOption(keepAllMemory, bool, false, "", 0, "Allocate all memory on both device and host, and do not reuse")
341341
AddOption(keepDisplayMemory, bool, false, "", 0, "Like keepAllMemory, but only for memory required for event display")

GPU/GPUTracking/Standalone/Benchmark/standalone.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ int32_t RunBenchmark(GPUReconstruction* recUse, GPUChainTracking* chainTrackingU
627627
if (configStandalone.runs > 1) {
628628
printf("Run %d (thread %d)\n", iteration + 1, threadId);
629629
}
630-
recUse->SetResetTimers(iRun < configStandalone.runsInit);
630+
recUse->SetResetTimers(iRun < configStandalone.runsInit || configStandalone.proc.resetTimers);
631631
if (configStandalone.outputcontrolmem) {
632632
recUse->SetOutputControl(threadId ? outputmemoryPipeline.get() : outputmemory.get(), configStandalone.outputcontrolmem);
633633
}
@@ -685,7 +685,7 @@ int32_t RunBenchmark(GPUReconstruction* recUse, GPUChainTracking* chainTrackingU
685685
chainTrackingAsync->mIOPtrs.nRawClusters[i] = 0;
686686
}
687687
chainTrackingAsync->mIOPtrs.clustersNative = nullptr;
688-
recAsync->SetResetTimers(iRun < configStandalone.runsInit);
688+
recAsync->SetResetTimers(iRun < configStandalone.runsInit || configStandalone.proc.resetTimers);
689689
tmpRetVal = recAsync->RunChains();
690690
if (tmpRetVal == 0 || tmpRetVal == 2) {
691691
OutputStat(chainTrackingAsync, nullptr, nullptr);

0 commit comments

Comments
 (0)