Skip to content

Commit 45c88f1

Browse files
committed
GPU Standalone: Fix typo for event dump file name
1 parent bef11c6 commit 45c88f1

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

GPU/GPUTracking/Definitions/GPUDef.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#define GPUPtr2(a, b) b
3535
#endif
3636

37-
#define GPUCA_EVDUMP_FILE "event_full"
37+
#define GPUCA_EVDUMP_FILE "event"
3838

3939
#ifdef GPUCA_GPUCODE
4040
#define CA_MAKE_SHARED_REF(vartype, varname, varglobal, varshared) const GPUsharedref() vartype& __restrict__ varname = varshared;

GPU/GPUTracking/Standalone/Benchmark/standalone.cxx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,10 +522,9 @@ int32_t ReadEvent(int32_t n)
522522
if ((configStandalone.proc.runQA || configStandalone.eventDisplay) && !configStandalone.QA.noMC) {
523523
chainTracking->ForceInitQA();
524524
chainTracking->GetQA()->UpdateChain(chainTracking);
525-
if (chainTracking->GetQA()->ReadO2MCData((eventsDir + "mc." + std::to_string(n) + ".dump").c_str())) {
526-
if (chainTracking->GetQA()->ReadO2MCData((eventsDir + "mc.0.dump").c_str()) && configStandalone.proc.runQA) {
527-
throw std::runtime_error("Error reading O2 MC dump");
528-
}
525+
if (chainTracking->GetQA()->ReadO2MCData((eventsDir + "mc." + std::to_string(n) + ".dump").c_str()) &&
526+
chainTracking->GetQA()->ReadO2MCData((eventsDir + "mc.0.dump").c_str()) && configStandalone.proc.runQA) {
527+
throw std::runtime_error("Error reading O2 MC dump");
529528
}
530529
}
531530
#endif
@@ -817,6 +816,9 @@ int32_t main(int argc, char** argv)
817816
}
818817
nEvents = nEventsInDirectory;
819818
}
819+
if (nEvents == 0 && !configStandalone.noEvents) {
820+
printf("No event data found in event folder\n");
821+
}
820822
if (configStandalone.TF.nMerge > 1) {
821823
nEvents /= configStandalone.TF.nMerge;
822824
}

0 commit comments

Comments
 (0)