-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h.in.cmake
195 lines (111 loc) · 3.85 KB
/
config.h.in.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
#cmakedefine BUILD_HSA
#cmakedefine BUILD_CUDA
#define BUILDDIR "@BUILDDIR@"
/* "Build with ICD" */
#cmakedefine BUILD_ICD
#define CLANG "@CLANG@"
#cmakedefine CLANG_HAS_RTLIB
#cmakedefine CLANG_HAS_RTLIB_128
#define CLANG_RESOURCE_DIR "@CLANG_RESOURCE_DIR@"
/* clang++ executable */
#define CLANGXX "@CLANGXX@"
#define CMAKE_BUILD_TYPE "@CMAKE_BUILD_TYPE@"
#cmakedefine ENABLE_ASAN
#cmakedefine ENABLE_LSAN
#cmakedefine ENABLE_TSAN
#cmakedefine ENABLE_UBSAN
#cmakedefine ENABLE_CONFORMANCE
#cmakedefine ENABLE_POCL_BUILDING
#cmakedefine ENABLE_POCL_FLOAT_CONVERSION
#cmakedefine ENABLE_SLEEF
#cmakedefine ENABLE_VECMATHLIB
#cmakedefine ENABLE_SPIR
#cmakedefine ENABLE_SPIRV
#cmakedefine HAVE_FORK
#cmakedefine HAVE_VFORK
#cmakedefine HAVE_CLOCK_GETTIME
#cmakedefine HAVE_FDATASYNC
#cmakedefine HAVE_FSYNC
#cmakedefine HAVE_MKOSTEMPS
#cmakedefine HAVE_MKSTEMPS
#cmakedefine HAVE_MKDTEMP
#cmakedefine HAVE_FUTIMENS
#cmakedefine HAVE_LTTNG_UST
#cmakedefine HAVE_OCL_ICD
#cmakedefine HAVE_POSIX_MEMALIGN
#cmakedefine HAVE_UTIME
#cmakedefine HAVE_HSA_EXT_AMD_H
#define HOST "@HOST@"
#define HOST_AS_FLAGS "@HOST_AS_FLAGS@"
#define HOST_CLANG_FLAGS "@HOST_CLANG_FLAGS@"
#define HOST_DEVICE_EXTENSIONS "@HOST_DEVICE_EXTENSIONS@"
#cmakedefine HOST_CPU_FORCED
#define HOST_CPU_CACHELINE_SIZE @HOST_CPU_CACHELINE_SIZE@
#define HOST_LD_FLAGS "@HOST_LD_FLAGS@"
#define HOST_LLC_FLAGS "@HOST_LLC_FLAGS@"
#cmakedefine HOST_FLOAT_SOFT_ABI
#define HOST_DEVICE_BUILD_HASH "@HOST_DEVICE_BUILD_HASH@"
#define HSA_DEVICE_EXTENSIONS "@HSA_DEVICE_EXTENSIONS@"
#define HSAIL_ASM "@HSAIL_ASM@"
#define KERNELLIB_HOST_CPU_VARIANTS "@KERNELLIB_HOST_CPU_VARIANTS@"
#cmakedefine KERNELLIB_HOST_DISTRO_VARIANTS
#define LLVM_LLC "@LLVM_LLC@"
#define LLVM_SPIRV "@LLVM_SPIRV@"
/* "Using LLVM 3.6" */
#cmakedefine LLVM_3_6
/* "Using LLVM 3.7" */
#cmakedefine LLVM_3_7
/* "Using LLVM 3.8" */
#cmakedefine LLVM_3_8
/* "Using LLVM 3.9" */
#cmakedefine LLVM_3_9
/* "Using LLVM 4.0" */
#cmakedefine LLVM_4_0
/* "Using LLVM 5.0" */
#cmakedefine LLVM_5_0
/* "Using LLVM 6.0" */
#cmakedefine LLVM_6_0
/* "Using LLVM 7.0" */
#cmakedefine LLVM_7_0
#cmakedefine LLVM_BUILD_MODE_DEBUG
#ifndef LLVM_VERSION
#define LLVM_VERSION "@LLVM_VERSION_FULL@"
#endif
#define LINK_COMMAND "@LINK_COMMAND@"
/* Defined to greatest expected alignment for extended types, in bytes. */
#define MAX_EXTENDED_ALIGNMENT @MAX_EXTENDED_ALIGNMENT@
/* used in lib/CL/devices/basic */
#define OCL_KERNEL_TARGET "@OCL_KERNEL_TARGET@"
#define OCL_KERNEL_TARGET_CPU "@OCL_KERNEL_TARGET_CPU@"
#cmakedefine OCS_AVAILABLE
#define PACKAGE_VERSION "@PACKAGE_VERSION@"
#define POCL_KCACHE_SALT "@POCL_KCACHE_SALT@"
#define POCL_KERNEL_CACHE_DEFAULT @POCL_KERNEL_CACHE_DEFAULT@
#define POCL_DEVICE_ADDRESS_BITS @POCL_DEVICE_ADDRESS_BITS@
#cmakedefine POCL_DEBUG_MESSAGES
#define POCL_INSTALL_PRIVATE_HEADER_DIR "@POCL_INSTALL_PRIVATE_HEADER_DIR@"
#define POCL_INSTALL_PRIVATE_DATADIR "@POCL_INSTALL_PRIVATE_DATADIR@"
#cmakedefine POCL_USE_FAKE_ADDR_SPACE_IDS
#cmakedefine POCL_ASSERTS_BUILD
/* these are *host* values */
/* used in tce_common.c & pocl_llvm_api.cc */
#define SRCDIR "@SRCDIR@"
#cmakedefine TCEMC_AVAILABLE
#cmakedefine TCE_AVAILABLE
#define TCE_DEVICE_EXTENSIONS "@TCE_DEVICE_EXTENSIONS@"
/* Defined on big endian systems */
#define WORDS_BIGENDIAN @WORDS_BIGENDIAN@
/* Disable cl_khr_fp16 because fp16 is not supported */
#cmakedefine _CL_DISABLE_HALF
/* Disable cl_khr_fp64 because fp64 is not supported */
#cmakedefine _CL_DISABLE_DOUBLE
#define POCL_CL_VERSION "1.2"
#define HSA_DEVICE_CL_VERSION_MAJOR 2
#define HSA_DEVICE_CL_VERSION_MINOR 0
#define CUDA_DEVICE_CL_VERSION_MAJOR 1
#define CUDA_DEVICE_CL_VERSION_MINOR 2
#define HOST_DEVICE_CL_VERSION_MAJOR 1
#define HOST_DEVICE_CL_VERSION_MINOR 2
#define TCE_DEVICE_CL_VERSION_MAJOR 1
#define TCE_DEVICE_CL_VERSION_MINOR 2
#cmakedefine USE_POCL_MEMMANAGER