Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPU TPC: Fix typo in name, and clean up setting of inputGPU struct #13738

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct CompressedClustersCounters {
unsigned int nUnattachedClusters = 0;
unsigned int nAttachedClustersReduced = 0;
unsigned int nSliceRows = 36 * 152;
unsigned char nComppressionModes = 0;
unsigned char nComppressionModes = 0; // Don't fix this name due to ROOT dictionaries!
float solenoidBz = -1e6f;
int maxTimeBin = -1e6;

Expand Down
2 changes: 1 addition & 1 deletion GPU/GPUTracking/DataCompression/GPUTPCDecompression.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void GPUTPCDecompression::SetPointersCompressedClusters(void*& mem, T& c, uint32

uint32_t nClAreduced = reducedClA ? nClA - nTr : nClA;

if (!(mRec->GetParam().rec.tpc.compressionTypeMask & GPUSettings::CompressionTrackModel)) {
if (!(c.nComppressionModes & GPUSettings::CompressionTrackModel)) {
return; // Track model disabled, do not allocate memory
}
computePointerWithAlignment(mem, c.qTotA, nClA);
Expand Down
34 changes: 2 additions & 32 deletions GPU/GPUTracking/Global/GPUChainTrackingCompression.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -254,40 +254,10 @@ int32_t GPUChainTracking::RunTPCDecompression()

int32_t inputStream = 0;
int32_t unattachedStream = mRec->NStreams() - 1;
inputGPU.nAttachedClusters = cmprClsHost.nAttachedClusters;
inputGPU.nUnattachedClusters = cmprClsHost.nUnattachedClusters;
inputGPU.nTracks = cmprClsHost.nTracks;
inputGPU.nAttachedClustersReduced = inputGPU.nAttachedClusters - inputGPU.nTracks;
inputGPU.nSliceRows = NSLICES * GPUCA_ROW_COUNT;
inputGPU.nComppressionModes = param().rec.tpc.compressionTypeMask;
inputGPU.solenoidBz = param().bzkG;
inputGPU.maxTimeBin = param().continuousMaxTimeBin;
inputGPU = cmprClsHost;
SetupGPUProcessor(&Decompressor, true);
WriteToConstantMemory(myStep, (char*)&processors()->tpcDecompressor - (char*)processors(), &DecompressorShadow, sizeof(DecompressorShadow), inputStream);

inputGPU.nTrackClusters = cmprClsHost.nTrackClusters;
inputGPU.qTotU = cmprClsHost.qTotU;
inputGPU.qMaxU = cmprClsHost.qMaxU;
inputGPU.flagsU = cmprClsHost.flagsU;
inputGPU.padDiffU = cmprClsHost.padDiffU;
inputGPU.timeDiffU = cmprClsHost.timeDiffU;
inputGPU.sigmaPadU = cmprClsHost.sigmaPadU;
inputGPU.sigmaTimeU = cmprClsHost.sigmaTimeU;
inputGPU.nSliceRowClusters = cmprClsHost.nSliceRowClusters;
inputGPU.qTotA = cmprClsHost.qTotA;
inputGPU.qMaxA = cmprClsHost.qMaxA;
inputGPU.flagsA = cmprClsHost.flagsA;
inputGPU.rowDiffA = cmprClsHost.rowDiffA;
inputGPU.sliceLegDiffA = cmprClsHost.sliceLegDiffA;
inputGPU.padResA = cmprClsHost.padResA;
inputGPU.timeResA = cmprClsHost.timeResA;
inputGPU.sigmaPadA = cmprClsHost.sigmaPadA;
inputGPU.sigmaTimeA = cmprClsHost.sigmaTimeA;
inputGPU.qPtA = cmprClsHost.qPtA;
inputGPU.rowA = cmprClsHost.rowA;
inputGPU.sliceA = cmprClsHost.sliceA;
inputGPU.timeA = cmprClsHost.timeA;
inputGPU.padA = cmprClsHost.padA;
inputGPU = cmprClsHost;

bool toGPU = true;
runKernel<GPUMemClean16>({GetGridAutoStep(inputStream, RecoStep::TPCDecompression), krnlRunRangeNone, &mEvents->init}, DecompressorShadow.mNativeClustersIndex, NSLICES * GPUCA_ROW_COUNT * sizeof(DecompressorShadow.mNativeClustersIndex[0]));
Expand Down