@@ -298,19 +298,39 @@ void TrackerTraitsGPU<nLayers>::findRoads(const int iteration)
298298 mTrkParams [0 ].MaxChi2ClusterAttachment , // float maxChi2ClusterAttachment
299299 mTimeFrameGPU ->getDevicePropagator (),
300300 mCorrType ,
301+ lastCellId, // temporary host vector
302+ lastCellSeed, // temporary host vector
301303 updatedCellId, // temporary host vectors
302304 updatedCellSeed, // temporary host vectors
303305 conf.nBlocks ,
304306 conf.nThreads );
305307
306- int level = startLevel;
307- for (int iLayer{startLayer - 1 }; iLayer > 0 && level > 2 ; --iLayer) {
308- lastCellSeed.swap (updatedCellSeed);
309- lastCellId.swap (updatedCellId);
310- std::vector<CellSeed>().swap (updatedCellSeed); // / tame the memory peaks
311- updatedCellId.clear ();
312- processNeighbours (iLayer, --level, lastCellSeed, lastCellId, updatedCellSeed, updatedCellId);
313- }
308+ // int level = startLevel;
309+ // for (int iLayer{startLayer - 1}; iLayer > 0 && level > 2; --iLayer) {
310+ // lastCellSeed.swap(updatedCellSeed);
311+ // lastCellId.swap(updatedCellId);
312+ // std::vector<CellSeed>().swap(updatedCellSeed); /// tame the memory peaks
313+ // updatedCellId.clear();
314+ // processNeighboursHandler<nLayers>(iLayer,
315+ // --level,
316+ // mTimeFrameGPU->getDeviceArrayCells(),
317+ // mTimeFrameGPU->getDeviceCells()[iLayer],
318+ // mTimeFrameGPU->getNCells()[iLayer],
319+ // mTimeFrameGPU->getDeviceArrayUsedClusters(),
320+ // mTimeFrameGPU->getDeviceNeighbours(iLayer - 1),
321+ // mTimeFrameGPU->getDeviceNeighboursLUTs(),
322+ // mTimeFrameGPU->getDeviceArrayTrackingFrameInfo(),
323+ // mBz,
324+ // mTrkParams[0].MaxChi2ClusterAttachment, // float maxChi2ClusterAttachment
325+ // mTimeFrameGPU->getDevicePropagator(),
326+ // mCorrType,
327+ // lastCellId, // temporary host vector
328+ // lastCellSeed, // temporary host vector
329+ // updatedCellId, // temporary host vectors
330+ // updatedCellSeed, // temporary host vectors
331+ // conf.nBlocks,
332+ // conf.nThreads);
333+ // }
314334 for (auto & seed : updatedCellSeed) {
315335 if (seed.getQ2Pt () > 1 .e3 || seed.getChi2 () > mTrkParams [0 ].MaxChi2NDF * ((startLevel + 2 ) * 2 - 5 )) {
316336 continue ;
0 commit comments