-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h.in.cmake
289 lines (158 loc) · 5.72 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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
#ifndef POCL_CONFIG_H
#define POCL_CONFIG_H
#cmakedefine BUILD_HSA
#cmakedefine BUILD_CUDA
#cmakedefine BUILD_BASIC
#cmakedefine BUILD_TBB
#cmakedefine BUILD_PTHREAD
#cmakedefine BUILD_ALMAIF
#cmakedefine BUILD_VULKAN
#cmakedefine BUILD_LEVEL0
#cmakedefine BUILD_REMOTE_SERVER
#cmakedefine BUILD_REMOTE_CLIENT
#cmakedefine BUILD_PROXY
#define BUILDDIR "@BUILDDIR@"
/* "Build with ICD" */
#cmakedefine BUILD_ICD
#define CMAKE_BUILD_TYPE "@CMAKE_BUILD_TYPE@"
#cmakedefine HAVE_CLSPV
#define CLSPV "@CLSPV@"
#define CLSPV_REFLECTION "@CLSPV_REFLECTION@"
#cmakedefine ENABLE_ASAN
#cmakedefine ENABLE_LSAN
#cmakedefine ENABLE_TSAN
#cmakedefine ENABLE_UBSAN
#cmakedefine ENABLE_EXTRA_VALIDITY_CHECKS
#cmakedefine ENABLE_CONFORMANCE
#cmakedefine ENABLE_RDMA
#cmakedefine ENABLE_TRAFFIC_MONITOR
#cmakedefine ENABLE_HWLOC
#cmakedefine ENABLE_HOST_CPU_DEVICES
#cmakedefine ENABLE_POCL_BUILDING
#cmakedefine ENABLE_POCL_FLOAT_CONVERSION
#cmakedefine ENABLE_PRINTF_IMMEDIATE_FLUSH
#cmakedefine ENABLE_VSOCK
#cmakedefine ENABLE_RELOCATION
#cmakedefine ENABLE_EGL_INTEROP
#cmakedefine ENABLE_OPENGL_INTEROP
#ifdef ENABLE_OPENGL_INTEROP
#cmakedefine ENABLE_CL_GET_GL_CONTEXT
#endif
#cmakedefine ENABLE_SLEEF
#cmakedefine ENABLE_SPIRV
#cmakedefine ENABLE_VALGRIND
#cmakedefine HAVE_DLFCN_H
#cmakedefine HAVE_FORK
#cmakedefine HAVE_VFORK
#cmakedefine HAVE_CLOCK_GETTIME
#cmakedefine HAVE_FDATASYNC
#cmakedefine HAVE_FSYNC
#cmakedefine HAVE_GETRLIMIT
#cmakedefine HAVE_MKOSTEMPS
#cmakedefine HAVE_MKSTEMPS
#cmakedefine HAVE_MKDTEMP
#cmakedefine HAVE_FUTIMENS
#cmakedefine HAVE_LTTNG_UST
#cmakedefine HAVE_OCL_ICD
#cmakedefine HAVE_OCL_ICD_30_COMPATIBLE
#cmakedefine HAVE_POSIX_MEMALIGN
#cmakedefine HAVE_SLEEP
#cmakedefine HAVE_UTIME
#cmakedefine HAVE_XRT
#cmakedefine ENABLE_LLVM
#cmakedefine ENABLE_LOADABLE_DRIVERS
/* this is used all over the runtime code */
#define HOST_CPU_CACHELINE_SIZE @HOST_CPU_CACHELINE_SIZE@
#if defined(BUILD_CUDA)
#define CUDA_DEVICE_EXTENSIONS "@CUDA_DEVICE_EXTENSIONS@"
#define CUDA_DEVICE_FEATURES_30 "@CUDA_DEVICE_FEATURES_30@"
#endif
#if defined(ENABLE_HOST_CPU_DEVICES)
#cmakedefine ENABLE_HOST_CPU_DEVICES_OPENMP
#define HOST_AS_FLAGS "@HOST_AS_FLAGS@"
#define HOST_CLANG_FLAGS "@HOST_CLANG_FLAGS@"
#define HOST_DEVICE_EXTENSIONS "@HOST_DEVICE_EXTENSIONS@"
#define HOST_DEVICE_FEATURES_30 "@HOST_DEVICE_FEATURES_30@"
#cmakedefine HOST_CPU_FORCED
#define HOST_LD_FLAGS "@HOST_LD_FLAGS@"
#define HOST_LLC_FLAGS "@HOST_LLC_FLAGS@"
#cmakedefine HOST_FLOAT_SOFT_ABI
#define HOST_DEVICE_LATEST_CTS_PASS "v2022-04-19-01"
#define HOST_CPU_TARGET_ABI "@HOST_CPU_TARGET_ABI@"
#endif
#define HOST_DEVICE_BUILD_HASH "@HOST_DEVICE_BUILD_HASH@"
#define DEFAULT_DEVICE_EXTENSIONS "@DEFAULT_DEVICE_EXTENSIONS@"
#ifdef BUILD_HSA
#cmakedefine HAVE_HSA_EXT_AMD_H
#define AMD_HSA @AMD_HSA@
#define HSA_DEVICE_EXTENSIONS "@HSA_DEVICE_EXTENSIONS@"
#define HSAIL_ASM "@HSAIL_ASM@"
#define HSAIL_ENABLED @HSAIL_ENABLED@
#endif
#define CMAKE_BUILD_TYPE "@CMAKE_BUILD_TYPE@"
#define LINK_COMMAND "@LINK_COMMAND@"
#ifdef BUILD_LEVEL0
#define CLANG "@CLANG@"
#define LLVM_SPIRV "@LLVM_SPIRV@"
#define SPIRV_LINK "@SPIRV_LINK@"
#endif
#ifdef ENABLE_LLVM
#define KERNELLIB_HOST_CPU_VARIANTS "@KERNELLIB_HOST_CPU_VARIANTS@"
#cmakedefine KERNELLIB_HOST_DISTRO_VARIANTS
#define CLANG "@CLANG@"
#define CLANG_RESOURCE_DIR "@CLANG_RESOURCE_DIR@"
#define CLANGXX "@CLANGXX@"
#define LLVM_LLC "@LLVM_LLC@"
#define LLVM_SPIRV "@LLVM_SPIRV@"
#define LLVM_OPT "@LLVM_OPT@"
#define LLVM_LINK "@LLVM_LINK@"
#cmakedefine LLVM_MAJOR @LLVM_VERSION_MAJOR@
/* minimum LLVM version at which to enable new PM */
#define MIN_LLVM_NEW_PASSMANAGER 14
#cmakedefine LLVM_BUILD_MODE_DEBUG
#ifndef LLVM_VERSION
#define LLVM_VERSION "@LLVM_VERSION_FULL@"
#endif
#define LLVM_VERIFY_MODULE_DEFAULT @LLVM_VERIFY_MODULE_DEFAULT@
#endif
/* Defined to greatest expected alignment for extended types, in bytes. */
#define MAX_EXTENDED_ALIGNMENT @MAX_EXTENDED_ALIGNMENT@
#define PRINTF_BUFFER_SIZE @PRINTF_BUFFER_SIZE@
/* used in lib/CL/devices/basic */
#define OCL_KERNEL_TARGET "@OCL_KERNEL_TARGET@"
#define OCL_KERNEL_TARGET_CPU "@OCL_KERNEL_TARGET_CPU@"
#define POCL_KERNEL_CACHE_DEFAULT @POCL_KERNEL_CACHE_DEFAULT@
#define HOST_DEVICE_ADDRESS_BITS @HOST_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@"
#define POCL_INSTALL_PRIVATE_DATADIR_REL "@POCL_INSTALL_PRIVATE_DATADIR_REL@"
#define POCL_INSTALL_PRIVATE_LIBDIR "@POCL_INSTALL_PRIVATE_LIBDIR@"
#define POCL_INSTALL_LIBDIR "@POCL_INSTALL_PUBLIC_LIBDIR@"
#define POCL_INSTALL_PRIVATE_LIBDIR_REL "@POCL_INSTALL_PRIVATE_LIBDIR_REL@"
#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@"
#define OACC_EXECUTABLE "@TCECC@"
/* Defined on big endian systems */
#define WORDS_BIGENDIAN @WORDS_BIGENDIAN@
/* platform version */
#define POCL_PLATFORM_VERSION_MAJOR 3
#define POCL_PLATFORM_VERSION_MINOR 0
#define POCL_PLATFORM_VERSION_PATCH 0
#define HSA_DEVICE_CL_VERSION_MAJOR 1
#define HSA_DEVICE_CL_VERSION_MINOR 2
#define CUDA_DEVICE_CL_VERSION_MAJOR @CUDA_DEVICE_CL_VERSION_MAJOR@
#define CUDA_DEVICE_CL_VERSION_MINOR @CUDA_DEVICE_CL_VERSION_MINOR@
#define HOST_DEVICE_CL_VERSION_MAJOR @HOST_DEVICE_CL_VERSION_MAJOR@
#define HOST_DEVICE_CL_VERSION_MINOR @HOST_DEVICE_CL_VERSION_MINOR@
#define TCE_DEVICE_CL_VERSION_MAJOR 1
#define TCE_DEVICE_CL_VERSION_MINOR 2
#cmakedefine USE_POCL_MEMMANAGER
#cmakedefine LLVM_OPAQUE_POINTERS
#cmakedefine RENAME_POCL
#endif