2424namespace o2 ::its::gpu
2525{
2626
27- template <int NLayers = 7 >
27+ template <int NLayers>
2828class TimeFrameGPU final : public TimeFrame<NLayers>
2929{
3030 using typename TimeFrame<NLayers>::CellSeedN;
@@ -34,7 +34,7 @@ class TimeFrameGPU final : public TimeFrame<NLayers>
3434
3535 public:
3636 TimeFrameGPU () = default ;
37- ~TimeFrameGPU () = default ;
37+ ~TimeFrameGPU () final = default ;
3838
3939 // / Most relevant operations
4040 void pushMemoryStack (const int );
@@ -104,7 +104,6 @@ class TimeFrameGPU final : public TimeFrame<NLayers>
104104 // / interface
105105 virtual bool isGPU () const noexcept final { return true ; }
106106 virtual const char * getName () const noexcept { return " GPU" ; }
107- int getNClustersInRofSpan (const int , const int , const int ) const ;
108107 IndexTableUtilsN* getDeviceIndexTableUtils () { return mIndexTableUtilsDevice ; }
109108 const auto getDeviceROFOverlapTableView () { return mDeviceROFOverlapTableView ; }
110109 const auto getDeviceROFVertexLookupTableView () { return mDeviceROFVertexLookupTableView ; }
@@ -144,19 +143,6 @@ class TimeFrameGPU final : public TimeFrame<NLayers>
144143 int * getDeviceNeighboursIndexTables (const int layer) { return mNeighboursIndexTablesDevice [layer]; }
145144 uint8_t * getDeviceMultCutMask () { return mMultMaskDevice ; }
146145
147- // Vertexer
148- auto & getDeviceNTrackletsPerROF () const noexcept { return mNTrackletsPerROFDevice ; }
149- auto & getDeviceNTrackletsPerCluster () const noexcept { return mNTrackletsPerClusterDevice ; }
150- auto & getDeviceNTrackletsPerClusterSum () const noexcept { return mNTrackletsPerClusterSumDevice ; }
151- int32_t ** getDeviceArrayNTrackletsPerROF () const noexcept { return mNTrackletsPerROFDeviceArray ; }
152- int32_t ** getDeviceArrayNTrackletsPerCluster () const noexcept { return mNTrackletsPerClusterDeviceArray ; }
153- int32_t ** getDeviceArrayNTrackletsPerClusterSum () const noexcept { return mNTrackletsPerClusterSumDeviceArray ; }
154- uint8_t * getDeviceUsedTracklets () const noexcept { return mUsedTrackletsDevice ; }
155- int32_t * getDeviceNLinesPerCluster () const noexcept { return mNLinesPerClusterDevice ; }
156- int32_t * getDeviceNLinesPerClusterSum () const noexcept { return mNLinesPerClusterSumDevice ; }
157- Line* getDeviceLines () const noexcept { return mLinesDevice ; }
158- gsl::span<int *> getDeviceTrackletsPerROFs () { return mNTrackletsPerROFDevice ; }
159-
160146 void setDevicePropagator (const o2::base::PropagatorImpl<float >* p) final { this ->mPropagatorDevice = p; }
161147
162148 // Host-specific getters
@@ -233,18 +219,6 @@ class TimeFrameGPU final : public TimeFrame<NLayers>
233219 std::array<TrackingFrameInfo*, NLayers> mTrackingFrameInfoDevice ;
234220 const TrackingFrameInfo** mTrackingFrameInfoDeviceArray ;
235221
236- // / Vertexer
237- std::array<int32_t *, 2 > mNTrackletsPerROFDevice ;
238- std::array<int32_t *, 2 > mNTrackletsPerClusterDevice ;
239- std::array<int32_t *, 2 > mNTrackletsPerClusterSumDevice ;
240- uint8_t * mUsedTrackletsDevice ;
241- int32_t * mNLinesPerClusterDevice ;
242- int32_t * mNLinesPerClusterSumDevice ;
243- int32_t ** mNTrackletsPerROFDeviceArray ;
244- int32_t ** mNTrackletsPerClusterDeviceArray ;
245- int32_t ** mNTrackletsPerClusterSumDeviceArray ;
246- Line* mLinesDevice ;
247-
248222 // State
249223 Streams mGpuStreams ;
250224 std::bitset<NLayers + 1 > mPinnedUnsortedClusters {0 };
@@ -258,12 +232,6 @@ class TimeFrameGPU final : public TimeFrame<NLayers>
258232 bounded_vector<TrackITSExt> mTrackITSExt ;
259233};
260234
261- template <int NLayers>
262- inline int TimeFrameGPU<NLayers>::getNClustersInRofSpan(const int rofIdstart, const int rofSpanSize, const int layerId) const
263- {
264- return static_cast <int >(this ->mROFramesClusters [layerId][(rofIdstart + rofSpanSize) < this ->mROFramesClusters .size () ? rofIdstart + rofSpanSize : this ->mROFramesClusters .size () - 1 ] - this ->mROFramesClusters [layerId][rofIdstart]);
265- }
266-
267235template <int NLayers>
268236inline std::vector<unsigned int > TimeFrameGPU<NLayers>::getClusterSizes()
269237{
0 commit comments