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