Skip to content

Commit 9d87df0

Browse files
committed
GPU: Fix some compile errors in setups not tested by CI
1 parent b7e505e commit 9d87df0

7 files changed

Lines changed: 10 additions & 7 deletions

File tree

GPU/GPUTracking/Base/GPUReconstructionConvert.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
#include "GPUO2DataTypes.h"
1818
#include "GPUDataTypes.h"
1919
#include "AliHLTTPCRawCluster.h"
20-
#include "Digit.h"
2120
#include "GPUParam.h"
2221
#include <algorithm>
2322
#include <vector>
2423

2524
#ifdef HAVE_O2HEADERS
25+
#include "Digit.h"
2626
#include "DataFormatsTPC/ZeroSuppression.h"
2727
#include "Headers/RAWDataHeader.h"
2828
#endif

GPU/GPUTracking/Base/opencl-common/GPUReconstructionOCL.cl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@
5858
#undef assert
5959
#endif
6060
#define assert(param)
61+
#ifndef __OPENCLCPP__
62+
#define static_assert(...)
63+
#endif
6164

6265
#include "GPUReconstructionIncludesDevice.h"
6366
#include "GPUConstantMem.h"

GPU/GPUTracking/Standalone/cmake/config.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ set(BUILD_EVENT_DISPLAY 1)
1515
set(CONFIG_GL3W 0)
1616
set(CONFIG_O2 1)
1717
set(BUILD_DEBUG 0)
18-
#set(CUDA_GCCBIN gcc-8.3.0)
18+
#set(CUDA_GCCBIN c++-8.3.0)
1919
#set(OCL2_GPUTARGET gfx906)
2020
#set(HIP_AMDGPUTARGET gfx906)
2121
#set(CUDA_COMPUTETARGET 61)

GPU/TPCFastTransformation/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ set(MODULE TPCFastTransformation)
1212

1313
set(SRCS
1414
Spline1D.cxx
15-
Spline2D.cxx
15+
Spline2D.cxx
1616
SplineHelper1D.cxx
1717
SplineHelper2D.cxx
1818
IrregularSpline1D.cxx

GPU/TPCFastTransformation/Spline1D.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,4 +419,4 @@ int Spline1D::test(const bool draw, const bool drawDataPoints)
419419
return 0;
420420
}
421421

422-
#endif // GPUCA_GPUCODE
422+
#endif // GPUCA_GPUCODE

GPU/TPCFastTransformation/SplineHelper1D.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
///
1414
/// \author Sergey Gorbunov <sergey.gorbunov@cern.ch>
1515

16-
#if !defined(GPUCA_GPUCODE) && !defined(GPUCA_STANDALONE) && !defined(GPUCA_ALIROOT_LIB)
16+
#if !defined(GPUCA_GPUCODE) && !defined(GPUCA_STANDALONE)
1717

1818
#include "SplineHelper1D.h"
1919
#include "TMath.h"
@@ -42,7 +42,7 @@ std::unique_ptr<float[]> SplineHelper1D::constructParametersClassic(int Ndim, st
4242

4343
/*
4444
const Spline1D::Knot& knot0 = mSpline.getKnot(i);
45-
double x = (u - knot0.u) * knot0.Li; // scaled u
45+
double x = (u - knot0.u) * knot0.Li; // scaled u
4646
double cS1 = (6 - 12*x)*knot0.Li*knot0.Li;
4747
double cZ0 = (6*x-4)*knot0.Li;
4848
double cZ1 = (6*x-2)*knot0.Li;

GPU/TPCFastTransformation/SplineHelper2D.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
///
1414
/// \author Sergey Gorbunov <sergey.gorbunov@cern.ch>
1515

16-
#if !defined(GPUCA_GPUCODE) && !defined(GPUCA_STANDALONE) && !defined(GPUCA_ALIROOT_LIB)
16+
#if !defined(GPUCA_GPUCODE) && !defined(GPUCA_STANDALONE)
1717

1818
#include "SplineHelper2D.h"
1919
#include "TMath.h"

0 commit comments

Comments
 (0)