@@ -39,7 +39,7 @@ void MatLayerCylSet::addLayer(float rmin, float rmax, float zmax, float dz, floa
3939 if (!nlr) {
4040 // book local storage
4141 auto sz = sizeof (MatLayerCylSetLayout);
42- o2::gpu::resizeArray (mFlatBufferContainer , 0 , sz);
42+ o2::gpu::FlatObject:: resizeArray (mFlatBufferContainer , 0 , sz);
4343 mFlatBufferPtr = mFlatBufferContainer ;
4444 mFlatBufferSize = sz;
4545 // --------------????
@@ -53,7 +53,7 @@ void MatLayerCylSet::addLayer(float rmin, float rmax, float zmax, float dz, floa
5353 LOG (fatal) << " new layer overlaps with layer " << il;
5454 }
5555 }
56- auto * oldLayers = o2::gpu::resizeArray (get ()->mLayers , nlr, nlr + 1 );
56+ auto * oldLayers = o2::gpu::FlatObject:: resizeArray (get ()->mLayers , nlr, nlr + 1 );
5757 // dynamyc buffers of old layers were used in new ones, detach them
5858 for (int i = nlr; i--;) {
5959 oldLayers[i].clearInternalBufferPtr ();
@@ -98,8 +98,8 @@ void MatLayerCylSet::finalizeStructures()
9898 assert (mConstructionMask == InProgress);
9999 int nlr = getNLayers ();
100100 int nR2Int = 2 * (nlr + 1 );
101- o2::gpu::resizeArray (get ()->mR2Intervals , 0 , nR2Int);
102- o2::gpu::resizeArray (get ()->mInterval2LrID , 0 , nR2Int);
101+ o2::gpu::FlatObject:: resizeArray (get ()->mR2Intervals , 0 , nR2Int);
102+ o2::gpu::FlatObject:: resizeArray (get ()->mInterval2LrID , 0 , nR2Int);
103103 get ()->mR2Intervals [0 ] = get ()->mRMin2 ;
104104 get ()->mR2Intervals [1 ] = get ()->mRMax2 ;
105105 get ()->mInterval2LrID [0 ] = 0 ;
@@ -116,8 +116,8 @@ void MatLayerCylSet::finalizeStructures()
116116 get ()->mInterval2LrID [nRIntervals] = i;
117117 get ()->mR2Intervals [++nRIntervals] = lr.getRMax2 ();
118118 }
119- delete[] o2::gpu::resizeArray (get ()->mInterval2LrID , nR2Int, nRIntervals); // rebook with precise size
120- delete[] o2::gpu::resizeArray (get ()->mR2Intervals , nR2Int, ++nRIntervals); // rebook with precise size
119+ delete[] o2::gpu::FlatObject:: resizeArray (get ()->mInterval2LrID , nR2Int, nRIntervals); // rebook with precise size
120+ delete[] o2::gpu::FlatObject:: resizeArray (get ()->mR2Intervals , nR2Int, ++nRIntervals); // rebook with precise size
121121 //
122122}
123123
@@ -508,14 +508,14 @@ void MatLayerCylSet::flatten()
508508
509509 int sz = estimateFlatBufferSize ();
510510 // create new internal buffer with total size and copy data
511- delete[] o2::gpu::resizeArray (mFlatBufferContainer , mFlatBufferSize , sz);
511+ delete[] o2::gpu::FlatObject:: resizeArray (mFlatBufferContainer , mFlatBufferSize , sz);
512512 mFlatBufferPtr = mFlatBufferContainer ;
513513 mFlatBufferSize = sz;
514514 int nLr = getNLayers ();
515515
516516 auto offs = alignSize (sizeof (MatLayerCylSetLayout), getBufferAlignmentBytes ()); // account for the alignment
517517 // move array of layer pointers to the flat array
518- auto * oldLayers = o2::gpu::resizeArray (get ()->mLayers , nLr, nLr, (MatLayerCyl*)(mFlatBufferPtr + offs));
518+ auto * oldLayers = o2::gpu::FlatObject:: resizeArray (get ()->mLayers , nLr, nLr, (MatLayerCyl*)(mFlatBufferPtr + offs));
519519 // dynamyc buffers of old layers were used in new ones, detach them
520520 for (int i = nLr; i--;) {
521521 oldLayers[i].clearInternalBufferPtr ();
@@ -524,11 +524,11 @@ void MatLayerCylSet::flatten()
524524 offs = alignSize (offs + nLr * sizeof (MatLayerCyl), MatLayerCyl::getClassAlignmentBytes ()); // account for the alignment
525525
526526 // move array of R2 boundaries to the flat array
527- delete[] o2::gpu::resizeArray (get ()->mR2Intervals , nLr + 1 , nLr + 1 , (float *)(mFlatBufferPtr + offs));
527+ delete[] o2::gpu::FlatObject:: resizeArray (get ()->mR2Intervals , nLr + 1 , nLr + 1 , (float *)(mFlatBufferPtr + offs));
528528 offs = alignSize (offs + (nLr + 1 ) * sizeof (float ), getBufferAlignmentBytes ()); // account for the alignment
529529
530530 // move array of R2 boundaries to the flat array
531- delete[] o2::gpu::resizeArray (get ()->mInterval2LrID , nLr, nLr, (int *)(mFlatBufferPtr + offs));
531+ delete[] o2::gpu::FlatObject:: resizeArray (get ()->mInterval2LrID , nLr, nLr, (int *)(mFlatBufferPtr + offs));
532532 offs = alignSize (offs + nLr * sizeof (int ), getBufferAlignmentBytes ()); // account for the alignment
533533
534534 for (int il = 0 ; il < nLr; il++) {
0 commit comments