Skip to content

Commit fd154bb

Browse files
Fix overwriting of --PROCresetTimers
1 parent 18e2441 commit fd154bb

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

GPU/GPUTracking/Definitions/GPUSettingsList.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ AddOption(recoTaskTiming, bool, 0, "", 0, "Perform summary timing after whole re
313313
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))
314314
AddOption(showOutputStat, bool, false, "", 0, "Print some track output statistics")
315315
AddOption(runCompressionStatistics, bool, false, "compressionStat", 0, "Run statistics and verification for cluster compression")
316-
AddOption(resetTimers, int8_t, 1, "", 0, "Reset timers every event")
316+
AddOption(resetTimers, int8_t, 0, "", 0, "Reset timers every event")
317317
AddOption(deviceTimers, bool, true, "", 0, "Use device timers instead of host-based time measurement")
318318
AddOption(keepAllMemory, bool, false, "", 0, "Allocate all memory on both device and host, and do not reuse")
319319
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)