File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
GPU/GPUTracking/DataCompression Expand file tree Collapse file tree 1 file changed +3
-2
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,7 +117,7 @@ void GPUTPCDecompression::RegisterMemoryAllocation()
116117
117118void 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}
You can’t perform that action at this time.
0 commit comments