Skip to content

Commit c890afd

Browse files
committed
squash me
1 parent e25a8fa commit c890afd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

GPU/GPUTracking/DataCompression/GPUTPCDecompression.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "GPUO2DataTypes.h"
1919
#include "GPUMemorySizeScalers.h"
2020
#include "GPULogging.h"
21+
#include <algorithm>
2122

2223
using namespace o2::gpu;
2324

@@ -116,7 +117,7 @@ void GPUTPCDecompression::RegisterMemoryAllocation()
116117

117118
void GPUTPCDecompression::SetMaxData(const GPUTrackingInOutPointers& io)
118119
{
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;
120+
uint32_t maxUnattachedClsPerSectorRow = std::max_element(mInputGPU.nSliceRowClusters, mInputGPU.nSliceRows);
121+
float clsRatio = mInputGPU.nUnattachedClusters > 0 ? float(mInputGPU.nAttachedClusters) / float(mInputGPU.nUnattachedClusters) : 1.0f;
121122
mMaxNativeClustersPerBuffer = std::min(maxUnattachedClsPerSectorRow * clsRatio, mRec->GetProcessingSettings().tpcMaxAttachedClustersPerSectorRow;)
122123
}

0 commit comments

Comments
 (0)