Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
format and delete unallocated variable
Browse files Browse the repository at this point in the history
  • Loading branch information
YonsiG committed Apr 29, 2024
1 parent 8f0e49a commit 496e1d8
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions SDL/Triplet.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ namespace SDL {
float* betaInCut;
float* rtLo;
float* rtHi;
float* kZ;
#endif
template <typename TBuff>
void setData(TBuff& tripletsbuf) {
Expand Down Expand Up @@ -69,7 +68,6 @@ namespace SDL {
betaInCut = alpaka::getPtrNative(tripletsbuf.betaInCut_buf);
rtLo = alpaka::getPtrNative(tripletsbuf.rtLo_buf);
rtHi = alpaka::getPtrNative(tripletsbuf.rtHi_buf);
kZ = alpaka::getPtrNative(tripletsbuf.kZ_buf);
#endif
}
};
Expand Down Expand Up @@ -104,7 +102,6 @@ namespace SDL {
Buf<TDev, float> betaInCut_buf;
Buf<TDev, float> rtLo_buf;
Buf<TDev, float> rtHi_buf;
Buf<TDev, float> kZ_buf;
#endif

template <typename TQueue, typename TDevAcc>
Expand Down Expand Up @@ -136,8 +133,7 @@ namespace SDL {
sdlCut_buf(allocBufWrapper<float>(devAccIn, maxTriplets, queue)),
betaInCut_buf(allocBufWrapper<float>(devAccIn, maxTriplets, queue)),
rtLo_buf(allocBufWrapper<float>(devAccIn, maxTriplets, queue)),
rtHi_buf(allocBufWrapper<float>(devAccIn, maxTriplets, queue)),
kZ_buf(allocBufWrapper<float>(devAccIn, maxTriplets, queue))
rtHi_buf(allocBufWrapper<float>(devAccIn, maxTriplets, queue))
#endif
{
alpaka::memset(queue, nTriplets_buf, 0u);
Expand Down Expand Up @@ -173,9 +169,7 @@ namespace SDL {
float& zLoPointed,
float& zHiPointed,
float& sdlCut,
float& betaInCut,
float& kZ,
unsigned int& tripletIndex)
float& betaInCut unsigned int& tripletIndex)
#else
ALPAKA_FN_ACC ALPAKA_FN_INLINE void addTripletToMemory(struct SDL::modules& modulesInGPU,
struct SDL::miniDoublets& mdsInGPU,
Expand Down Expand Up @@ -233,7 +227,6 @@ namespace SDL {
tripletsInGPU.zHiPointed[tripletIndex] = zHiPointed;
tripletsInGPU.sdlCut[tripletIndex] = sdlCut;
tripletsInGPU.betaInCut[tripletIndex] = betaInCut;
tripletsInGPU.kZ[tripletIndex] = kZ;
#endif
};

Expand Down Expand Up @@ -976,7 +969,7 @@ namespace SDL {
uint16_t outerOuterLowerModuleIndex = segmentsInGPU.outerLowerModuleIndices[outerSegmentIndex];

float zOut, rtOut, deltaPhiPos, deltaPhi, betaIn, circleRadius, circleCenterX, circleCenterY;
float zLo, zHi, rtLo, rtHi, zLoPointed, zHiPointed, sdlCut, betaInCut, kZ;
float zLo, zHi, rtLo, rtHi, zLoPointed, zHiPointed, sdlCut, betaInCut;

bool success = runTripletConstraintsAndAlgo(acc,
modulesInGPU,
Expand All @@ -1002,8 +995,7 @@ namespace SDL {
zLoPointed,
zHiPointed,
sdlCut,
betaInCut,
kZ);
betaInCut);

if (success) {
unsigned int totOccupancyTriplets = alpaka::atomicOp<alpaka::AtomicAdd>(
Expand Down Expand Up @@ -1044,7 +1036,6 @@ namespace SDL {
zHiPointed,
sdlCut,
betaInCut,
kZ,
tripletIndex);
#else
addTripletToMemory(modulesInGPU,
Expand Down

0 comments on commit 496e1d8

Please sign in to comment.