OmniSciDB  04ee39c94c
ConfigResolve.h
Go to the documentation of this file.
1 #ifndef CONFIGRESOLVE_H
2 #define CONFIGRESOLVE_H
3 
4 #include <type_traits>
5 #include "funcannotations.h"
6 
7 struct PreprocessorTrue {};
8 struct PreprocessorFalse {};
9 
10 #ifdef ENABLE_JAVA_REMOTE_DEBUG
12 #else
14 #endif
15 
16 #ifdef CALCITE_UPDATE_ENABLED
18 #else
20 #endif
21 
22 #ifdef CALCITE_DELETE_ENABLED
24 #else
26 #endif
27 
28 #ifdef HAVE_CUDA
30 #else
32 #endif
33 
34 #ifdef ENABLE_VARLEN_UPDATE
36 #else
38 #endif
39 
40 template <typename T>
41 inline constexpr bool is_feature_enabled() {
42  return std::is_same<T, PreprocessorTrue>::value;
43 }
44 
45 inline DEVICE constexpr bool isCudaCC() {
46 #ifdef __CUDACC__
47  return true;
48 #else
49  return false;
50 #endif
51 }
52 
53 #endif
constexpr bool is_feature_enabled()
Definition: ConfigResolve.h:41
#define DEVICE
DEVICE constexpr bool isCudaCC()
Definition: ConfigResolve.h:45