forked from arrayfire/arrayfire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakePresets.json
259 lines (259 loc) · 8.58 KB
/
CMakePresets.json
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
{
"version": 2,
"cmakeMinimumRequired": {
"major": 3,
"minor": 20,
"patch": 0
},
"configurePresets": [
{
"name": "ninja-all-off-debug",
"hidden": true,
"description": "Base preset with all backends off with Debug build configuration",
"binaryDir": "${sourceDir}/build/${presetName}",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_BUILD_TYPE": {
"type": "String",
"value": "Debug"
},
"AF_COMPUTE_LIBRARY": {
"type": "String",
"value": "Intel-MKL"
},
"AF_BUILD_CPU": {
"type": "BOOL",
"value": "OFF"
},
"AF_BUILD_CUDA": {
"type": "BOOL",
"value": "OFF"
},
"AF_BUILD_OPENCL": {
"type": "BOOL",
"value": "OFF"
},
"AF_BUILD_UNIFIED": {
"type": "BOOL",
"value": "OFF"
},
"AF_BUILD_FORGE": {
"type": "BOOL",
"value": "ON"
},
"AF_BUILD_DOCS": {
"type": "BOOL",
"value": "OFF"
},
"AF_BUILD_EXAMPLES": {
"type": "BOOL",
"value": "OFF"
},
"AF_TEST_WITH_MTX_FILES": {
"type": "BOOL",
"value": "OFF"
},
"CMAKE_INSTALL_PREFIX": {
"type": "PATH",
"value": "${sourceDir}/build/${presetName}/pkg"
}
}
},
{
"name": "ninja-cpu-mkl-debug",
"description": "Build CPU Backend using Intel MKL in Debug Configuration with Ninja Generator",
"inherits": "ninja-all-off-debug",
"cacheVariables": {
"AF_BUILD_CPU": "ON"
}
},
{
"name": "ninja-cpu-mkl-relwithdebinfo",
"description": "Build CPU Backend using Intel MKL in RelWithDebInfo Configuration with Ninja Generator",
"inherits": "ninja-cpu-mkl-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
},
{
"name": "ninja-cpu-debug",
"description": "Build CPU Backend with FFTW and a BLAS library using Ninja Generator in Debug Configuration",
"inherits": "ninja-cpu-mkl-debug",
"cacheVariables": {
"AF_COMPUTE_LIBRARY": "FFTW/LAPCK/BLAS"
}
},
{
"name": "ninja-cpu-relwithdebinfo",
"description": "Build CPU Backend with FFTW and a BLAS library using Ninja Generator in RelWithDebInfo Configuration",
"inherits": "ninja-cpu-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
},
{
"name": "ninja-cuda-debug",
"description": "Build CUDA Backend in debug configuration using Ninja Generator",
"inherits": "ninja-all-off-debug",
"cacheVariables": {
"AF_BUILD_CUDA": "ON"
}
},
{
"name": "ninja-cuda-relwithdebinfo",
"description": "Build CUDA Backend in RelWithDebInfo configuration using Ninja Generator",
"inherits": "ninja-cuda-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
},
{
"name": "ninja-opencl-mkl-debug",
"description": "Build OpenCL Backend in debug configuration using Ninja Generator",
"inherits": "ninja-all-off-debug",
"cacheVariables": {
"AF_BUILD_OPENCL": "ON"
}
},
{
"name": "ninja-opencl-mkl-relwithdebinfo",
"description": "Build OpenCL Backend in RelWithDebInfo configuration using Ninja Generator. This preset uses Intel MKL for CPU fallback code.",
"inherits": "ninja-opencl-mkl-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
},
{
"name": "ninja-opencl-debug",
"description": "Build OpenCL Backend in debug configuration using Ninja Generator",
"inherits": "ninja-opencl-mkl-debug",
"cacheVariables": {
"AF_COMPUTE_LIBRARY": "FFTW/LAPCK/BLAS"
}
},
{
"name": "ninja-opencl-relwithdebinfo",
"description": "Build OpenCL Backend in RelWithDebInfo configuration using Ninja Generator",
"inherits": "ninja-opencl-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
},
{
"name": "ninja-all-mkl-debug",
"description": "Build all feasible backends using Ninja Generator in Debug Configuraiton",
"inherits": "ninja-all-off-debug",
"cacheVariables": {
"AF_BUILD_CPU": "ON",
"AF_BUILD_CUDA": "ON",
"AF_BUILD_OPENCL": "ON",
"AF_BUILD_UNIFIED": "ON"
}
},
{
"name": "ninja-all-mkl-relwithdebinfo",
"description": "Build all feasible backends using Ninja Generator in RelWithDebInfo Configuraiton",
"inherits": "ninja-all-mkl-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
},
{
"name": "ninja-all-debug",
"description": "Build all feasible backends using Ninja Generator in Debug Configuraiton",
"inherits": "ninja-all-mkl-debug",
"cacheVariables": {
"AF_COMPUTE_LIBRARY": "FFTW/LAPCK/BLAS"
}
},
{
"name": "ninja-all-relwithdebinfo",
"description": "Build all feasible backends using Ninja Generator in RelWithDebInfo Configuraiton",
"inherits": "ninja-all-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
},
{
"name": "ninja-all-mkl-local-install",
"description": "Build all feasible backends using Ninja Generator in RelWithDebInfo Configuraiton",
"inherits": "ninja-all-mkl-relwithdebinfo",
"cacheVariables": {
"BUILD_TESTING": "OFF"
}
},
{
"name": "ninja-all-mkl-standalone-install",
"description": "Build all feasible backends using Ninja Generator in RelWithDebInfo Configuraiton",
"inherits": "ninja-all-mkl-local-install",
"cacheVariables": {
"AF_INSTALL_STANDALONE": "ON"
}
},
{
"name": "ninja-docs",
"description": "Build ArrayFire Documentation, needs doxygen installed",
"inherits": "ninja-all-off-debug",
"cacheVariables": {
"BUILD_TESTING": "OFF",
"AF_BUILD_FORGE": "OFF",
"AF_BUILD_DOCS": "ON"
}
},
{
"name": "ninja-any-debug",
"description": "Build available backends in Debug configuration using Ninja Generator",
"binaryDir": "${sourceDir}/build/${presetName}",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/${presetName}/pkg"
}
},
{
"name": "ninja-any-relwithdebinfo",
"description": "Build available backends in RelWithDebInfo configuration using Ninja Generator",
"inherits": "ninja-any-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
},
{
"name": "msvc2019",
"hidden": true,
"description": "Base preset for Visual Studio 16 2019 generator.",
"generator": "Visual Studio 16 2019",
"architecture": "x64"
},
{
"name": "msvc2019-cpu-mkl",
"description": "Build CPU Backend using Intel MKL with MSVC 2019 Generator",
"inherits": [ "msvc2019", "ninja-cpu-mkl-debug" ]
},
{
"name": "msvc2019-cuda",
"description": "Build CUDA Backend with MSVC 2019 Generator",
"inherits": [ "msvc2019", "ninja-cuda-debug" ]
},
{
"name": "msvc2019-opencl-mkl",
"description": "Build OpenCL Backend with MSVC 2019 Generator. Uses MKL for CPU fallback.",
"inherits": [ "msvc2019", "ninja-opencl-mkl-debug" ]
},
{
"name": "msvc2019-all-mkl",
"description": "Build all feasible Backends with MSVC 2019 Generator. Uses MKL for CPU fallback.",
"inherits": [ "msvc2019", "ninja-all-mkl-debug" ]
},
{
"name": "msvc2019-all-mkl-local-install",
"description": "Build all feasible Backends with MSVC 2019 Generator. Installs to specified path prefix.",
"inherits": [ "msvc2019", "ninja-all-mkl-local-install" ]
},
{
"name": "msvc2019-all-mkl-standalone-install",
"description": "Build all feasible Backends with MSVC 2019 Generator. Also packages dependencies while installing to specified path prefix.",
"inherits": [ "msvc2019", "ninja-all-mkl-standalone-install" ]
}
]
}