1515#include < cstddef>
1616#include < cstdint>
1717#include < limits>
18- #include < format>
1918#include < string>
2019#include < vector>
20+ #ifndef GPUCA_GPUCODE
21+ #include < format>
22+ #endif
2123
2224#include " CommonConstants/LHCConstants.h"
2325#include " CommonDataFormat/RangeReference.h"
@@ -78,6 +80,7 @@ struct LayerTiming {
7880 return rof >= 0 ? rof : 0 ;
7981 }
8082
83+ #ifndef GPUCA_GPUCODE
8184 GPUh () std::string asString() const
8285 {
8386 return std::format (" NROFsPerTF {:4} ROFLength {:4} ({:4} per Orbit) ROFDelay {:4} ROFBias {:4} ROFAddTimeErr {:4}" , mNROFsTF , mROFLength , (o2::constants::lhc::LHCMaxBunches / mROFLength ), mROFDelay , mROFBias , mROFAddTimeErr );
@@ -87,6 +90,7 @@ struct LayerTiming {
8790 {
8891 LOG (info) << asString ();
8992 }
93+ #endif
9094};
9195
9296// Base class for lookup to define layers
@@ -98,7 +102,7 @@ class LayerTimingBase
98102
99103 public:
100104 using T = LayerTiming::BCType;
101- GPUdDefault () LayerTimingBase() = default ;
105+ GPUh () LayerTimingBase() = default ;
102106
103107 GPUh () void defineLayer (int32_t layer, T nROFsTF, T rofLength, T rofDelay, T rofBias, T rofTE)
104108 {
@@ -120,13 +124,15 @@ class LayerTimingBase
120124
121125 GPUhdi () constexpr int32_t getEntries () noexcept { return NLayers; }
122126
127+ #ifndef GPUCA_GPUCODE
123128 GPUh () void print() const
124129 {
125130 LOGP (info, " Imposed time structure:" );
126131 for (int32_t iL{0 }; iL < NLayers; ++iL) {
127132 LOGP (info, " \t Layer:{} {}" , iL, mLayers [iL].asString ());
128133 }
129134 }
135+ #endif
130136};
131137
132138// GPU friendly view of the table below
@@ -209,6 +215,7 @@ struct ROFOverlapTableView {
209215 return t0 + t1;
210216 }
211217
218+ #ifndef GPUCA_GPUCODE
212219 // / Print functions
213220 GPUh () void printAll() const
214221 {
@@ -275,6 +282,7 @@ struct ROFOverlapTableView {
275282 LOGF (info, " Total view size: %u bytes" , totalBytes);
276283 LOGF (info, " ------------------------------------------------------------" );
277284 }
285+ #endif
278286};
279287
280288// Precalculated lookup table to find overlapping ROFs in another layer given a ROF index in the current layer
@@ -287,7 +295,7 @@ class ROFOverlapTable : public LayerTimingBase<NLayers>
287295 using TableIndex = dataformats::RangeReference<T, T>;
288296
289297 using View = ROFOverlapTableView<NLayers, TableEntry, TableIndex>;
290- GPUdDefault () ROFOverlapTable() = default ;
298+ GPUh () ROFOverlapTable() = default ;
291299
292300 GPUh () void init ()
293301 {
@@ -437,6 +445,7 @@ struct ROFVertexLookupTableView {
437445 return vUpper >= rofLower && vLower < rofUpper;
438446 }
439447
448+ #ifndef GPUCA_GPUCODE
440449 GPUh () void printAll() const
441450 {
442451 for (int32_t i = 0 ; i < NLayers; ++i) {
@@ -488,6 +497,7 @@ struct ROFVertexLookupTableView {
488497 LOGF (info, " Total view size: %u bytes" , totalBytes);
489498 LOGF (info, " ------------------------------------------------------------" );
490499 }
500+ #endif
491501};
492502
493503// Precalculated lookup table to find vertices compatible with ROFs
@@ -506,7 +516,7 @@ class ROFVertexLookupTable : public LayerTimingBase<NLayers>
506516
507517 using View = ROFVertexLookupTableView<NLayers, TableEntry, TableIndex>;
508518
509- GPUdDefault () ROFVertexLookupTable() = default ;
519+ GPUh () ROFVertexLookupTable() = default ;
510520
511521 GPUh () size_t getFlatTableSize () const noexcept { return mFlatTable .size (); }
512522 static GPUh () constexpr size_t getIndicesSize() { return NLayers; }
0 commit comments