Skip to content

Commit 1f03740

Browse files
committed
GPU multi-threading: Tuned values for number of CPU threads for clusterizer and sector-tracking with TBB
1 parent e02375b commit 1f03740

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

GPU/GPUTracking/Global/GPUChainTracking.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ int32_t GPUChainTracking::RunChain()
718718
}
719719

720720
if (GetProcessingSettings().autoAdjustHostThreads && !mRec->IsGPU() && mIOPtrs.clustersNative) {
721-
mRec->SetNActiveThreads(mIOPtrs.clustersNative->nClustersTotal / 5000);
721+
mRec->SetNActiveThreads(mIOPtrs.clustersNative->nClustersTotal / 1500);
722722
}
723723

724724
if (mIOPtrs.clustersNative && runRecoStep(RecoStep::TPCConversion, &GPUChainTracking::ConvertNativeToClusterData)) {

GPU/GPUTracking/Global/GPUChainTrackingClusterizer.cxx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ int32_t GPUChainTracking::RunTPCClusterizer(bool synchronizeOutput)
577577
return 1;
578578
}
579579
if (GetProcessingSettings().autoAdjustHostThreads && !doGPU) {
580-
mRec->SetNActiveThreads(mRec->MemoryScalers()->nTPCdigits / 20000);
580+
mRec->SetNActiveThreads(mRec->MemoryScalers()->nTPCdigits / 6000);
581581
}
582582

583583
mRec->MemoryScalers()->nTPCHits = mRec->MemoryScalers()->NTPCClusters(mRec->MemoryScalers()->nTPCdigits);
@@ -1067,6 +1067,10 @@ int32_t GPUChainTracking::RunTPCClusterizer(bool synchronizeOutput)
10671067
mPipelineNotifyCtx = nullptr;
10681068
}
10691069

1070+
if (GetProcessingSettings().autoAdjustHostThreads && !doGPU) {
1071+
mRec->SetNActiveThreads(-1);
1072+
}
1073+
10701074
#endif
10711075
return 0;
10721076
}

0 commit comments

Comments
 (0)