@@ -415,7 +415,7 @@ int32_t GPUTPCGMMerger::CheckSectors()
415415
416416GPUd () void GPUTPCGMMerger::ClearTrackLinks(int32_t nBlocks, int32_t nThreads, int32_t iBlock, int32_t iThread, bool output)
417417{
418- const int32_t n = output ? mMemory ->nOutputTracks : SectorTrackInfoLocalTotal ();
418+ const int32_t n = output ? mMemory ->nMergedTracks : SectorTrackInfoLocalTotal ();
419419 for (int32_t i = iBlock * nThreads + iThread; i < n; i += nThreads * nBlocks) {
420420 mTrackLinks [i] = -1 ;
421421 }
@@ -1271,7 +1271,7 @@ GPUd() void GPUTPCGMMerger::MergeCEFill(const GPUTPCGMSectorTrack* track, const
12711271GPUd () void GPUTPCGMMerger::MergeCE(int32_t nBlocks, int32_t nThreads, int32_t iBlock, int32_t iThread)
12721272{
12731273 const ClusterNative* cls = Param ().par .earlyTpcTransform ? nullptr : mConstantMem ->ioPtrs .clustersNative ->clustersLinear ;
1274- for (uint32_t i = iBlock * nThreads + iThread; i < mMemory ->nOutputTracks ; i += nThreads * nBlocks) {
1274+ for (uint32_t i = iBlock * nThreads + iThread; i < mMemory ->nMergedTracks ; i += nThreads * nBlocks) {
12751275 if (mOutputTracks [i].CSide () == 0 && mTrackLinks [i] >= 0 ) {
12761276 if (mTrackLinks [mTrackLinks [i]] != (int32_t )i) {
12771277 continue ;
@@ -1392,7 +1392,7 @@ GPUd() void GPUTPCGMMerger::MergeCE(int32_t nBlocks, int32_t nThreads, int32_t i
13921392 }
13931393 }
13941394
1395- // for (int32_t i = 0;i < mMemory->nOutputTracks ;i++) {if (mOutputTracks[i].CCE() == false) {mOutputTracks[i].SetNClusters(0);mOutputTracks[i].SetOK(false);}} //Remove all non-CE tracks
1395+ // for (int32_t i = 0;i < mMemory->nMergedTracks ;i++) {if (mOutputTracks[i].CCE() == false) {mOutputTracks[i].SetNClusters(0);mOutputTracks[i].SetOK(false);}} //Remove all non-CE tracks
13961396}
13971397
13981398namespace o2 ::gpu::internal
@@ -1533,7 +1533,7 @@ GPUd() void GPUTPCGMMerger::CollectMergedTracks(int32_t nBlocks, int32_t nThread
15331533 nHits = 0 ;
15341534 for (int32_t ipart = 0 ; ipart < nParts; ipart++) {
15351535 const GPUTPCGMSectorTrack* t = trackParts[ipart];
1536- CADEBUG (printf (" Collect Track %d Part %d QPt %f DzDs %f\n " , mMemory ->nOutputTracks , ipart, t->QPt (), t->DzDs ()));
1536+ CADEBUG (printf (" Collect Track %d Part %d QPt %f DzDs %f\n " , mMemory ->nMergedTracks , ipart, t->QPt (), t->DzDs ()));
15371537 int32_t nTrackHits = t->NClusters ();
15381538 trackCluster* c2 = trackClusters + nHits + nTrackHits - 1 ;
15391539 for (int32_t i = 0 ; i < nTrackHits; i++, c2--) {
@@ -1678,10 +1678,10 @@ GPUd() void GPUTPCGMMerger::CollectMergedTracks(int32_t nBlocks, int32_t nThread
16781678 cl[i].leg = trackClusters[i].leg ;
16791679 }
16801680
1681- uint32_t iOutputTrack = CAMath::AtomicAdd (&mMemory ->nOutputTracks , 1u );
1681+ uint32_t iOutputTrack = CAMath::AtomicAdd (&mMemory ->nMergedTracks , 1u );
16821682 if (iOutputTrack >= mNMaxTracks ) {
16831683 raiseError (GPUErrors::ERROR_MERGER_TRACK_OVERFLOW, iOutputTrack, mNMaxTracks );
1684- CAMath::AtomicExch (&mMemory ->nOutputTracks , mNMaxTracks );
1684+ CAMath::AtomicExch (&mMemory ->nMergedTracks , mNMaxTracks );
16851685 continue ;
16861686 }
16871687
@@ -1718,9 +1718,9 @@ GPUd() void GPUTPCGMMerger::CollectMergedTracks(int32_t nBlocks, int32_t nThread
17181718 p1.QPt () = 100 .f / Param ().rec .bz0Pt10MeV ;
17191719 }
17201720
1721- // if (nParts > 1) printf("Merged %d: QPt %f %d parts %d hits\n", mMemory->nOutputTracks , p1.QPt(), nParts, nHits);
1721+ // if (nParts > 1) printf("Merged %d: QPt %f %d parts %d hits\n", mMemory->nMergedTracks , p1.QPt(), nParts, nHits);
17221722
1723- /* if (GPUQA::QAAvailable() && mRec->GetQA() && mRec->GetQA()->SuppressTrack(mMemory->nOutputTracks ))
1723+ /* if (GPUQA::QAAvailable() && mRec->GetQA() && mRec->GetQA()->SuppressTrack(mMemory->nMergedTracks ))
17241724 {
17251725 mergedTrack.SetOK(0);
17261726 mergedTrack.SetNClusters(0);
@@ -1742,14 +1742,14 @@ GPUd() void GPUTPCGMMerger::CollectMergedTracks(int32_t nBlocks, int32_t nThread
17421742
17431743GPUd () void GPUTPCGMMerger::SortTracksPrepare(int32_t nBlocks, int32_t nThreads, int32_t iBlock, int32_t iThread)
17441744{
1745- for (uint32_t i = iBlock * nThreads + iThread; i < mMemory ->nOutputTracks ; i += nThreads * nBlocks) {
1745+ for (uint32_t i = iBlock * nThreads + iThread; i < mMemory ->nMergedTracks ; i += nThreads * nBlocks) {
17461746 mTrackOrderProcess [i] = i;
17471747 }
17481748}
17491749
17501750GPUd () void GPUTPCGMMerger::PrepareClustersForFit0(int32_t nBlocks, int32_t nThreads, int32_t iBlock, int32_t iThread)
17511751{
1752- for (uint32_t i = iBlock * nThreads + iThread; i < mMemory ->nOutputTracks ; i += nBlocks * nThreads) {
1752+ for (uint32_t i = iBlock * nThreads + iThread; i < mMemory ->nMergedTracks ; i += nBlocks * nThreads) {
17531753 mTrackSort [i] = i;
17541754 }
17551755}
@@ -1784,7 +1784,7 @@ GPUd() void GPUTPCGMMerger::SortTracks(int32_t nBlocks, int32_t nThreads, int32_
17841784 ) // clang-format on
17851785 };
17861786
1787- GPUCommonAlgorithm::sortDeviceDynamic (mTrackOrderProcess , mTrackOrderProcess + mMemory ->nOutputTracks , comp);
1787+ GPUCommonAlgorithm::sortDeviceDynamic (mTrackOrderProcess , mTrackOrderProcess + mMemory ->nMergedTracks , comp);
17881788#endif
17891789}
17901790
@@ -1810,13 +1810,13 @@ GPUd() void GPUTPCGMMerger::SortTracksQPt(int32_t nBlocks, int32_t nThreads, int
18101810 ) // clang-format on
18111811 };
18121812
1813- GPUCommonAlgorithm::sortDeviceDynamic (mTrackSort , mTrackSort + mMemory ->nOutputTracks , comp);
1813+ GPUCommonAlgorithm::sortDeviceDynamic (mTrackSort , mTrackSort + mMemory ->nMergedTracks , comp);
18141814#endif
18151815}
18161816
18171817GPUd () void GPUTPCGMMerger::PrepareClustersForFit1(int32_t nBlocks, int32_t nThreads, int32_t iBlock, int32_t iThread)
18181818{
1819- for (uint32_t i = iBlock * nThreads + iThread; i < mMemory ->nOutputTracks ; i += nBlocks * nThreads) {
1819+ for (uint32_t i = iBlock * nThreads + iThread; i < mMemory ->nMergedTracks ; i += nBlocks * nThreads) {
18201820 mTrackOrderAttach [mTrackSort [i]] = i;
18211821 const GPUTPCGMMergedTrack& trk = mOutputTracks [i];
18221822 if (trk.OK ()) {
@@ -1848,7 +1848,7 @@ GPUd() void GPUTPCGMMerger::PrepareClustersForFit2(int32_t nBlocks, int32_t nThr
18481848
18491849GPUd () void GPUTPCGMMerger::Finalize0(int32_t nBlocks, int32_t nThreads, int32_t iBlock, int32_t iThread)
18501850{
1851- for (uint32_t i = iBlock * nThreads + iThread; i < mMemory ->nOutputTracks ; i += nThreads * nBlocks) {
1851+ for (uint32_t i = iBlock * nThreads + iThread; i < mMemory ->nMergedTracks ; i += nThreads * nBlocks) {
18521852 mTrackSort [mTrackOrderAttach [i]] = i;
18531853 }
18541854 for (uint32_t i = iBlock * nThreads + iThread; i < mMemory ->nOutputTrackClusters ; i += nThreads * nBlocks) {
@@ -1858,7 +1858,7 @@ GPUd() void GPUTPCGMMerger::Finalize0(int32_t nBlocks, int32_t nThreads, int32_t
18581858
18591859GPUd () void GPUTPCGMMerger::Finalize1(int32_t nBlocks, int32_t nThreads, int32_t iBlock, int32_t iThread)
18601860{
1861- for (uint32_t i = iBlock * nThreads + iThread; i < mMemory ->nOutputTracks ; i += nThreads * nBlocks) {
1861+ for (uint32_t i = iBlock * nThreads + iThread; i < mMemory ->nMergedTracks ; i += nThreads * nBlocks) {
18621862 const GPUTPCGMMergedTrack& trk = mOutputTracks [i];
18631863 if (!trk.OK () || trk.NClusters () == 0 ) {
18641864 continue ;
@@ -1893,7 +1893,7 @@ GPUd() void GPUTPCGMMerger::Finalize2(int32_t nBlocks, int32_t nThreads, int32_t
18931893GPUd () void GPUTPCGMMerger::MergeLoopersInit(int32_t nBlocks, int32_t nThreads, int32_t iBlock, int32_t iThread)
18941894{
18951895 const float lowPtThresh = Param ().rec .tpc .rejectQPtB5 * 1 .1f ; // Might need to merge tracks above the threshold with parts below the threshold
1896- for (uint32_t i = get_global_id (0 ); i < mMemory ->nOutputTracks ; i += get_global_size (0 )) {
1896+ for (uint32_t i = get_global_id (0 ); i < mMemory ->nMergedTracks ; i += get_global_size (0 )) {
18971897 const auto & trk = mOutputTracks [i];
18981898 const auto & p = trk.GetParam ();
18991899 const float qptabs = CAMath::Abs (p.GetQPt ());
0 commit comments