Skip to content

Commit 8494996

Browse files
committed
GPU: Improve debug dumps
1 parent 0cb5fc5 commit 8494996

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

GPU/GPUTracking/Base/GPUReconstruction.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,9 @@ int32_t GPUReconstruction::InitPhaseBeforeDevice()
269269
#ifndef GPUCA_DETERMINISTIC_MODE
270270
GPUError("WARNING, deterministicGPUReconstruction needs GPUCA_DETERMINISTIC_MODE for being fully deterministic, without only most indeterminism by concurrency is removed, but floating point effects remain!");
271271
#endif
272+
if (mProcessingSettings->debugLevel >= 6 && ((mProcessingSettings->debugMask + 1) & mProcessingSettings->debugMask)) {
273+
GPUError("WARNING: debugMask %d - debug output might not be deterministic with intermediate steps missing", mProcessingSettings->debugMask);
274+
}
272275
mProcessingSettings->overrideClusterizerFragmentLen = TPC_MAX_FRAGMENT_LEN_GPU;
273276
if (GetProcessingSettings().createO2Output > 1) {
274277
mProcessingSettings->createO2Output = 1;

GPU/GPUTracking/Global/GPUChainTrackingDebug.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ enum GPUChainTrackingDebugFlags : uint32_t {
2828
TPCLinks = 1 << 2,
2929
TPCStartHits = 1 << 3,
3030
TPCTracklets = 1 << 4,
31-
TPCSectorTracks = 1 << 5,
32-
TPCHitWeights = 1 << 6,
31+
TPCHitWeights = 1 << 5,
32+
TPCSectorTracks = 1 << 6,
3333
TPCMergingRanges = 1 << 7,
3434
TPCMergingSectorTracks = 1 << 8,
3535
TPCMergingMatching = 1 << 9,

GPU/GPUTracking/Merger/GPUTPCGMMergerDump.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void GPUTPCGMMerger::DumpSectorTracks(std::ostream& out) const
5151
out << " Track type " << iGlobal << "\n";
5252
for (int32_t j = mSectorTrackInfoIndex[iSector + NSECTORS * iGlobal]; j < mSectorTrackInfoIndex[iSector + NSECTORS * iGlobal + 1]; j++) {
5353
const auto& trk = mSectorTrackInfos[j];
54-
out << " Track " << j << ": LocalId " << (iGlobal ? (trk.LocalTrackId() >> 24) : -1) << "/" << (iGlobal ? (trk.LocalTrackId() & 0xFFFFFF) : -1) << " X " << trk.X() << " offsetz " << trk.TOffset() << " A " << trk.Alpha() << " Y " << trk.Y() << " Z " << trk.Z() << " SinPhi " << trk.SinPhi() << " CosPhi " << trk.CosPhi() << " SecPhi " << trk.SecPhi() << " Tgl " << trk.DzDs() << " QPt " << trk.QPt() << "\n";
54+
out << " Track " << j << ": LocalId " << (iGlobal ? (trk.LocalTrackId() >> 24) : -1) << "/" << (iGlobal ? (trk.LocalTrackId() & 0xFFFFFF) : -1) << " NCl " << trk.NClusters() << " X " << trk.X() << " offsetz " << trk.TOffset() << " A " << trk.Alpha() << " Y " << trk.Y() << " Z " << trk.Z() << " SinPhi " << trk.SinPhi() << " CosPhi " << trk.CosPhi() << " SecPhi " << trk.SecPhi() << " Tgl " << trk.DzDs() << " QPt " << trk.QPt() << "\n";
5555
}
5656
}
5757
}
@@ -135,7 +135,7 @@ void GPUTPCGMMerger::DumpMergedBetweenSectors(std::ostream& out) const
135135
void GPUTPCGMMerger::DumpCollected(std::ostream& out) const
136136
{
137137
std::streamsize ss = out.precision();
138-
out << std::setprecision(2);
138+
out << std::setprecision(6);
139139
out << "\nTPC Merger Collected Tracks\n";
140140
for (uint32_t i = 0; i < mMemory->nMergedTracks; i++) {
141141
const auto& trk = mMergedTracks[i];

0 commit comments

Comments
 (0)