File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
GPU/GPUTracking/DataCompression Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1818#include " GPUO2DataTypes.h"
1919#include " GPUMemorySizeScalers.h"
2020#include " GPULogging.h"
21+ #include < algorithm>
2122
2223using namespace o2 ::gpu;
2324
@@ -116,5 +117,8 @@ void GPUTPCDecompression::RegisterMemoryAllocation()
116117
117118void GPUTPCDecompression::SetMaxData (const GPUTrackingInOutPointers& io)
118119{
119- mMaxNativeClustersPerBuffer = mRec ->GetProcessingSettings ().tpcMaxAttachedClustersPerSectorRow ;
120+ mMaxNativeClustersPerBuffer = *std::max_element (mInputGPU .nSliceRowClusters , mInputGPU .nSliceRowClusters + mInputGPU .nSliceRows );
121+ float clsRatio = mInputGPU .nUnattachedClusters > 0 ? float (mInputGPU .nAttachedClusters ) / float (mInputGPU .nUnattachedClusters ) : 1 .0f ;
122+ mMaxNativeClustersPerBuffer *= clsRatio;
123+ mMaxNativeClustersPerBuffer = std::min (mMaxNativeClustersPerBuffer , mRec ->GetProcessingSettings ().tpcMaxAttachedClustersPerSectorRow );
120124}
You can’t perform that action at this time.
0 commit comments