Skip to content

Commit fcfda95

Browse files
Default resetTimers to 1
1 parent f09d2f0 commit fcfda95

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

GPU/GPUTracking/Definitions/GPUSettingsList.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ AddOption(recoTaskTiming, bool, 0, "", 0, "Perform summary timing after whole re
336336
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))
337337
AddOption(showOutputStat, bool, false, "", 0, "Print some track output statistics")
338338
AddOption(runCompressionStatistics, bool, false, "compressionStat", 0, "Run statistics and verification for cluster compression")
339-
AddOption(resetTimers, int8_t, 0, "", 0, "Reset timers every event")
339+
AddOption(resetTimers, int8_t, 1, "", 0, "Reset timers every event")
340340
AddOption(deviceTimers, bool, true, "", 0, "Use device timers instead of host-based time measurement")
341341
AddOption(keepAllMemory, bool, false, "", 0, "Allocate all memory on both device and host, and do not reuse")
342342
AddOption(keepDisplayMemory, bool, false, "", 0, "Like keepAllMemory, but only for memory required for event display")

GPU/GPUTracking/Standalone/Benchmark/standalone.cxx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,9 @@ 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 || configStandalone.proc.resetTimers);
630+
if (configStandalone.runsInit > 0 && configStandalone.debugCSV.empty()) {
631+
recUse->SetResetTimers(iRun < configStandalone.runsInit);
632+
}
631633
if (configStandalone.outputcontrolmem) {
632634
recUse->SetOutputControl(threadId ? outputmemoryPipeline.get() : outputmemory.get(), configStandalone.outputcontrolmem);
633635
}
@@ -685,7 +687,9 @@ int32_t RunBenchmark(GPUReconstruction* recUse, GPUChainTracking* chainTrackingU
685687
chainTrackingAsync->mIOPtrs.nRawClusters[i] = 0;
686688
}
687689
chainTrackingAsync->mIOPtrs.clustersNative = nullptr;
688-
recAsync->SetResetTimers(iRun < configStandalone.runsInit || configStandalone.proc.resetTimers);
690+
if (configStandalone.runsInit > 0 && configStandalone.debugCSV.empty()) {
691+
recAsync->SetResetTimers(iRun < configStandalone.runsInit);
692+
}
689693
tmpRetVal = recAsync->RunChains();
690694
if (tmpRetVal == 0 || tmpRetVal == 2) {
691695
OutputStat(chainTrackingAsync, nullptr, nullptr);

0 commit comments

Comments
 (0)