Skip to content

Commit 0a7fffe

Browse files
davidrohrsawenzel
authored andcommitted
GPU: Allow overriding number of TPC Clusterizer lanes for CPU processing
1 parent f507938 commit 0a7fffe

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

GPU/GPUTracking/Base/GPUReconstruction.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,11 @@ int GPUReconstruction::InitPhaseBeforeDevice()
271271
if (!(mRecoStepsGPU & GPUDataTypes::RecoStep::TPCMerging)) {
272272
mProcessingSettings.mergerSortTracks = false;
273273
}
274+
if (mProcessingSettings.nTPCClustererLanes == -1) {
275+
mProcessingSettings.nTPCClustererLanes = IsGPU() ? 3 : 1;
276+
}
274277
if (!IsGPU()) {
275278
mProcessingSettings.nDeviceHelperThreads = 0;
276-
mProcessingSettings.nTPCClustererLanes = 1;
277279
}
278280

279281
if (param().rec.nonConsecutiveIDs) {

GPU/GPUTracking/Definitions/GPUSettingsList.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ AddOption(ompKernels, unsigned char, 2, "", 0, "Parallelize with OMP inside kern
151151
AddOption(ompAutoNThreads, bool, true, "", 0, "Auto-adjust number of OMP threads, decreasing the number for small input data")
152152
AddOption(nDeviceHelperThreads, int, 1, "", 0, "Number of CPU helper threads for CPU processing")
153153
AddOption(nStreams, char, 8, "", 0, "Number of GPU streams / command queues")
154-
AddOption(nTPCClustererLanes, char, 3, "", 0, "Number of TPC clusterers that can run in parallel")
154+
AddOption(nTPCClustererLanes, char, -1, "", 0, "Number of TPC clusterers that can run in parallel (-1 = autoset)")
155155
AddOption(trackletSelectorSlices, char, -1, "", 0, "Number of slices to processes in parallel at max")
156156
AddOption(trackletConstructorInPipeline, char, -1, "", 0, "Run tracklet constructor in the pipeline")
157157
AddOption(trackletSelectorInPipeline, char, -1, "", 0, "Run tracklet selector in the pipeline")

0 commit comments

Comments
 (0)