Skip to content

Commit a0bd8e9

Browse files
committed
GPU: Add missing headeres and some protections
1 parent e16c810 commit a0bd8e9

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

GPU/GPUTracking/Debug/GPUTPCClusterFilter.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
/// \author David Rohr
1414

1515
#include "GPUTPCClusterFilter.h"
16+
#ifdef GPUCA_HAVE_O2HEADERS
1617
#include "DataFormatsTPC/ClusterNative.h"
1718

1819
using namespace o2::gpu;
@@ -29,3 +30,4 @@ bool GPUTPCClusterFilter::filter(uint32_t sector, uint32_t row, o2::tpc::Cluster
2930
// Note that this function might be called multiple times for the same cluster, in which case the final modified cl reference goes into the output clusters.
3031
return true;
3132
}
33+
#endif

GPU/GPUTracking/Global/GPUChainTrackingDebugAndProfiling.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ void GPUChainTracking::SanityCheck()
301301

302302
void GPUChainTracking::RunTPCClusterFilter(o2::tpc::ClusterNativeAccess* clusters, std::function<o2::tpc::ClusterNative*(size_t)> allocator, bool applyClusterCuts)
303303
{
304+
#ifdef GPUCA_HAVE_O2HEADERS
304305
GPUTPCClusterFilter clusterFilter(*clusters);
305306
o2::tpc::ClusterNative* outputBuffer = nullptr;
306307
for (int32_t iPhase = 0; iPhase < 2; iPhase++) {
@@ -337,4 +338,5 @@ void GPUChainTracking::RunTPCClusterFilter(o2::tpc::ClusterNativeAccess* cluster
337338
outputBuffer = allocator(countTotal);
338339
}
339340
}
341+
#endif
340342
}

GPU/GPUTracking/SliceTracker/GPUTPCTrackerComponent.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ int32_t GPUTPCTrackerComponent::ConfigureSlices()
374374
GPUSettingsProcessing devProc;
375375

376376
grp.solenoidBzNominalGPU = fSolenoidBz;
377-
grp.continuousMaxTimeBin = 0; // triggered events
377+
grp.grpContinuousMaxTimeBin = 0; // triggered events
378378
if (mNeighboursSearchArea > 0) {
379379
rec.tpc.neighboursSearchArea = mNeighboursSearchArea;
380380
}

GPU/TPCFastTransformation/NDPiecewisePolynomials.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
#if !defined(GPUCA_GPUCODE) && !defined(GPUCA_STANDALONE)
2424
#include <vector>
25+
#include <functional>
2526
#endif
2627

2728
class TFile;

0 commit comments

Comments
 (0)