Skip to content

Commit f0b9b09

Browse files
committed
GPU: Renaming and removal of obsolete macros / defines
1 parent 9e81f9b commit f0b9b09

File tree

90 files changed

+352
-387
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+352
-387
lines changed

DataFormats/Detectors/TPC/include/DataFormatsTPC/Constants.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace constants
2828
constexpr int MAXSECTOR = 36;
2929

3030
// the number of global pad rows
31-
#if defined(GPUCA_STANDALONE) && !defined(GPUCA_O2_LIB) && !defined(GPUCA_TPC_GEOMETRY_O2)
31+
#if defined(GPUCA_STANDALONE) && defined(GPUCA_RUN2)
3232
constexpr int MAXGLOBALPADROW = 159; // Number of pad rows in Run 2, used for GPU TPC tests with Run 2 data
3333
#else
3434
constexpr int MAXGLOBALPADROW = 152; // Correct number of pad rows in Run 3

Detectors/TPC/calibration/src/CorrectdEdxDistortions.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ float o2::tpc::CorrectdEdxDistortions::getCorrection(const float time, unsigned
8787
const float ly = mTPCGeometry.LinearPad2Y(sector, padrow, pad);
8888

8989
// get correction at "pad + 0.5*padlength" pos1 and dont extrapolate/interpolate across GEM gaps
90-
const int row1 = ((padrow == mTPCGeometry.EndIROC() - 1) || (padrow == mTPCGeometry.EndOROC1() - 1) || (padrow == mTPCGeometry.EndOROC2() - 1)) ? padrow : std::clamp(padrow + 1, 0, GPUCA_ROW_COUNT - 1);
90+
const int row1 = ((padrow == mTPCGeometry.EndIROC() - 1) || (padrow == mTPCGeometry.EndOROC1() - 1) || (padrow == mTPCGeometry.EndOROC2() - 1)) ? padrow : std::clamp(padrow + 1, 0, GPUCA_NROWS - 1);
9191

9292
float lxT_1 = 0;
9393
float lyT_1 = 0;
@@ -101,7 +101,7 @@ float o2::tpc::CorrectdEdxDistortions::getCorrection(const float time, unsigned
101101
const float r_1_f = std::sqrt(lxT_1 * lxT_1 + lyT_1 * lyT_1);
102102

103103
// get correction at "pad - 0.5*padlength" pos0 and dont extrapolate/interpolate across GEM gaps
104-
const int row0 = ((padrow == mTPCGeometry.EndIROC()) || (padrow == mTPCGeometry.EndOROC1()) || (padrow == mTPCGeometry.EndOROC2())) ? padrow : std::clamp(padrow - 1, 0, GPUCA_ROW_COUNT - 1);
104+
const int row0 = ((padrow == mTPCGeometry.EndIROC()) || (padrow == mTPCGeometry.EndOROC1()) || (padrow == mTPCGeometry.EndOROC2())) ? padrow : std::clamp(padrow - 1, 0, GPUCA_NROWS - 1);
105105

106106
// check if previous pad row has enough pads
107107
const unsigned char pad0 = std::clamp(static_cast<int>(pad), 0, mTPCGeometry.NPads(row0) - 1);

Detectors/TPC/workflow/src/EntropyEncoderSpec.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -205,23 +205,23 @@ void EntropyEncoderSpec::run(ProcessingContext& pc)
205205
}
206206
}
207207
offset = 0;
208-
unsigned int offsets[GPUCA_NSECTORS][GPUCA_ROW_COUNT];
208+
unsigned int offsets[GPUCA_NSECTORS][GPUCA_NROWS];
209209
for (unsigned int i = 0; i < GPUCA_NSECTORS; i++) {
210-
for (unsigned int j = 0; j < GPUCA_ROW_COUNT; j++) {
211-
if (i * GPUCA_ROW_COUNT + j >= clusters.nSliceRows) {
210+
for (unsigned int j = 0; j < GPUCA_NROWS; j++) {
211+
if (i * GPUCA_NROWS + j >= clusters.nSliceRows) {
212212
break;
213213
}
214214
offsets[i][j] = offset;
215-
offset += (i * GPUCA_ROW_COUNT + j >= clusters.nSliceRows) ? 0 : clusters.nSliceRowClusters[i * GPUCA_ROW_COUNT + j];
215+
offset += (i * GPUCA_NROWS + j >= clusters.nSliceRows) ? 0 : clusters.nSliceRowClusters[i * GPUCA_NROWS + j];
216216
}
217217
}
218218

219219
#ifdef WITH_OPENMP
220220
#pragma omp parallel for num_threads(mNThreads) schedule(static, (GPUCA_NSECTORS + mNThreads - 1) / mNThreads) // Static round-robin scheduling with one chunk per thread to ensure correct order of the final vector
221221
#endif
222222
for (unsigned int ii = 0; ii < clusters.nSliceRows; ii++) {
223-
unsigned int i = ii / GPUCA_ROW_COUNT;
224-
unsigned int j = ii % GPUCA_ROW_COUNT;
223+
unsigned int i = ii / GPUCA_NROWS;
224+
unsigned int j = ii % GPUCA_NROWS;
225225
o2::tpc::ClusterNative preCl;
226226
#ifdef WITH_OPENMP
227227
int myThread = omp_get_thread_num();
@@ -240,7 +240,7 @@ void EntropyEncoderSpec::run(ProcessingContext& pc)
240240
const bool reject = mCTFCoder.getIRFramesSelector().check(o2::dataformats::IRFrame(chkVal, chkVal + 1), chkExt, 0) < 0;
241241
if (reject) {
242242
rejectHits[k] = true;
243-
clustersFiltered.nSliceRowClusters[i * GPUCA_ROW_COUNT + j]--;
243+
clustersFiltered.nSliceRowClusters[i * GPUCA_NROWS + j]--;
244244
static std::atomic_flag lock = ATOMIC_FLAG_INIT;
245245
while (lock.test_and_set(std::memory_order_acquire)) {
246246
}
@@ -253,7 +253,7 @@ void EntropyEncoderSpec::run(ProcessingContext& pc)
253253
preCl = cl;
254254
}
255255
};
256-
unsigned int end = offsets[i][j] + clusters.nSliceRowClusters[i * GPUCA_ROW_COUNT + j];
256+
unsigned int end = offsets[i][j] + clusters.nSliceRowClusters[i * GPUCA_NROWS + j];
257257
o2::gpu::TPCClusterDecompressionCore::decompressHits(clusters, offsets[i][j], end, checker);
258258
}
259259
tmpBuffer[0].first.reserve(clustersFiltered.nUnattachedClusters);

GPU/GPUTracking/Base/GPUParam.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void GPUParam::SetDefaults(float solenoidBz, bool assumeConstantBz)
3838
occupancyMapSize = 0;
3939
occupancyTotal = 0;
4040

41-
#ifdef GPUCA_TPC_GEOMETRY_O2
41+
#ifndef GPUCA_RUN2
4242
const float kErrorsY[4] = {0.06, 0.24, 0.12, 0.1};
4343
const float kErrorsZ[4] = {0.06, 0.24, 0.15, 0.1};
4444

@@ -161,7 +161,7 @@ void GPUParam::SetDefaults(const GPUSettingsGRP* g, const GPUSettingsRec* r, con
161161

162162
void GPUParam::UpdateRun3ClusterErrors(const float* yErrorParam, const float* zErrorParam)
163163
{
164-
#ifdef GPUCA_TPC_GEOMETRY_O2
164+
#ifndef GPUCA_RUN2
165165
for (int32_t yz = 0; yz < 2; yz++) {
166166
const float* param = yz ? zErrorParam : yErrorParam;
167167
for (int32_t rowType = 0; rowType < 4; rowType++) {

GPU/GPUTracking/Base/GPUParam.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ struct GPUParam_t {
6868
GPUParamSector SectorParam[GPUCA_NSECTORS];
6969

7070
protected:
71-
#ifdef GPUCA_TPC_GEOMETRY_O2
71+
#ifndef GPUCA_RUN2
7272
float ParamErrors[2][4][4]; // cluster error parameterization used during seeding and fit
7373
#else
7474
float ParamErrorsSeeding0[2][3][4]; // cluster error parameterization used during seeding

GPU/GPUTracking/Base/GPUParam.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ GPUdi() void GPUParam::Global2Sector(int32_t iSector, float X, float Y, float Z,
3939
*z = Z;
4040
}
4141

42-
#ifdef GPUCA_TPC_GEOMETRY_O2
42+
#ifndef GPUCA_RUN2
4343

4444
GPUdi() void GPUParam::GetClusterErrorsSeeding2(uint8_t sector, int32_t iRow, float z, float sinPhi, float DzDs, float time, float& ErrY2, float& ErrZ2) const
4545
{
@@ -121,7 +121,7 @@ GPUdi() float GPUParam::GetSystematicClusterErrorC122(float x, float y, uint8_t
121121
return errC12 * errC12;
122122
}
123123

124-
#else // GPUCA_TPC_GEOMETRY_O2
124+
#else // !GPUCA_RUN2
125125

126126
GPUdi() float GPUParam::GetClusterErrorSeeding(int32_t yz, int32_t type, float zDiff, float angle2, float scaledMult) const
127127
{
@@ -169,7 +169,7 @@ GPUdi() float GPUParam::GetSystematicClusterErrorC122(float trackX, float trackY
169169
return 0;
170170
}
171171

172-
#endif // !GPUCA_TPC_GEOMETRY_O2
172+
#endif // GPUCA_RUN2
173173

174174
GPUdi() void GPUParam::GetClusterErrors2(uint8_t sector, int32_t iRow, float z, float sinPhi, float DzDs, float time, float avgInvCharge, float invCharge, float& ErrY2, float& ErrZ2) const
175175
{

GPU/GPUTracking/Base/GPUReconstruction.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
#include "utils/strtag.h"
4343
#include "utils/stdspinlock.h"
4444

45-
#ifdef GPUCA_O2_LIB
45+
#ifndef GPUCA_STANDALONE
4646
#include "GPUO2InterfaceConfiguration.h"
4747
#endif
4848

@@ -1249,15 +1249,15 @@ int32_t GPUReconstruction::ReadSettings(const char* dir)
12491249

12501250
void GPUReconstruction::SetSettings(float solenoidBzNominalGPU, const GPURecoStepConfiguration* workflow)
12511251
{
1252-
#ifdef GPUCA_O2_LIB
1252+
#ifdef GPUCA_STANDALONE
1253+
GPUSettingsGRP grp;
1254+
grp.solenoidBzNominalGPU = solenoidBzNominalGPU;
1255+
SetSettings(&grp, nullptr, nullptr, workflow);
1256+
#else
12531257
GPUO2InterfaceConfiguration config;
12541258
config.ReadConfigurableParam(config);
12551259
config.configGRP.solenoidBzNominalGPU = solenoidBzNominalGPU;
12561260
SetSettings(&config.configGRP, &config.configReconstruction, &config.configProcessing, workflow);
1257-
#else
1258-
GPUSettingsGRP grp;
1259-
grp.solenoidBzNominalGPU = solenoidBzNominalGPU;
1260-
SetSettings(&grp, nullptr, nullptr, workflow);
12611261
#endif
12621262
}
12631263

GPU/GPUTracking/Base/GPUReconstruction.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ class GPUReconstruction
9292
using InOutTypeField = gpudatatypes::InOutTypeField;
9393

9494
static constexpr const char* const GEOMETRY_TYPE_NAMES[] = {"INVALID", "ALIROOT", "O2"};
95-
#ifdef GPUCA_TPC_GEOMETRY_O2
96-
static constexpr GeometryType geometryType = GeometryType::O2;
97-
#else
95+
#ifdef GPUCA_RUN2
9896
static constexpr GeometryType geometryType = GeometryType::ALIROOT;
97+
#else
98+
static constexpr GeometryType geometryType = GeometryType::O2;
9999
#endif
100100

101101
static DeviceType GetDeviceType(const char* type);

GPU/GPUTracking/Base/GPUReconstructionConvert.cxx

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/// \file GPUReconstructionConvert.cxx
1313
/// \author David Rohr
1414

15-
#ifdef GPUCA_O2_LIB
15+
#ifndef GPUCA_STANDALONE
1616
#include "DetectorsRaw/RawFileWriter.h"
1717
#include "TPCBase/Sector.h"
1818
#include "DataFormatsTPC/Digit.h"
@@ -54,13 +54,13 @@ void GPUReconstructionConvert::ConvertNativeToClusterData(o2::tpc::ClusterNative
5454
uint32_t offset = 0;
5555
for (uint32_t i = 0; i < NSECTORS; i++) {
5656
uint32_t nClSector = 0;
57-
for (int32_t j = 0; j < GPUCA_ROW_COUNT; j++) {
57+
for (int32_t j = 0; j < GPUCA_NROWS; j++) {
5858
nClSector += native->nClusters[i][j];
5959
}
6060
nClusters[i] = nClSector;
6161
clusters[i].reset(new GPUTPCClusterData[nClSector]);
6262
nClSector = 0;
63-
for (int32_t j = 0; j < GPUCA_ROW_COUNT; j++) {
63+
for (int32_t j = 0; j < GPUCA_NROWS; j++) {
6464
for (uint32_t k = 0; k < native->nClusters[i][j]; k++) {
6565
const auto& clin = native->clusters[i][j][k];
6666
float x = 0, y = 0, z = 0;
@@ -98,7 +98,7 @@ void GPUReconstructionConvert::ConvertRun2RawToNative(o2::tpc::ClusterNativeAcce
9898
native.clustersLinear = nativeBuffer.get();
9999
native.setOffsetPtrs();
100100
for (uint32_t i = 0; i < NSECTORS; i++) {
101-
for (uint32_t j = 0; j < GPUCA_ROW_COUNT; j++) {
101+
for (uint32_t j = 0; j < GPUCA_NROWS; j++) {
102102
native.nClusters[i][j] = 0;
103103
}
104104
for (uint32_t j = 0; j < nRawClusters[i]; j++) {
@@ -119,7 +119,7 @@ int32_t GPUReconstructionConvert::GetMaxTimeBin(const ClusterNativeAccess& nativ
119119
{
120120
float retVal = 0;
121121
for (uint32_t i = 0; i < NSECTORS; i++) {
122-
for (uint32_t j = 0; j < GPUCA_ROW_COUNT; j++) {
122+
for (uint32_t j = 0; j < GPUCA_NROWS; j++) {
123123
for (uint32_t k = 0; k < native.nClusters[i][j]; k++) {
124124
if (native.clusters[i][j][k].getTime() > retVal) {
125125
retVal = native.clusters[i][j][k].getTime();
@@ -174,7 +174,7 @@ int32_t GPUReconstructionConvert::GetMaxTimeBin(const GPUTrackingInOutZS& zspage
174174

175175
// ------------------------------------------------- TPC ZS -------------------------------------------------
176176

177-
#ifdef GPUCA_TPC_GEOMETRY_O2
177+
#ifndef GPUCA_RUN2
178178
namespace o2::gpu
179179
{
180180
namespace // anonymous
@@ -193,7 +193,7 @@ struct zsEncoder {
193193
const o2::InteractionRecord* ir = nullptr;
194194
const GPUParam* param = nullptr;
195195
bool padding = false;
196-
int32_t lastEndpoint = -2, lastTime = -1, lastRow = GPUCA_ROW_COUNT;
196+
int32_t lastEndpoint = -2, lastTime = -1, lastRow = GPUCA_NROWS;
197197
int32_t endpoint = 0, outputEndpoint = 0;
198198
int64_t hbf = -1, nexthbf = 0;
199199
zsPage* page = nullptr;
@@ -244,11 +244,11 @@ inline void zsEncoder::ZSstreamOut(uint16_t* bufIn, uint32_t& lenIn, uint8_t* bu
244244

245245
static inline auto ZSEncoderGetDigits(const GPUTrackingInOutDigits& in, int32_t i) { return in.tpcDigits[i]; }
246246
static inline auto ZSEncoderGetNDigits(const GPUTrackingInOutDigits& in, int32_t i) { return in.nTPCDigits[i]; }
247-
#ifdef GPUCA_O2_LIB
247+
#ifndef GPUCA_STANDALONE
248248
using DigitArray = std::array<gsl::span<const o2::tpc::Digit>, o2::tpc::Sector::MAXSECTOR>;
249249
static inline auto ZSEncoderGetDigits(const DigitArray& in, int32_t i) { return in[i].data(); }
250250
static inline auto ZSEncoderGetNDigits(const DigitArray& in, int32_t i) { return in[i].size(); }
251-
#endif // GPUCA_O2_LIB
251+
#endif
252252

253253
// ------------------------------------------------- TPC ZS Original Row-based ZS -------------------------------------------------
254254

@@ -364,7 +364,7 @@ uint32_t zsEncoderRow::encodeSequence(std::vector<o2::tpc::Digit>& tmpBuffer, ui
364364
curTBHdr = reinterpret_cast<TPCZSTBHDR*>(pagePtr);
365365
curTBHdr->rowMask |= (endpoint & 1) << 15;
366366
nRowsInTB = 0;
367-
lastRow = GPUCA_ROW_COUNT;
367+
lastRow = GPUCA_NROWS;
368368
}
369369
if (tmpBuffer[k].getRow() != lastRow) {
370370
curTBHdr->rowMask |= 1 << (tmpBuffer[k].getRow() - endpointStart);
@@ -460,7 +460,7 @@ void zsEncoderRow::decodePage(std::vector<o2::tpc::Digit>& outputBuffer, const z
460460

461461
// ------------------------------------------------- TPC ZS Link Based ZS -------------------------------------------------
462462

463-
#ifdef GPUCA_O2_LIB
463+
#ifndef GPUCA_STANDALONE
464464
struct zsEncoderLinkBased : public zsEncoder {
465465
TPCZSHDRV2* hdr = nullptr;
466466
TPCZSHDRV2 hdrBuffer;
@@ -1045,7 +1045,7 @@ void zsEncoderDenseLinkBased::amendPageErrorMessage(std::ostringstream& oss, con
10451045
oss << "Meta header of page: " << dumpBuffer << "\n";
10461046
}
10471047

1048-
#endif // GPUCA_O2_LIB
1048+
#endif // !GPUCA_STANDALONE
10491049

10501050
// ------------------------------------------------- TPC ZS Main Encoder -------------------------------------------------
10511051

@@ -1095,7 +1095,7 @@ inline uint32_t zsEncoderRun<T>::run(std::vector<zsPage>* buffer, std::vector<o2
10951095
{
10961096
uint32_t totalPages = 0;
10971097
zsPage singleBuffer;
1098-
#ifdef GPUCA_O2_LIB
1098+
#ifndef GPUCA_STANDALONE
10991099
int32_t maxhbf = 0;
11001100
int32_t minhbf = o2::constants::lhc::LHCMaxBunches;
11011101
#endif
@@ -1178,7 +1178,7 @@ inline uint32_t zsEncoderRun<T>::run(std::vector<zsPage>* buffer, std::vector<o2
11781178
}
11791179
size_t size = !std::is_same_v<T, struct zsEncoderDenseLinkBased> && (padding || lastEndpoint == -1 || hbf == nexthbf) ? TPCZSHDR::TPC_ZS_PAGE_SIZE : (pagePtr - (uint8_t*)page);
11801180
size = CAMath::nextMultipleOf<o2::raw::RDHUtils::GBTWord128>(size);
1181-
#ifdef GPUCA_O2_LIB
1181+
#ifndef GPUCA_STANDALONE
11821182
if (raw) {
11831183
raw->addData(rawfeeid, rawcru, 0, rawendpoint, *ir + hbf * o2::constants::lhc::LHCMaxBunches, gsl::span<char>((char*)page + sizeof(o2::header::RAWDataHeader), (char*)page + size), true, 0, 2);
11841184
maxhbf = std::max<int32_t>(maxhbf, hbf);
@@ -1257,7 +1257,7 @@ inline uint32_t zsEncoderRun<T>::run(std::vector<zsPage>* buffer, std::vector<o2
12571257
k += nEncoded;
12581258
}
12591259
if (raw) {
1260-
#ifdef GPUCA_O2_LIB
1260+
#ifndef GPUCA_STANDALONE
12611261
if (iSector == 0) {
12621262
for (int32_t i = minhbf; i <= maxhbf; i++) {
12631263
raw->addData(46208, 360, rdh_utils::SACLinkID, 0, *ir + i * o2::constants::lhc::LHCMaxBunches, gsl::span<char>((char*)&singleBuffer, (char*)&singleBuffer), true, 0, 4);
@@ -1310,7 +1310,7 @@ size_t zsEncoderRun<T>::compare(std::vector<zsPage>* buffer, std::vector<o2::tpc
13101310

13111311
} // anonymous namespace
13121312
} // namespace o2::gpu
1313-
#endif // GPUCA_TPC_GEOMETRY_O2
1313+
#endif // !GPUCA_RUN2
13141314

13151315
template <class S>
13161316
void GPUReconstructionConvert::RunZSEncoder(const S& in, std::unique_ptr<uint64_t[]>* outBuffer, uint32_t* outSizes, o2::raw::RawFileWriter* raw, const o2::InteractionRecord* ir, const GPUParam& param, int32_t version, bool verify, float threshold, bool padding, std::function<void(std::vector<o2::tpc::Digit>&)> digitsFilter)
@@ -1320,7 +1320,7 @@ void GPUReconstructionConvert::RunZSEncoder(const S& in, std::unique_ptr<uint64_
13201320
if (((outBuffer == nullptr) ^ (outSizes == nullptr)) || ((raw != nullptr) && (ir == nullptr)) || !((outBuffer == nullptr) ^ (raw == nullptr)) || (raw && verify)) {
13211321
throw std::runtime_error("Invalid parameters");
13221322
}
1323-
#ifdef GPUCA_TPC_GEOMETRY_O2
1323+
#ifndef GPUCA_RUN2
13241324
std::vector<zsPage> buffer[NSECTORS][GPUTrackingInOutZS::NENDPOINTS];
13251325
struct tmpReductionResult {
13261326
uint32_t totalPages = 0;
@@ -1365,7 +1365,7 @@ void GPUReconstructionConvert::RunZSEncoder(const S& in, std::unique_ptr<uint64_
13651365
zsEncoderRun<zsEncoderRow> enc{{{.iSector = i, .raw = raw, .ir = ir, .param = &param, .padding = padding}}};
13661366
runZS(enc);
13671367
} else if (version >= ZSVersion::ZSVersionLinkBasedWithMeta && version <= ZSVersion::ZSVersionDenseLinkBasedV2) {
1368-
#ifdef GPUCA_O2_LIB
1368+
#ifndef GPUCA_STANDALONE
13691369
if (version == ZSVersion::ZSVersionLinkBasedWithMeta) {
13701370
zsEncoderRun<zsEncoderImprovedLinkBased> enc{{{{.iSector = i, .raw = raw, .ir = ir, .param = &param, .padding = padding}}}};
13711371
runZS(enc);
@@ -1410,7 +1410,7 @@ void GPUReconstructionConvert::RunZSEncoder(const S& in, std::unique_ptr<uint64_
14101410
}
14111411

14121412
template void GPUReconstructionConvert::RunZSEncoder<GPUTrackingInOutDigits>(const GPUTrackingInOutDigits&, std::unique_ptr<uint64_t[]>*, uint32_t*, o2::raw::RawFileWriter*, const o2::InteractionRecord*, const GPUParam&, int32_t, bool, float, bool, std::function<void(std::vector<o2::tpc::Digit>&)> digitsFilter);
1413-
#ifdef GPUCA_O2_LIB
1413+
#ifndef GPUCA_STANDALONE
14141414
template void GPUReconstructionConvert::RunZSEncoder<DigitArray>(const DigitArray&, std::unique_ptr<uint64_t[]>*, uint32_t*, o2::raw::RawFileWriter*, const o2::InteractionRecord*, const GPUParam&, int32_t, bool, float, bool, std::function<void(std::vector<o2::tpc::Digit>&)> digitsFilter);
14151415
#endif
14161416

@@ -1454,7 +1454,7 @@ void GPUReconstructionConvert::RunZSFilter(std::unique_ptr<o2::tpc::Digit[]>* bu
14541454
}
14551455
}
14561456

1457-
#ifdef GPUCA_O2_LIB
1457+
#ifndef GPUCA_STANDALONE
14581458
namespace o2::gpu::internal
14591459
{
14601460
template <class T>

GPU/GPUTracking/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ if(ALIGPU_BUILD_TYPE STREQUAL "O2")
355355
O2::TPCFastTransformation
356356
PRIVATE_LINK_LIBRARIES O2::DataFormatsTPC
357357
SOURCES ${SRCS_DATATYPES})
358-
target_compile_definitions(${targetName} PRIVATE GPUCA_O2_LIB GPUCA_TPC_GEOMETRY_O2)
358+
target_compile_definitions(${targetName} PRIVATE GPUCA_O2_LIB)
359359

360360
o2_target_root_dictionary(GPUDataTypes
361361
HEADERS ${HDRS_CINT_DATATYPES} ${HDRS_CINT_O2_ADDITIONAL}
@@ -384,7 +384,7 @@ if(ALIGPU_BUILD_TYPE STREQUAL "O2")
384384
${targetName}
385385
PRIVATE $<TARGET_PROPERTY:O2::Framework,INTERFACE_INCLUDE_DIRECTORIES>)
386386

387-
target_compile_definitions(${targetName} PRIVATE GPUCA_O2_LIB GPUCA_TPC_GEOMETRY_O2)
387+
target_compile_definitions(${targetName} PRIVATE GPUCA_O2_LIB)
388388

389389
o2_target_root_dictionary(${MODULE}
390390
HEADERS ${HDRS_CINT_O2} ${HDRS_CINT_O2_ADDITIONAL}

0 commit comments

Comments
 (0)