Skip to content

Commit f63cc55

Browse files
Set mStatWallTime again
1 parent 52b738c commit f63cc55

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

GPU/GPUTracking/Base/GPUReconstructionCPU.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ int32_t GPUReconstructionCPU::RunChains()
231231
GPUInfo("Allocated memory when starting processing %34s", "");
232232
PrintMemoryOverview();
233233
}
234+
234235
mTimerTotal.Start();
235236
const std::clock_t cpuTimerStart = std::clock();
236237
int32_t retVal = 0;
@@ -257,6 +258,7 @@ int32_t GPUReconstructionCPU::RunChains()
257258
PrintMemoryOverview();
258259
}
259260

261+
mStatWallTime = (mTimerTotal.GetElapsedTime() * 1000000. / mStatNEvents);
260262
std::string nEventReport;
261263
if (GetProcessingSettings().debugLevel >= 0 && mStatNEvents > 1) {
262264
nEventReport += " (avergage of " + std::to_string(mStatNEvents) + " runs)";
@@ -323,7 +325,7 @@ int32_t GPUReconstructionCPU::RunChains()
323325
double gpu_time = GetProcessingSettings().debugLevel >= 1 ? kernelTotal : -1.0;
324326
writer.row(' ', 0, "Wall", gpu_time, mStatCPUTime, mTimerTotal.GetElapsedTime(), 0, nEventReport);
325327
} else if (GetProcessingSettings().debugLevel >= 0) {
326-
GPUInfo("Total Wall Time: %10.0f us%s", mTimerTotal.GetElapsedTime() * 1000000 / mStatNEvents, nEventReport.c_str());
328+
GPUInfo("Total Wall Time: %10.0f us%s", mStatWallTime, nEventReport.c_str());
327329
}
328330
if (GetProcessingSettings().resetTimers) {
329331
mStatNEvents = 0;

0 commit comments

Comments
 (0)