File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
GPU/GPUTracking/DataCompression Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,8 @@ void GPUTPCDecompression::RegisterMemoryAllocation()
117117
118118void GPUTPCDecompression::SetMaxData (const GPUTrackingInOutPointers& io)
119119{
120- uint32_t maxUnattachedClsPerSectorRow = std::max_element (mInputGPU .nSliceRowClusters , mInputGPU .nSliceRows );
120+ uint32_t maxUnattachedClsPerSectorRow = std::max_element (mInputGPU .nSliceRowClusters , mInputGPU .nSliceRowClusters + mInputGPU . nSliceRows );
121121 float clsRatio = mInputGPU .nUnattachedClusters > 0 ? float (mInputGPU .nAttachedClusters ) / float (mInputGPU .nUnattachedClusters ) : 1 .0f ;
122+ uint32_t maxUnattachedClsPerSectorRow *= clsRatio;
122123 mMaxNativeClustersPerBuffer = std::min (maxUnattachedClsPerSectorRow * clsRatio, mRec ->GetProcessingSettings ().tpcMaxAttachedClustersPerSectorRow );
123124}
You can’t perform that action at this time.
0 commit comments