23#include "GPUParam.inc"
26#if !defined(GPUCA_GPUCODE)
39#if !defined(GPUCA_GPUCODE)
48 throw std::runtime_error(
"Sector not set");
112 computePointerWithAlignment(mem, mTracklets, mNMaxTracklets);
113 computePointerWithAlignment(mem, mTrackletRowHits, mNMaxRowHits);
119 computePointerWithAlignment(mem, mTracks, mNMaxTracks);
120 computePointerWithAlignment(mem, mTrackHits, mNMaxTrackHits);
127 mNMaxStartHits = mData.NumberOfHits();
132 uint32_t maxRowHits = 0;
146#ifdef GPUCA_SORT_STARTHITS_GPU
158 mNMaxTracklets = mCommonMem->nStartHits;
159 mNMaxTracks = mNMaxTracklets * 2 + 50;
168 if (NHitsTotal() < 1) {
169 mCommonMem->nTracks = mCommonMem->nTrackHits = 0;
static void computePointerWithAlignment(T *&basePtr, S *&objPtr, size_t nEntries=1)
void AllocateAndInitializeLate()
RecoStepField GetRecoStepsGPU() const
int16_t RegisterMemoryAllocation(T *proc, void *(T::*setPtr)(void *), int32_t type, const char *name="", const GPUMemoryReuse &re=GPUMemoryReuse())
GPUMemoryResource & Res(int16_t num)
GPUMemorySizeScalers * MemoryScalers()
const GPUSettingsProcessing & GetProcessingSettings() const
void * SetPointersScratchHost(void *mem)
void * SetPointersDataWeights(void *mem)
void InitializeProcessor()
void * SetPointersDataRows(void *mem)
void * SetPointersOutput(void *mem)
void SetMaxData(const GPUTrackingInOutPointers &io)
void * SetPointersDataLinks(void *mem)
void * SetPointersDataScratch(void *mem)
void InitializeRows(const GPUParam *param)
void * SetPointersCommon(void *mem)
void RegisterMemoryAllocation()
void * SetPointersTracklets(void *mem)
void * SetPointersScratch(void *mem)
void SetSector(int32_t iSector)
void * SetPointersScratch(void *mem, bool idsOnGPU)
void * SetPointersWeights(void *mem)
void * SetPointersClusterIds(void *mem, bool idsOnGPU)
void * SetPointersLinks(void *mem)
void * SetPointersRows(void *mem)
GLint GLint GLsizei GLint GLenum GLenum type
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
Global TPC definitions and constants.
size_t NTPCSectorTrackHits(size_t tpcHits, uint8_t withRejection=0)
size_t NTPCTracklets(size_t tpcHits)
size_t NTPCTrackletHits(size_t tpcHits)
size_t NTPCSectorTracks(size_t tpcHits)
size_t NTPCRowStartHits(size_t tpcHits)
size_t NTPCStartHits(size_t tpcHits)
const o2::tpc::ClusterNativeAccess * clustersNative
unsigned int nClusters[constants::MAXSECTOR][constants::MAXGLOBALPADROW]