Skip to content

Commit fb593d6

Browse files
committed
GPU: If deterministic compile time option set, default for deterministic runtime setting should be 1
1 parent ea2972e commit fb593d6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

GPU/GPUTracking/Base/GPUReconstruction.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,11 @@ int32_t GPUReconstruction::InitPhaseBeforeDevice()
264264
mProcessingSettings->recoTaskTiming = true;
265265
}
266266
if (GetProcessingSettings().deterministicGPUReconstruction == -1) {
267+
#ifdef GPUCA_DETERMINISTIC_MODE
268+
mProcessingSettings->deterministicGPUReconstruction = 1;
269+
#else
267270
mProcessingSettings->deterministicGPUReconstruction = GetProcessingSettings().debugLevel >= 6;
271+
#endif
268272
}
269273
if (GetProcessingSettings().deterministicGPUReconstruction) {
270274
#ifndef GPUCA_DETERMINISTIC_MODE

GPU/GPUTracking/Definitions/GPUSettingsList.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ AddOption(debugMask, uint32_t, (1 << 18) - 1, "debugMask", 0, "Mask for debug ou
306306
AddOption(debugLogSuffix, std::string, "", "debugSuffix", 0, "Suffix for debug log files with --debug 6")
307307
AddOption(serializeGPU, int8_t, 0, "", 0, "Synchronize after each kernel call (bit 1) and DMA transfer (bit 2) and identify failures")
308308
AddOption(recoTaskTiming, bool, 0, "", 0, "Perform summary timing after whole reconstruction tasks")
309-
AddOption(deterministicGPUReconstruction, int32_t, -1, "", 0, "Make CPU and GPU debug output comparable (sort / skip concurrent parts), -1 = automatic if debugLevel >= 6", def(1))
309+
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))
310310
AddOption(showOutputStat, bool, false, "", 0, "Print some track output statistics")
311311
AddOption(runCompressionStatistics, bool, false, "compressionStat", 0, "Run statistics and verification for cluster compression")
312312
AddOption(resetTimers, int8_t, 1, "", 0, "Reset timers every event")

0 commit comments

Comments
 (0)