@@ -218,27 +218,23 @@ int32_t GPUChainTracking::RunTPCTrackingSectors_internal()
218218 AllocateRegisteredMemory (trk.MemoryResOutput ());
219219 }
220220
221- if (!(doGPU || GetProcessingSettings ().debugLevel >= 1 ) || GetProcessingSettings ().trackletConstructorInPipeline ) {
222- runKernel<GPUTPCTrackletConstructor>({GetGridAuto (useStream), {iSector}});
223- DoDebugAndDump (RecoStep::TPCSectorTracking, 128 , trk, &GPUTPCTracker::DumpTrackletHits, *mDebugFile );
224- if (GetProcessingSettings ().debugMask & 256 && GetProcessingSettings ().deterministicGPUReconstruction < 2 ) {
225- trk.DumpHitWeights (*mDebugFile );
226- }
221+ runKernel<GPUTPCTrackletConstructor>({GetGridAuto (useStream), {iSector}});
222+ DoDebugAndDump (RecoStep::TPCSectorTracking, 128 , trk, &GPUTPCTracker::DumpTrackletHits, *mDebugFile );
223+ if (GetProcessingSettings ().debugMask & 256 && GetProcessingSettings ().deterministicGPUReconstruction < 2 ) {
224+ trk.DumpHitWeights (*mDebugFile );
227225 }
228226
229- if (!(doGPU || GetProcessingSettings ().debugLevel >= 1 ) || GetProcessingSettings ().trackletConstructorInPipeline ) {
230- runKernel<GPUTPCTrackletSelector>({GetGridAuto (useStream), {iSector}});
231- runKernel<GPUTPCExtrapolationTrackingCopyNumbers>({{1 , -ThreadCount (), useStream}, {iSector}}, 1 );
232- if (GetProcessingSettings ().deterministicGPUReconstruction ) {
233- runKernel<GPUTPCSectorDebugSortKernels, GPUTPCSectorDebugSortKernels::sectorTracks>({GetGrid (1 , 1 , useStream), {iSector}});
234- }
235- TransferMemoryResourceLinkToHost (RecoStep::TPCSectorTracking, trk.MemoryResCommon (), useStream, &mEvents ->sector [iSector]);
236- streamMap[iSector] = useStream;
237- if (GetProcessingSettings ().debugLevel >= 3 ) {
238- GPUInfo (" Sector %u, Number of tracks: %d" , iSector, *trk.NTracks ());
239- }
240- DoDebugAndDump (RecoStep::TPCSectorTracking, 512 , trk, &GPUTPCTracker::DumpTrackHits, *mDebugFile );
227+ runKernel<GPUTPCTrackletSelector>({GetGridAuto (useStream), {iSector}});
228+ runKernel<GPUTPCExtrapolationTrackingCopyNumbers>({{1 , -ThreadCount (), useStream}, {iSector}}, 1 );
229+ if (GetProcessingSettings ().deterministicGPUReconstruction ) {
230+ runKernel<GPUTPCSectorDebugSortKernels, GPUTPCSectorDebugSortKernels::sectorTracks>({GetGrid (1 , 1 , useStream), {iSector}});
241231 }
232+ TransferMemoryResourceLinkToHost (RecoStep::TPCSectorTracking, trk.MemoryResCommon (), useStream, &mEvents ->sector [iSector]);
233+ streamMap[iSector] = useStream;
234+ if (GetProcessingSettings ().debugLevel >= 3 ) {
235+ GPUInfo (" Sector %u, Number of tracks: %d" , iSector, *trk.NTracks ());
236+ }
237+ DoDebugAndDump (RecoStep::TPCSectorTracking, 512 , trk, &GPUTPCTracker::DumpTrackHits, *mDebugFile );
242238 });
243239 mRec ->SetNActiveThreadsOuterLoop (1 );
244240 if (error) {
@@ -280,11 +276,6 @@ int32_t GPUChainTracking::RunTPCTrackingSectors_internal()
280276
281277 if (GetProcessingSettings ().keepAllMemory ) {
282278 TransferMemoryResourcesToHost (RecoStep::TPCSectorTracking, &processors ()->tpcTrackers [iSector], -1 , true );
283- if (!GetProcessingSettings ().trackletConstructorInPipeline ) {
284- if (GetProcessingSettings ().debugMask & 256 && GetProcessingSettings ().deterministicGPUReconstruction < 2 ) {
285- processors ()->tpcTrackers [iSector].DumpHitWeights (*mDebugFile );
286- }
287- }
288279 }
289280
290281 if (transferRunning[iSector]) {
0 commit comments