Skip to content

Commit 949ebc7

Browse files
committed
squash me
1 parent c2e73b6 commit 949ebc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

GPU/GPUTracking/DataCompression/GPUTPCDecompression.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ void GPUTPCDecompression::RegisterMemoryAllocation()
117117

118118
void 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
}

0 commit comments

Comments
 (0)