1616
1717#include " GPUCommonDef.h"
1818
19- #if (!defined(__OPENCL__) || defined(__OPENCLCPP__)) && (!(defined(__CINT__) || defined(__ROOTCINT__)) || defined(__CLING__)) && defined(__cplusplus) && __cplusplus >= 201103L
20- #define GPUDATATYPES_NOCOMPAT
19+ #ifdef GPUCA_NOCOMPAT_ALLOPENCL
2120#include < type_traits>
2221#include " GPUTRDDef.h"
2322
@@ -40,7 +39,7 @@ namespace GPUCA_NAMESPACE
4039{
4140namespace gpu
4241{
43- #ifdef GPUDATATYPES_NOCOMPAT
42+ #ifdef GPUCA_NOCOMPAT_ALLOPENCL
4443#include " utils/bitfield.h"
4544#define ENUM_CLASS class
4645#define ENUM_UINT : unsigned int
@@ -87,7 +86,7 @@ class GPUDataTypes
8786 TRDTracklets = 16 ,
8887 TRDTracks = 32 };
8988
90- #ifdef GPUDATATYPES_NOCOMPAT
89+ #ifdef GPUCA_NOCOMPAT_ALLOPENCL
9190 static constexpr const char * const RECO_STEP_NAMES [] = { " TPC Transformation" , " TPC Sector Tracking" , " TPC Track Merging and Fit" , " TPC Compression" , " TRD Tracking" , " ITS Tracking" , " TPC dEdx Computation" };
9291 typedef bitfield<RecoStep, unsigned int > RecoStepField;
9392 typedef bitfield<InOutType, unsigned int > InOutTypeField;
@@ -96,7 +95,7 @@ class GPUDataTypes
9695 static DeviceType GetDeviceType (const char * type);
9796};
9897
99- #ifdef GPUDATATYPES_NOCOMPAT
98+ #ifdef GPUCA_NOCOMPAT_ALLOPENCL
10099struct GPURecoStepConfiguration {
101100 GPUDataTypes::RecoStepField steps = 0 ;
102101 GPUDataTypes::InOutTypeField inputs = 0 ;
@@ -134,7 +133,6 @@ struct GPUTrackingInOutPointers {
134133 unsigned int nTRDTrackletsMC = 0 ;
135134 friend class GPUReconstruction ;
136135};
137- #undef GPUDATATYPES_NOCOMPAT
138136#endif
139137
140138#undef ENUM_CLASS
0 commit comments