Skip to content

Commit d50b3b0

Browse files
committed
GPU: Hide Vc correctly from ROOT
1 parent 6c537d7 commit d50b3b0

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

GPU/Common/GPUCommonDef.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
//Some GPU configuration settings, must be included first
3131
#include "GPUCommonDefSettings.h"
3232

33-
#if !(defined(__CLING__) || defined(__ROOTCLING__) || defined(G__ROOT)) // No GPU code for ROOT
33+
#if !defined(__CLING__) && !defined(G__ROOT) // No GPU code for ROOT
3434
#if defined(__CUDACC__) || defined(__OPENCL__) || defined(__HIPCC__) || defined(__OPENCL_HOST__)
3535
#define GPUCA_GPUCODE // Compiled by GPU compiler
3636
#endif

GPU/Common/GPUCommonMath.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ GPUdi() void GPUCommonMath::AtomicMinInternal(S* addr, T val)
521521
#endif // GPUCA_GPUCODE
522522
}
523523

524-
#if (defined(__CUDACC__) || defined(__HIPCC__)) && !defined(G__ROOT)
524+
#if (defined(__CUDACC__) || defined(__HIPCC__)) && !defined(G__ROOT) && !defined(__CLING__)
525525
#define GPUCA_HAVE_ATOMIC_MINMAX_FLOAT
526526
template <>
527527
GPUdii() void GPUCommonMath::AtomicMaxInternal(GPUglobalref() GPUgeneric() GPUAtomic(float) * addr, float val)

GPU/TPCFastTransformation/Spline2D.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "FlatObject.h"
2323
#include "GPUCommonDef.h"
2424

25-
#if !defined(__ROOTCLING__) && !defined(GPUCA_GPUCODE) && !defined(GPUCA_NO_VC)
25+
#if !defined(__CLING__) && !defined(G__ROOT) && !defined(GPUCA_GPUCODE) && !defined(GPUCA_NO_VC)
2626
#include <Vc/Vc>
2727
#include <Vc/SimdArray>
2828
#endif

GPU/TPCFastTransformation/Spline2DSpec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "GPUCommonDef.h"
2323
#include "SplineUtil.h"
2424

25-
#if !defined(__ROOTCLING__) && !defined(GPUCA_GPUCODE) && !defined(GPUCA_NO_VC)
25+
#if !defined(__CLING__) && !defined(G__ROOT) && !defined(GPUCA_GPUCODE) && !defined(GPUCA_NO_VC)
2626
#include <Vc/Vc>
2727
#include <Vc/SimdArray>
2828
#endif

GPU/TPCFastTransformation/SplineSpec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "GPUCommonDef.h"
2323
#include "SplineUtil.h"
2424

25-
#if !defined(__ROOTCLING__) && !defined(GPUCA_GPUCODE) && !defined(GPUCA_NO_VC)
25+
#if !defined(__CLING__) && !defined(G__ROOT) && !defined(GPUCA_GPUCODE) && !defined(GPUCA_NO_VC)
2626
#include <Vc/Vc>
2727
#include <Vc/SimdArray>
2828
#endif

GPU/TPCFastTransformation/devtools/IrregularSpline2D3D.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "FlatObject.h"
2222
#include "GPUCommonDef.h"
2323

24-
#if !defined(__ROOTCLING__) && !defined(GPUCA_GPUCODE) && !defined(GPUCA_NO_VC)
24+
#if !defined(__CLING__) && !defined(G__ROOT) && !defined(GPUCA_GPUCODE) && !defined(GPUCA_NO_VC)
2525
#include <Vc/Vc>
2626
#include <Vc/SimdArray>
2727
#endif
@@ -329,7 +329,7 @@ GPUdi() void IrregularSpline2D3D::getSplineVec(const float* correctedData, float
329329
// Same as getSpline, but using vectorized calculation.
330330
// \param correctedData should be at least 128-bit aligned
331331

332-
#if !defined(__ROOTCLING__) && !defined(GPUCA_GPUCODE) && !defined(GPUCA_NO_VC)
332+
#if !defined(__CLING__) && !defined(G__ROOT) && !defined(GPUCA_GPUCODE) && !defined(GPUCA_NO_VC)
333333
const IrregularSpline1D& gridU = getGridU();
334334
const IrregularSpline1D& gridV = getGridV();
335335
int32_t nu = gridU.getNumberOfKnots();

GPU/TPCFastTransformation/devtools/SemiregularSpline2D3D.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "RegularSpline1D.h"
2424
#include "FlatObject.h"
2525

26-
#if !defined(__ROOTCLING__) && !defined(GPUCA_GPUCODE) && !defined(GPUCA_NO_VC)
26+
#if !defined(__CLING__) && !defined(G__ROOT) && !defined(GPUCA_GPUCODE) && !defined(GPUCA_NO_VC)
2727
#include <Vc/Vc>
2828
#include <Vc/SimdArray>
2929
#endif
@@ -398,7 +398,7 @@ inline void SemiregularSpline2D3D::getSplineVec(const float* correctedData, floa
398398
// Same as getSpline, but using vectorized calculation.
399399
// \param correctedData should be at least 128-bit aligned
400400

401-
#if !defined(__ROOTCLING__) && !defined(GPUCA_GPUCODE) && !defined(GPUCA_NO_VC)
401+
#if !defined(__CLING__) && !defined(G__ROOT) && !defined(GPUCA_GPUCODE) && !defined(GPUCA_NO_VC)
402402
//&& !defined(__CLING__)
403403
/*
404404
Idea: There are 16 knots important for (u, v).

0 commit comments

Comments
 (0)