@@ -40,7 +40,7 @@ using namespace o2::tpc;
4040#if !defined(GPUCA_GPUCODE)
4141
4242GPUTPCTracker::GPUTPCTracker ()
43- : GPUProcessor(), mLinkTmpMemory(nullptr ), mISlice(-1 ), mData(), mNMaxStartHits(0 ), mNMaxRowStartHits(0 ), mNMaxTracklets(0 ), mNMaxRowHits(0 ), mNMaxTracks(0 ), mNMaxTrackHits(0 ), mMemoryResLinks(-1 ), mMemoryResScratchHost(-1 ), mMemoryResCommon(-1 ), mMemoryResTracklets(-1 ), mMemoryResOutput(-1 ), mMemoryResSliceScratch(-1 ), mMemoryResSliceInput(- 1 ), mRowStartHitCountOffset(nullptr ), mTrackletTmpStartHits(nullptr ), mGPUTrackletTemp(nullptr ), mGPUParametersConst(), mCommonMem(nullptr ), mTrackletStartHits(nullptr ), mTracklets(nullptr ), mTrackletRowHits(nullptr ), mTracks(nullptr ), mTrackHits(nullptr ), mOutput(nullptr ), mOutputMemory(nullptr )
43+ : GPUProcessor(), mLinkTmpMemory(nullptr ), mISlice(-1 ), mData(), mNMaxStartHits(0 ), mNMaxRowStartHits(0 ), mNMaxTracklets(0 ), mNMaxRowHits(0 ), mNMaxTracks(0 ), mNMaxTrackHits(0 ), mMemoryResLinks(-1 ), mMemoryResScratchHost(-1 ), mMemoryResCommon(-1 ), mMemoryResTracklets(-1 ), mMemoryResOutput(-1 ), mMemoryResSliceScratch(-1 ), mRowStartHitCountOffset(nullptr ), mTrackletTmpStartHits(nullptr ), mGPUTrackletTemp(nullptr ), mGPUParametersConst(), mCommonMem(nullptr ), mTrackletStartHits(nullptr ), mTracklets(nullptr ), mTrackletRowHits(nullptr ), mTracks(nullptr ), mTrackHits(nullptr ), mOutput(nullptr ), mOutputMemory(nullptr )
4444{
4545}
4646
@@ -62,15 +62,9 @@ void GPUTPCTracker::InitializeProcessor()
6262 SetupCommonMemory ();
6363}
6464
65- bool GPUTPCTracker::SliceDataOnGPU ()
66- {
67- return (mRec ->GetRecoStepsGPU () & GPUDataTypes::RecoStep::TPCSliceTracking) && (mRec ->GetRecoStepsGPU () & GPUDataTypes::RecoStep::TPCConversion) && (mRec ->GetConstantMem ().ioPtrs .clustersNative || mRec ->GetConstantMem ().ioPtrs .tpcZS || mRec ->GetConstantMem ().ioPtrs .tpcPackedDigits );
68- }
69-
70- void * GPUTPCTracker::SetPointersDataInput (void * mem) { return mData .SetPointersInput (mem, mRec ->GetRecoStepsGPU () & GPUDataTypes::RecoStep::TPCMerging, SliceDataOnGPU ()); }
7165void * GPUTPCTracker::SetPointersDataLinks (void * mem) { return mData .SetPointersLinks (mem); }
7266void * GPUTPCTracker::SetPointersDataWeights (void * mem) { return mData .SetPointersWeights (mem); }
73- void * GPUTPCTracker::SetPointersDataScratch (void * mem) { return mData .SetPointersScratch (mem, mRec ->GetRecoStepsGPU () & GPUDataTypes::RecoStep::TPCMerging, SliceDataOnGPU () ); }
67+ void * GPUTPCTracker::SetPointersDataScratch (void * mem) { return mData .SetPointersScratch (mem, mRec ->GetRecoStepsGPU () & GPUDataTypes::RecoStep::TPCMerging); }
7468void * GPUTPCTracker::SetPointersDataRows (void * mem) { return mData .SetPointersRows (mem); }
7569
7670void * GPUTPCTracker::SetPointersScratch (void * mem)
@@ -108,7 +102,6 @@ void GPUTPCTracker::RegisterMemoryAllocation()
108102 GPUMemoryReuse reLinks{reuseCondition, GPUMemoryReuse::REUSE_1TO1, GPUMemoryReuse::TrackerDataLinks, (uint16_t )(mISlice % mRec ->GetProcessingSettings ().nStreams )};
109103 mMemoryResLinks = mRec ->RegisterMemoryAllocation (this , &GPUTPCTracker::SetPointersDataLinks, GPUMemoryResource::MEMORY_SCRATCH | GPUMemoryResource::MEMORY_STACK, " TPCSliceLinks" , reLinks);
110104 mMemoryResSliceScratch = mRec ->RegisterMemoryAllocation (this , &GPUTPCTracker::SetPointersDataScratch, GPUMemoryResource::MEMORY_SCRATCH | GPUMemoryResource::MEMORY_STACK | GPUMemoryResource::MEMORY_CUSTOM, " TPCSliceScratch" );
111- mMemoryResSliceInput = mRec ->RegisterMemoryAllocation (this , &GPUTPCTracker::SetPointersDataInput, GPUMemoryResource::MEMORY_INPUT | GPUMemoryResource::MEMORY_STACK | GPUMemoryResource::MEMORY_CUSTOM, " TPCSliceInput" );
112105 GPUMemoryReuse reWeights{reuseCondition, GPUMemoryReuse::REUSE_1TO1, GPUMemoryReuse::TrackerDataWeights, (uint16_t )(mISlice % mRec ->GetProcessingSettings ().nStreams )};
113106 mRec ->RegisterMemoryAllocation (this , &GPUTPCTracker::SetPointersDataWeights, GPUMemoryResource::MEMORY_SCRATCH | GPUMemoryResource::MEMORY_STACK, " TPCSliceWeights" , reWeights);
114107 GPUMemoryReuse reScratch{reuseCondition, GPUMemoryReuse::REUSE_1TO1, GPUMemoryReuse::TrackerScratch, (uint16_t )(mISlice % mRec ->GetProcessingSettings ().nStreams )};
0 commit comments