forked from lattice/quda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
442 lines (352 loc) · 15.1 KB
/
CMakeLists.txt
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
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
# basic setup for cmake
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON)
set(CMAKE_COLOR_MAKEFILE ON)
# disable in source builds
# this is only a temporary fix, but for now we need it as cmake will
# otherwise overwrite the existing makefiles
set(CMAKE_DISABLE_SOURCE_CHANGES ON)
set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
find_package(Git)
SET(DEFBUILD "RELEASE")
IF(GIT_FOUND)
execute_process(COMMAND ${GIT_EXECUTABLE} show WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} RESULT_VARIABLE IS_GIT_REPOSIITORY OUTPUT_QUIET ERROR_QUIET)
IF(${IS_GIT_REPOSIITORY} EQUAL 0)
execute_process(COMMAND ${GIT_EXECUTABLE} describe --abbrev=0 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} OUTPUT_VARIABLE GITTAG OUTPUT_STRIP_TRAILING_WHITESPACE)
# we use git rev-list and pipe that through wc here. Newer git versions support --count as option to rev-list but that might not always be available
execute_process(COMMAND ${GIT_EXECUTABLE} rev-list ${GITTAG}..HEAD WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} COMMAND wc -l OUTPUT_VARIABLE GITCOUNT OUTPUT_STRIP_TRAILING_WHITESPACE)
execute_process(COMMAND ${GIT_EXECUTABLE} describe --long --dirty WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} OUTPUT_VARIABLE GITVERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
IF(GITCOUNT EQUAL 0)
SET(DEFBUILD "RELEASE")
ELSE()
SET(DEFBUILD "DEVEL")
ENDIF()
ENDIF()
ENDIF(GIT_FOUND)
SET(CMAKE_BUILD_TYPE "${DEFBUILD}" CACHE STRING "Choose the type of build, options are: Devel Release Debug Release HostDebug DeviceDebug")
set(VALID_BUILD_TYPES DEVEL RELEASE DEBUG HOSTDEBUG DEVICEDEBUG )
string(TOUPPER ${CMAKE_BUILD_TYPE} CHECK_BUILD_TYPE)
LIST(FIND VALID_BUILD_TYPES ${CHECK_BUILD_TYPE} BUILD_TYPE_VALID)
if(BUILD_TYPE_VALID LESS 0)
message(SEND_ERROR "Please specify a valid CMAKE_BUILD_TYPE type! Valid build types are:" "${VALID_BUILD_TYPES}")
endif()
#
# PROJECT is QUDA
#
project("QUDA")
#######################################################################
# QUDA OPTIONS
# likely to be changed by users
#######################################################################
set(QUDA_GPU_ARCH sm_35 CACHE STRING "set the GPU architecture (sm_20, sm_21, sm_30, sm_35, sm_50, sm_52)")
# build options
set(QUDA_DIRAC_WILSON ON CACHE BOOL "build Wilson Dirac operators")
set(QUDA_DIRAC_CLOVER ON CACHE BOOL "build clover Dirac operators")
set(QUDA_DIRAC_DOMAIN_WALL ON CACHE BOOL "build domain wall Dirac operators")
set(QUDA_DIRAC_STAGGERED ON CACHE BOOL "build staggered Dirac operators")
set(QUDA_DIRAC_TWISTED_MASS ON CACHE BOOL "build twisted mass Dirac operators")
set(QUDA_DIRAC_TWISTED_CLOVER ON CACHE BOOL "build twisted clover Dirac operators")
set(QUDA_DIRAC_NDEG_TWISTED_MASS OFF CACHE BOOL "build non-degenerate twisted mass Dirac operators")
set(QUDA_LINK_ASQTAD OFF CACHE BOOL "build code for computing asqtad fat links")
set(QUDA_LINK_HISQ OFF CACHE BOOL "build code for computing hisq fat links")
set(QUDA_FORCE_GAUGE OFF CACHE BOOL "build code for (1-loop Symanzik) gauge force")
set(QUDA_FORCE_ASQTAD OFF CACHE BOOL "build code for asqtad fermion force")
set(QUDA_FORCE_HISQ OFF CACHE BOOL "build code for hisq fermion force")
set(QUDA_GAUGE_TOOLS OFF CACHE BOOL "build auxiliary gauge-field tools")
set(QUDA_GAUGE_ALG OFF CACHE BOOL "build gauge-fixing and pure-gauge algorithms")
set(QUDA_CONTRACT OFF CACHE BOOL "build code for bilinear contraction")
# Dynamic inversion saves memory but decreases the flops
set(QUDA_DYNAMIC_CLOVER OFF CACHE BOOL "Dynamically invert the clover term for twisted-clover")
set(QUDA_QIO OFF CACHE BOOL "build QIO code for binary I/O")
# Multi-GPU options
set(QUDA_QMP OFF CACHE BOOL "set to 'yes' to build the QMP multi-GPU code")
set(QUDA_MPI OFF CACHE BOOL "set to 'yes' to build the MPI multi-GPU code")
set(QUDA_POSIX_THREADS OFF CACHE BOOL "set to 'yes' to build pthread-enabled dslash")
#BLAS library
set(QUDA_MAGMA OFF CACHE BOOL "build magma interface")
# Interface options
set(QUDA_INTERFACE_QDP ON CACHE BOOL "build qdp interface")
set(QUDA_INTERFACE_MILC ON CACHE BOOL "build milc interface")
set(QUDA_INTERFACE_CPS OFF CACHE BOOL "build cps interface")
set(QUDA_INTERFACE_QDPJIT OFF CACHE BOOL "build qdpjit interface")
set(QUDA_INTERFACE_BQCD OFF CACHE BOOL "build bqcd interface")
set(QUDA_INTERFACE_TIFR OFF CACHE BOOL "build tifr interface")
# QDPJIT
set(QUDA_QDPJIT OFF CACHE BOOL "build QDP-JIT support?")
# Locations for QIO / QMP
set(QUDA_QIOHOME "" CACHE PATH "path to QIO")
set(QUDA_QMPHOME "" CACHE PATH "path to QMP")
#######################################################################
#QUDA ADVANCED OPTIONS
# that ususally should not be changed by users
#######################################################################
set(QUDA_BLAS_TEX ON CACHE BOOL "enable texture reads in BLAS?")
set(QUDA_FERMI_DBLE_TEX ON CACHE BOOL "enable double-precision texture reads on Fermi?")
set(QUDA_NUMA_AFFINITY ON CACHE BOOL "enable NUMA affinity")
set(QUDA_VERBOSE_BUILD OFF CACHE BOOL "display kernel register useage")
# NVTX options
set(QUDA_MPI_NVTX OFF CACHE BOOL "add nvtx markup to MPI API calls for the visual profiler")
set(QUDA_INTERFACE_NVTX OFF CACHE BOOL "add nvtx markup to interface calls for the visual profiler")
# GPUdirect options
set(QUDA_GPU_DIRECT ON CACHE BOOL "set to 'yes' to allow GPU and NIC to shared pinned buffers")
set(QUDA_GPU_COMMS OFF CACHE BOOL "set to 'yes' to allow GPU and NIC to communicate using RDMA")
# Packing option
set(QUDA_DEVICE_PACK ON CACHE BOOL "set to 'yes' to enable packing and unpacking on the device")
# features in development
set(QUDA_SSTEP OFF CACHE BOOL "build s-step linear solvers")
mark_as_advanced(QUDA_BLAS_TEX)
mark_as_advanced(QUDA_FERMI_DBLE_TEX)
mark_as_advanced(QUDA_NUMA_AFFINITY)
mark_as_advanced(QUDA_VERBOSE_BUILD)
mark_as_advanced(QUDA_MPI_NVTX)
mark_as_advanced(QUDA_INTERFACE_NVTX)
mark_as_advanced(QUDA_GPU_DIRECT)
mark_as_advanced(QUDA_GPU_COMMS)
mark_as_advanced(QUDA_DEVICE_PACK)
mark_as_advanced(QUDA_SSTEP)
#######################################################################
# options that are not exposed at all because only one option exists
set(CPU_ARCH x86_64)
#######################################################################
# everything below here is processing the setup
#######################################################################
# we need to check for some packages
find_package(PythonInterp)
find_package(CUDA REQUIRED)
find_package(Threads REQUIRED)
# do all the build definitions
#
if(${QUDA_MPI} OR ${QUDA_QMP})
add_definitions(-DMULTI_GPU)
find_package(MPI)
else()
set(COMM_OBJS comm_single.cpp)
endif()
if(${QUDA_MPI})
add_definitions(-DMPI_COMMS)
set(COMM_OBJS comm_mpi.cpp)
include_directories(${MPI_CXX_INCLUDE_PATH})
endif()
if (${QUDA_QMP})
add_definitions(-DQMP_COMMS)
execute_process(COMMAND ${QUDA_QMPHOME}/bin/qmp-config --cflags OUTPUT_VARIABLE QMP_CFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE)
execute_process(COMMAND ${QUDA_QMPHOME}/bin/qmp-config --ldflags OUTPUT_VARIABLE QMP_LDFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE)
execute_process(COMMAND ${QUDA_QMPHOME}/bin/qmp-config --libs OUTPUT_VARIABLE QMP_LIBS OUTPUT_STRIP_TRAILING_WHITESPACE)
FIND_LIBRARY(QMP_LIB qmp ${QUDA_QMPHOME}/lib)
include_directories(${QUDA_QMPHOME}/include)
set(COMM_OBJS comm_qmp.cpp)
endif()
if (${QUDA_QIO})
add_definitions(-DHAVE_QIO)
set(QIO_UTIL qio_util.cpp layout_hyper.c gauge_qio.cpp)
FIND_LIBRARY(QIO_LIB qio ${QUDA_QIOHOME}/lib/)
FIND_LIBRARY(LIME_LIB lime ${QUDA_QIOHOME}/lib/)
include_directories(${QUDA_QIOHOME}/include)
endif()
if(QUDA_MAGMA)
add_definitions(-DMAGMA_LIB -DADD_ -DMAGMA_SETAFFINITY -DGPUSHMEM=300 -DHAVE_CUBLAS -DMAGMA_LIB)
find_package(PkgConfig REQUIRED)
pkg_check_modules(MAGMA magma)
include_directories(${MAGMA_INCLUDEDIR})
message(${MAGMA_INCLUDEDIR})
find_package(OpenMP)
endif(QUDA_MAGMA)
if(QUDA_SSTEP)
add_definitions(-DSSTEP)
endif()
if(QUDA_POSIX_THREADS)
add_definitions(-DPTHREADS)
endif()
if(QUDA_DIRAC_WILSON)
add_definitions(-DGPU_WILSON_DIRAC)
endif(QUDA_DIRAC_WILSON)
if(QUDA_DIRAC_DOMAIN_WALL)
add_definitions(-DGPU_DOMAIN_WALL_DIRAC)
endif(QUDA_DIRAC_DOMAIN_WALL)
if (QUDA_DIRAC_STAGGERED)
add_definitions(-DGPU_STAGGERED_DIRAC)
endif(QUDA_DIRAC_STAGGERED)
if(QUDA_DIRAC_CLOVER)
add_definitions(-DGPU_CLOVER_DIRAC -DGPU_WILSON_DIRAC -DGPU_GAUGE_TOOLS)
endif(QUDA_DIRAC_CLOVER)
if(QUDA_DIRAC_TWISTED_MASS)
add_definitions(-DGPU_TWISTED_MASS_DIRAC)
endif(QUDA_DIRAC_TWISTED_MASS)
if(QUDA_DIRAC_TWISTED_CLOVER)
add_definitions(-DGPU_TWISTED_CLOVER_DIRAC -DGPU_CLOVER_DIRAC -DGPU_TWISTED_MASS_DIRAC -DGPU_WILSON_DIRAC -DGPU_GAUGE_TOOLS)
endif(QUDA_DIRAC_TWISTED_CLOVER)
if(QUDA_DIRAC_NDEG_TWISTED_MASS)
add_definitions(-DGPU_NDEG_TWISTED_MASS_DIRAC -DGPU_TWISTED_MASS_DIRAC -DGPU_WILSON_DIRAC)
endif(QUDA_DIRAC_NDEG_TWISTED_MASS)
if(QUDA_LINK_ASQTAD)
add_definitions(-DGPU_FATLINK -DGPU_GAUGE_TOOLS)
endif(QUDA_LINK_ASQTAD)
if(QUDA_LINK_HISQ)
add_definitions(-DGPU_FATLINK -DGPU_UNITARIZE -DGPU_GAUGE_TOOLS)
endif(QUDA_LINK_HISQ)
if(QUDA_FORCE_GAUGE)
add_definitions(-DGPU_GAUGE_FORCE -DGPU_GAUGE_TOOLS)
endif(QUDA_FORCE_GAUGE)
if(QUDA_FORCE_ASQTAD)
add_definitions(-DGPU_FERMION_FORCE -DGPU_GAUGE_TOOLS)
endif(QUDA_FORCE_ASQTAD)
if(QUDA_FORCE_HISQ)
add_definitions(-DGPU_HISQ_FORCE -DGPU_STAGGERED_OPROD -DGPU_GAUGE_TOOLS)
endif(QUDA_FORCE_HISQ)
if(QUDA_GAUGE_TOOLS)
add_definitions(-DGPU_GAUGE_TOOLS)
endif(QUDA_GAUGE_TOOLS)
if(QUDA_GAUGE_ALG)
add_definitions(-DGPU_GAUGE_ALG)
add_definitions(-DGPU_GAUGE_TOOLS)
add_definitions(-DGPU_UNITARIZE)
LIST(APPEND QUDA_LIBS ${CUDA_cufft_LIBRARY} ${CUDA_curand_LIBRARY})
endif(QUDA_GAUGE_ALG)
if(QUDA_DYNAMIC_CLOVER)
add_definitions(-DDYNAMIC_CLOVER)
endif(QUDA_DYNAMIC_CLOVER)
if(QUDA_MPI_NVTX)
LIST(APPEND COMM_OBJS nvtx_pmpi.c)
set(QUDA_NVTX ON)
endif(QUDA_MPI_NVTX)
if(QUDA_INTERFACE_NVTX)
add_definitions(-DINTERFACE_NVTX)
set(QUDA_NVTX ON)
endif(QUDA_INTERFACE_NVTX)
#TODO: move to tests, check lib64
if(QUDA_NVTX)
FIND_LIBRARY(CUDA_NVTX_LIB nvToolsExt ${CUDA_TOOLKIT_ROOT_DIR}/lib/)
LIST(APPEND QUDA_LIBS ${CUDA_NVTX_LIB})
endif(QUDA_NVTX)
if(NOT QUDA_BLAS_TEX)
add_definitions(-DDIRECT_ACCESS_BLAS)
endif(NOT QUDA_BLAS_TEX)
if(NOT QUDA_FERMI_DBLE_TEX)
add_definitions(-DFERMI_NO_DBLE_TEX)
endif(NOT QUDA_FERMI_DBLE_TEX)
if(GPU_DIRECT)
add_definitions(-DGPU_DIRECT)
endif(GPU_DIRECT)
if(GPU_COMMS)
add_definitions(-DGPU_COMMS)
endif(GPU_COMMS)
if(QUDA_INTERFACE_QDP)
add_definitions(-DBUILD_QDP_INTERFACE)
endif(QUDA_INTERFACE_QDP)
if(QUDA_INTERFACE_MILC)
add_definitions(-DBUILD_MILC_INTERFACE)
endif(QUDA_INTERFACE_MILC)
if(QUDA_INTERFACE_CPS)
add_definitions(-DBUILD_CPS_INTERFACE)
endif(QUDA_INTERFACE_CPS)
if(QUDA_INTERFACE_QDPJIT)
add_definitions(-DBUILD_QDPJIT_INTERFACE)
endif(QUDA_INTERFACE_QDPJIT)
if(QUDA_INTERFACE_BQCD)
add_definitions(-DBUILD_BQCD_INTERFACE)
endif(QUDA_INTERFACE_BQCD)
if(QUDA_INTERFACE_TIFR)
add_definitions(-DBUILD_TIFR_INTERFACE)
endif(QUDA_INTERFACE_TIFR)
# derive whether we need to build the fortran interface
if(QUDA_INTERFACE_TIFR OR QUDA_INTERFACE_BQCD)
SET(BUILD_FORTRAN_INTERFACE ON)
enable_language(Fortran)
endif()
if(DEVICE_PACK)
add_definitions(-DDEVICE_PACK)
endif(DEVICE_PACK)
if(NOT ${APPLE})
if(QUDA_NUMA_AFFINITY)
add_definitions(-DNUMA_AFFINITY)
set(NUMA_AFFINITY_OBJS numa_affinity.cpp)
endif(QUDA_NUMA_AFFINITY)
endif(NOT ${APPLE})
if(QUDA_CONTRACT)
add_definitions(-DGPU_CONTRACT)
endif(QUDA_CONTRACT)
# COMPILER OPTIONS and BUILD types
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(SYSTEM ${CUDA_INCLUDE_DIRS})
include_directories(include)
include_directories(lib)
# QUDA_HASH for tunecache
file(STRINGS ${CUDA_TOOLKIT_INCLUDE}/cuda.h CUDA_VERSIONLONG REGEX "\#define CUDA_VERSION" )
STRING(REPLACE "\#define CUDA_VERSION " "" CUDA_VERSIONLONG ${CUDA_VERSIONLONG})
STRING(STRIP CUDA_VERSIONLONG ${CUDA_VERSIONLONG} )
set(HASH \"cpu_arch=${CPU_ARCH},gpu_arch=${QUDA_GPU_ARCH},cuda_version=${CUDA_VERSIONLONG}\")
add_definitions(-DQUDA_HASH=${HASH})
string(REGEX MATCH [Dd][Ee][Bb][Uu][Gg] DEBUG_BUILD ${CMAKE_BUILD_TYPE})
# add -debug to GITVERSION if we build with debug options enabled
if(DEBUG_BUILD)
if(GITVERSION)
set(GITVERSION ${GITVERSION}-debug)
else()
set(GITVERSION debug)
endif()
endif()
IF(GITVERSION)
add_definitions(-DGITVERSION="${GITVERSION}")
ENDIF()
# GPU ARCH
STRING(REGEX REPLACE sm_ "" COMP_CAP ${QUDA_GPU_ARCH})
SET(COMP_CAP "${COMP_CAP}0")
add_definitions(-D__COMPUTE_CAPABILITY__=${COMP_CAP})
# NVCC FLAGS independet off build type
set(QUDA_NVCC_FLAGS -arch=${QUDA_GPU_ARCH} -ftz=true -prec-div=false -prec-sqrt=false)
if(QUDA_VERBOSE_BUILD)
LIST(APPEND QUDA_NVCC_FLAGS --ptxas-options=-v)
endif(QUDA_VERBOSE_BUILD)
set(CUDA_NVCC_FLAGS_DEVEL ${QUDA_NVCC_FLAGS} -O3 -lineinfo CACHE STRING
"Flags used by the CUDA compiler during regular development builds."
FORCE )
set(CUDA_NVCC_FLAGS_RELEASE ${QUDA_NVCC_FLAGS} -O3 -w CACHE STRING
"Flags used by the C++ compiler during release builds."
FORCE )
set(CUDA_NVCC_FLAGS_HOSTDEBUG ${QUDA_NVCC_FLAGS} -g -DHOST_DEBUG CACHE STRING
"Flags used by the C++ compiler during host-debug builds."
FORCE )
set(CUDA_NVCC_FLAGS_DEVICEDEBUG ${QUDA_NVCC_FLAGS} -G CACHE STRING
"Flags used by the C++ compiler during device-debug builds."
FORCE )
set(CUDA_NVCC_FLAGS_DEBUG ${QUDA_NVCC_FLAGS} -g -DHOST_DEBUG -G CACHE STRING
"Flags used by the C++ compiler during full (host+device) debug builds."
FORCE )
# to remain consistent with other build types
mark_as_advanced(CUDA_NVCC_FLAGS_HOSTDEBUG)
mark_as_advanced(CUDA_NVCC_FLAGS_DEVICEDEBUG)
set(CMAKE_CXX_FLAGS_DEVEL "${OpenMP_CXX_FLAGS} -O3 -Wall" CACHE STRING
"Flags used by the CUDA compiler during regular development builds."
FORCE )
set(CMAKE_CXX_FLAGS_RELEASE "${OpenMP_CXX_FLAGS} -O3 -w" CACHE STRING
"Flags used by the C++ compiler during release builds."
FORCE )
set(CMAKE_CXX_FLAGS_HOSTDEBUG "${OpenMP_CXX_FLAGS} -Wall -g -fno-inline -DHOST_DEBUG" CACHE STRING
"Flags used by the C++ compiler during host-debug builds."
FORCE )
set(CMAKE_CXX_FLAGS_DEVICEDEBUG "${OpenMP_CXX_FLAGS} -Wall" CACHE STRING
"Flags used by the C++ compiler during device-debug builds."
FORCE )
set(CMAKE_CXX_FLAGS_DEBUG "${OpenMP_CXX_FLAGS} -Wall -g -fno-inline -DHOST_DEBUG" CACHE STRING
"Flags used by the C++ compiler during full (host+device) debug builds."
FORCE )
set(CMAKE_F_FLAGS -std=c99 CACHE STRING "Fortran Flags" FORCE)
set(CMAKE_C_FLAGS_DEVEL "-Wall -O3" CACHE STRING
"Flags used by the CUDA compiler during regular development builds."
FORCE )
set(CMAKE_C_FLAGS_RELEASE "-Wall -O3 -w" CACHE STRING
"Flags used by the C++ compiler during release builds."
FORCE )
set(CMAKE_C_FLAGS_HOSTDEBUG "-Wall -g -fno-inline -DHOST_DEBUG" CACHE STRING
"Flags used by the C++ compiler during host-debug builds."
FORCE )
set(CMAKE_C_FLAGS_DEVICEDEBUG "-Wall" CACHE STRING
"Flags used by the C++ compiler during device-debug builds."
FORCE )
set(CMAKE_C_FLAGS_DEBUG "-Wall -g -fno-inline -DHOST_DEBUG" CACHE STRING
"Flags used by the C++ compiler during full (host+device) debug builds."
FORCE )
### add tests and quda library
add_subdirectory(lib)
add_subdirectory(tests)