diff --git a/SDL/Hit.h b/SDL/Hit.h index d26d4d73..c0ae3b3e 100644 --- a/SDL/Hit.h +++ b/SDL/Hit.h @@ -264,12 +264,13 @@ namespace SDL { hitsInGPU.lowEdgeYs[ihit] = ihit_y - 2.5f * sin_phi; } // Need to set initial value if index hasn't been seen before. - int old = alpaka::atomicOp(acc, &(hitsInGPU.hitRanges[lastModuleIndex * 2]), -1, (int) ihit); + int old = alpaka::atomicOp( + acc, &(hitsInGPU.hitRanges[lastModuleIndex * 2]), -1, static_cast(ihit)); // For subsequent visits, stores the min value. if (old != -1) - alpaka::atomicOp(acc, &hitsInGPU.hitRanges[lastModuleIndex * 2], (int) ihit); + alpaka::atomicOp(acc, &hitsInGPU.hitRanges[lastModuleIndex * 2], static_cast(ihit)); - alpaka::atomicOp(acc, &hitsInGPU.hitRanges[lastModuleIndex * 2 + 1], (int) ihit); + alpaka::atomicOp(acc, &hitsInGPU.hitRanges[lastModuleIndex * 2 + 1], static_cast(ihit)); } } }; diff --git a/SDL/LST.cc b/SDL/LST.cc index 225f19ff..67c6cb70 100644 --- a/SDL/LST.cc +++ b/SDL/LST.cc @@ -118,7 +118,7 @@ void SDL::LST::prepareInput(const std::vector see_px, std::iota(hitIdxs.begin(), hitIdxs.end(), 0); const int hit_size = trkX.size(); - for(size_t iSeed = 0; iSeed < n_see; iSeed++) { + for (size_t iSeed = 0; iSeed < n_see; iSeed++) { ROOT::Math::PxPyPzMVector p3LH(see_stateTrajGlbPx[iSeed], see_stateTrajGlbPy[iSeed], see_stateTrajGlbPz[iSeed], 0); ROOT::Math::XYZVector p3LH_helper(see_stateTrajGlbPx[iSeed], see_stateTrajGlbPy[iSeed], see_stateTrajGlbPz[iSeed]); float ptIn = p3LH.Pt(); diff --git a/SDL/PixelTriplet.h b/SDL/PixelTriplet.h index bb7df3e3..155dfcbc 100644 --- a/SDL/PixelTriplet.h +++ b/SDL/PixelTriplet.h @@ -1157,7 +1157,8 @@ namespace SDL { printf("Pixel Triplet excess alert!\n"); #endif } else { - unsigned int pixelTripletIndex = alpaka::atomicOp(acc, pixelTripletsInGPU.nPixelTriplets, 1u); + unsigned int pixelTripletIndex = + alpaka::atomicOp(acc, pixelTripletsInGPU.nPixelTriplets, 1u); addPixelTripletToMemory(modulesInGPU, mdsInGPU, segmentsInGPU, diff --git a/SDL/Segment.h b/SDL/Segment.h index 88bfc287..b46f0b71 100644 --- a/SDL/Segment.h +++ b/SDL/Segment.h @@ -876,7 +876,7 @@ namespace SDL { if (pass) { unsigned int totOccupancySegments = alpaka::atomicOp( acc, &segmentsInGPU.totOccupancySegments[innerLowerModuleIndex], 1u); - if (totOccupancySegments >= (unsigned int) (rangesInGPU.segmentModuleOccupancy[innerLowerModuleIndex])) { + if (static_cast(totOccupancySegments) >= rangesInGPU.segmentModuleOccupancy[innerLowerModuleIndex]) { #ifdef Warnings printf("Segment excess alert! Module index = %d\n", innerLowerModuleIndex); #endif diff --git a/SDL/TrackCandidate.h b/SDL/TrackCandidate.h index 205ff7cc..04c971fc 100644 --- a/SDL/TrackCandidate.h +++ b/SDL/TrackCandidate.h @@ -568,7 +568,8 @@ namespace SDL { if (pixelQuintupletsInGPU.isDup[pixelQuintupletIndex]) continue; - unsigned int trackCandidateIdx = alpaka::atomicOp(acc, trackCandidatesInGPU.nTrackCandidates, 1u); + unsigned int trackCandidateIdx = + alpaka::atomicOp(acc, trackCandidatesInGPU.nTrackCandidates, 1u); if (trackCandidateIdx >= N_MAX_PIXEL_TRACK_CANDIDATES) // No other TCs have been added yet { #ifdef Warnings diff --git a/SDL/Triplet.h b/SDL/Triplet.h index 240d8495..de2e8104 100644 --- a/SDL/Triplet.h +++ b/SDL/Triplet.h @@ -1971,7 +1971,8 @@ namespace SDL { if (success) { unsigned int totOccupancyTriplets = alpaka::atomicOp( acc, &tripletsInGPU.totOccupancyTriplets[innerInnerLowerModuleIndex], 1u); - if (totOccupancyTriplets >= (unsigned int) (rangesInGPU.tripletModuleOccupancy[innerInnerLowerModuleIndex])) { + if (static_cast(totOccupancyTriplets) >= + rangesInGPU.tripletModuleOccupancy[innerInnerLowerModuleIndex]) { #ifdef Warnings printf("Triplet excess alert! Module index = %d\n", innerInnerLowerModuleIndex); #endif