Skip to content

Commit

Permalink
GPU: Minor optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrohr committed Oct 16, 2023
1 parent 631990a commit 681238b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GPU/GPUTracking/SliceTracker/GPUTPCSliceData.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,9 @@ GPUdii() int GPUTPCSliceData::InitFromClusterData(int nBlocks, int nThreads, int
mHitData[globalBinsortedIndex].y = (cahit)yy;
}

if (iThread == 0) {
if (iThread == 0 && !mem->param.par.continuousTracking) {
const float maxAbsZ = CAMath::Max(CAMath::Abs(tmpMinMax[2]), CAMath::Abs(tmpMinMax[3]));
if (maxAbsZ > 300 && !mem->param.par.continuousTracking) {
if (maxAbsZ > 300) {
mem->errorCodes.raiseError(GPUErrors::ERROR_SLICEDATA_Z_OVERFLOW, iSlice, (unsigned int)maxAbsZ);
return 1;
}
Expand Down

0 comments on commit 681238b

Please sign in to comment.