-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
537 lines (467 loc) · 19 KB
/
CMakeLists.txt
File metadata and controls
537 lines (467 loc) · 19 KB
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
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
# ============================================================================
# gpuvmem - GPU-Accelerated Radio Astronomy Maximum Entropy Image Synthesis
# ============================================================================
#
# This CMakeLists.txt builds gpuvmem, a CUDA-accelerated implementation for
# radio astronomy image deconvolution using GPU memory.
#
# USE CASES:
# ----------
# 1. Standard Build: mkdir build && cd build && cmake .. && make
#
# 1. Custom CUDA Architecture: cmake -DCUDA_ARCH=75 .. # Specify GPU compute
# capability
#
# 1. Debug Build: cmake -DMEMORY_DEBUG=ON ..
#
# 1. Fast Math (lower precision, faster): cmake -DUSE_FAST_MATH=ON ..
#
# 1. Custom C++ Standard (for older systems): cmake -DCMAKE_CXX_STANDARD=11 ..
#
# 1. Custom Install Prefix: cmake -DPREFIX=/custom/path ..
#
# REQUIREMENTS: - CUDA Toolkit 10.0+ (13.0+ requires C++17) - CMake 3.18+ -
# Boost libraries - CFITSIO - Casacore (casa, ms, tables, measures, meas
# components) - NVIDIA GPU with compute capability >= 5.0
#
# ============================================================================
cmake_minimum_required(VERSION 3.18 FATAL_ERROR)
project(gpuvmem LANGUAGES C CXX CUDA)
# ============================================================================
# CMake Policies
# ============================================================================
# Suppress FindBoost deprecation warning (CMP0167) Modern CMake uses
# BoostConfig.cmake, but we keep FindBoost for compatibility
if(POLICY CMP0167)
cmake_policy(SET CMP0167 OLD)
endif()
# Suppress nvpl warnings (optional NVIDIA Performance Primitives Library) These
# warnings come from FindBLAS/FindLAPACK and are harmless
set(CMAKE_FIND_PACKAGE_WARNINGS_OVERRIDE "nvpl" OFF)
# ============================================================================
# Build Configuration
# ============================================================================
# Set default build type if not specified
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
set(CMAKE_BUILD_TYPE
"Release"
CACHE STRING "Build type" FORCE)
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release")
endif()
# Limit configuration types for multi-config generators
if(CMAKE_CONFIGURATION_TYPES)
set(CMAKE_CONFIGURATION_TYPES
"Debug;Release"
CACHE STRING "" FORCE)
endif()
# ============================================================================
# Dependencies
# ============================================================================
# Add custom CMake modules (FindCasacore, FindCFITSIO)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
# Find required packages
find_package(CUDAToolkit REQUIRED)
find_package(Boost REQUIRED)
find_package(CFITSIO REQUIRED)
# Casacore configuration Make external dependencies optional to avoid build
# failures
set(CASACORE_MAKE_REQUIRED_EXTERNALS_OPTIONAL TRUE)
find_package(Casacore REQUIRED COMPONENTS casa ms tables measures meas)
# ============================================================================
# Build Options
# ============================================================================
option(MEMORY_DEBUG "Enable GDB debugging for CUDA code (adds -g -G flags)" OFF)
option(USE_FAST_MATH
"Use fast math functions (decreases precision, increases speed)" OFF)
# ============================================================================
# C++ Standard Configuration
# ============================================================================
# Strategy: Use C++17 by default (CUDA 13+ requires it, but works for all CUDA
# versions) Users can override: cmake -DCMAKE_CXX_STANDARD=11 ..
if(NOT DEFINED CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD
17
CACHE STRING "C++ standard" FORCE)
set(CMAKE_CUDA_STANDARD
17
CACHE STRING "CUDA C++ standard" FORCE)
if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL "13.0")
message(STATUS "C++ standard: 17 (required by CUDA ${CUDAToolkit_VERSION})")
else()
message(
STATUS
"C++ standard: 17 (default, override with -DCMAKE_CXX_STANDARD=11 if needed)"
)
endif()
else()
# User specified standard - ensure CUDA matches
set(CMAKE_CUDA_STANDARD
${CMAKE_CXX_STANDARD}
CACHE STRING "CUDA C++ standard" FORCE)
# Warn if CUDA 13+ but user specified < 17
if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL "13.0" AND CMAKE_CXX_STANDARD
VERSION_LESS "17")
message(
WARNING
"CUDA ${CUDAToolkit_VERSION} requires C++17, but CMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD} was specified.\n"
"This may cause compilation errors. Consider using C++17.")
endif()
message(STATUS "C++ standard: ${CMAKE_CXX_STANDARD} (user specified)")
endif()
# Require the specified standard (fail if compiler doesn't support it)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CUDA_STANDARD_REQUIRED ON)
# ============================================================================
# Target Definition
# ============================================================================
# Verify Boost was found
if(NOT Boost_FOUND)
message(FATAL_ERROR "Boost is required but not found. Please install Boost.")
endif()
# Create executable target
add_executable(gpuvmem ${CMAKE_CURRENT_SOURCE_DIR}/src/main.cu)
# Add all CUDA source files
file(GLOB SOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cu)
target_sources(gpuvmem PRIVATE ${SOURCE_FILES})
# Set C++ compile features based on standard
target_compile_features(gpuvmem PUBLIC cxx_std_${CMAKE_CXX_STANDARD})
# Configure output directory
set(BINARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/bin)
if(PREFIX)
set(BINARY_DIR ${PREFIX})
endif()
set_target_properties(gpuvmem PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${BINARY_DIR})
# Include directories
target_include_directories(
gpuvmem
PUBLIC ${CASACORE_INCLUDE_DIRS} # Casacore headers
${CFITSIO_INCLUDE_DIR} # CFITSIO headers
${CMAKE_CURRENT_SOURCE_DIR}/include # Project headers
${CMAKE_CURRENT_SOURCE_DIR}/include/classes
${Boost_INCLUDE_DIRS} # Boost headers
${CUDAToolkit_LIBRARY_ROOT}/samples/common/inc # CUDA samples headers
)
# ============================================================================
# CUDA Architecture Detection and Configuration
# ============================================================================
# Allow manual override via -DCUDA_ARCH=<number>
if(DEFINED CUDA_ARCH)
set(CUDA_ARCH_LIST ${CUDA_ARCH})
message(
STATUS "Using manually specified CUDA architecture: ${CUDA_ARCH_LIST}")
else()
# Auto-detect GPU compute capability using nvidia-smi
find_program(NVIDIA_SMI nvidia-smi)
set(CUDA_ARCH_LIST "")
if(NVIDIA_SMI)
execute_process(
COMMAND ${NVIDIA_SMI} --query-gpu=compute_cap --format=csv,noheader
OUTPUT_VARIABLE GPU_COMPUTE_CAP
ERROR_VARIABLE NVIDIA_SMI_ERROR
OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_STRIP_TRAILING_WHITESPACE
RESULT_VARIABLE NVIDIA_SMI_RESULT)
if(NOT NVIDIA_SMI_RESULT EQUAL 0)
message(
WARNING
"nvidia-smi failed (exit code ${NVIDIA_SMI_RESULT}): ${NVIDIA_SMI_ERROR}"
)
elseif(NOT GPU_COMPUTE_CAP)
message(
WARNING
"nvidia-smi returned empty output. GPU may not be available or driver not loaded."
)
else()
# Parse "X.Y" format to "XY" (e.g., "6.1" -> "61") First, split by
# newlines (handles both single-GPU and multi-GPU systems) Single GPU:
# "8.0\n" -> "8.0;" -> processes "80" and "" (empty skipped) Multi-GPU:
# "8.0\n8.0\n8.0" -> "8.0;8.0;8.0;" -> processes all "80" values
string(REPLACE "\n" ";" GPU_COMPUTE_CAP "${GPU_COMPUTE_CAP}")
# Then replace dots and commas
string(REPLACE "." "" GPU_COMPUTE_CAP "${GPU_COMPUTE_CAP}")
string(REPLACE "," ";" GPU_COMPUTE_CAP "${GPU_COMPUTE_CAP}")
foreach(CAP ${GPU_COMPUTE_CAP})
string(STRIP "${CAP}" CAP)
# Skip empty entries (from trailing newlines or blank lines)
if(CAP
AND CAP MATCHES "^[0-9]+$"
AND NOT CAP STREQUAL "53")
list(APPEND CUDA_ARCH_LIST "${CAP}")
endif()
endforeach()
# Remove duplicates (for multi-GPU systems)
if(CUDA_ARCH_LIST)
list(REMOVE_DUPLICATES CUDA_ARCH_LIST)
else()
message(
WARNING
"nvidia-smi output parsed but no valid architectures found. Raw output: ${GPU_COMPUTE_CAP}"
)
endif()
endif()
else()
message(
WARNING
"nvidia-smi not found in PATH. Cannot auto-detect CUDA architecture.")
endif()
# Fallback if auto-detection failed
if(NOT CUDA_ARCH_LIST)
# Check if we're in a CI/CD environment (GitHub Actions, GitLab CI, etc.)
if(DEFINED ENV{CI}
OR DEFINED ENV{GITHUB_ACTIONS}
OR DEFINED ENV{GITLAB_CI})
message(
STATUS
"CI/CD environment detected - using fallback architecture selection")
# Query nvcc for supported architectures to use as fallback
execute_process(
COMMAND nvcc --list-gpu-arch
OUTPUT_VARIABLE NVCC_FALLBACK_ARCHS
OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET)
if(NVCC_FALLBACK_ARCHS)
# Extract architecture numbers (e.g., "compute_75" -> "75")
string(REGEX MATCHALL "compute_([0-9]+)" FALLBACK_MATCHES
"${NVCC_FALLBACK_ARCHS}")
foreach(MATCH ${FALLBACK_MATCHES})
string(REGEX REPLACE "compute_([0-9]+)" "\\1" ARCH_NUM "${MATCH}")
if(ARCH_NUM AND NOT ARCH_NUM STREQUAL "53")
list(APPEND CUDA_ARCH_LIST "${ARCH_NUM}")
endif()
endforeach()
if(CUDA_ARCH_LIST)
list(SORT CUDA_ARCH_LIST)
list(GET CUDA_ARCH_LIST 0 CUDA_ARCH_LIST) # Use minimum supported
set(CUDA_ARCH_LIST "${CUDA_ARCH_LIST}") # Ensure it's a list
message(
STATUS
"Using minimum supported CUDA architecture: ${CUDA_ARCH_LIST} (from nvcc)"
)
endif()
endif()
# Final fallback: use common architecture (75 = Turing, widely supported)
if(NOT CUDA_ARCH_LIST)
set(CUDA_ARCH_LIST "75")
message(
STATUS "Using default CUDA architecture: 75 (Turing) for CI/CD build")
endif()
else()
# Not in CI - require manual specification
set(ERROR_MSG "Could not detect CUDA architecture.\n")
if(NOT NVIDIA_SMI)
string(APPEND ERROR_MSG " - nvidia-smi not found in PATH\n")
else()
string(APPEND ERROR_MSG " - nvidia-smi found but detection failed\n")
if(DEFINED NVIDIA_SMI_ERROR)
string(APPEND ERROR_MSG " - Error: ${NVIDIA_SMI_ERROR}\n")
endif()
if(DEFINED GPU_COMPUTE_CAP)
string(APPEND ERROR_MSG " - Output: '${GPU_COMPUTE_CAP}'\n")
endif()
endif()
string(APPEND ERROR_MSG "\n")
string(APPEND ERROR_MSG "Solutions:\n")
string(APPEND ERROR_MSG
" 1. Specify manually: cmake -DCUDA_ARCH=<number> ..\n")
string(APPEND ERROR_MSG " 2. Check GPU availability: nvidia-smi\n")
string(
APPEND
ERROR_MSG
" 3. Check compute capability: nvidia-smi --query-gpu=compute_cap --format=csv\n"
)
string(APPEND ERROR_MSG "\n")
string(APPEND ERROR_MSG "Common architecture values:\n")
string(APPEND ERROR_MSG
" - 60 (Pascal), 75 (Turing), 80 (Ampere), 89 (Ada), 90 (Hopper)")
message(FATAL_ERROR "${ERROR_MSG}")
endif()
endif()
endif()
# Validate detected architectures
set(VALID_ARCH_LIST "")
foreach(ARCH ${CUDA_ARCH_LIST})
string(STRIP "${ARCH}" ARCH)
if(ARCH MATCHES "^[0-9]+$" AND NOT ARCH STREQUAL "53")
list(APPEND VALID_ARCH_LIST "${ARCH}")
endif()
endforeach()
if(NOT VALID_ARCH_LIST)
message(FATAL_ERROR "No valid CUDA architectures found in: ${CUDA_ARCH_LIST}")
endif()
set(CUDA_ARCH_LIST "${VALID_ARCH_LIST}")
# Get CUDA version information
string(REGEX MATCH "^([0-9]+)" CUDA_VERSION_MAJOR "${CUDAToolkit_VERSION}")
message(
STATUS "CUDA Version: ${CUDAToolkit_VERSION} (major: ${CUDA_VERSION_MAJOR})")
# Query nvcc for supported architectures
execute_process(
COMMAND nvcc --list-gpu-arch
OUTPUT_VARIABLE NVCC_SUPPORTED_ARCHS
OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET)
# Extract supported architecture numbers from nvcc output
set(NVCC_SUPPORTED_ARCH_NUMS "")
if(NVCC_SUPPORTED_ARCHS)
# Parse "compute_75", "compute_80", etc. to get numbers
string(REGEX MATCHALL "compute_([0-9]+)" ARCH_MATCHES
"${NVCC_SUPPORTED_ARCHS}")
foreach(MATCH ${ARCH_MATCHES})
string(REGEX REPLACE "compute_([0-9]+)" "\\1" ARCH_NUM "${MATCH}")
list(APPEND NVCC_SUPPORTED_ARCH_NUMS "${ARCH_NUM}")
endforeach()
list(SORT NVCC_SUPPORTED_ARCH_NUMS)
message(
STATUS
"CUDA ${CUDAToolkit_VERSION} supports architectures: ${NVCC_SUPPORTED_ARCH_NUMS}"
)
endif()
# Auto-adjust architectures based on CUDA version support If detected GPU is
# older than CUDA supports, use minimum supported architecture
if(NVCC_SUPPORTED_ARCH_NUMS)
set(ADJUSTED_ARCH_LIST "")
set(UNSUPPORTED_ARCHS "")
foreach(ARCH ${CUDA_ARCH_LIST})
# Check if this architecture is directly supported
list(FIND NVCC_SUPPORTED_ARCH_NUMS "${ARCH}" ARCH_FOUND)
if(ARCH_FOUND GREATER_EQUAL 0)
# Architecture is supported, use it
list(APPEND ADJUSTED_ARCH_LIST "${ARCH}")
else()
# Architecture not supported - find minimum supported that's >= detected
# This enables forward compatibility (e.g., compile for 7.5, run on 6.1
# GPU)
set(MIN_SUPPORTED "")
foreach(SUPPORTED ${NVCC_SUPPORTED_ARCH_NUMS})
if(SUPPORTED GREATER_EQUAL ARCH)
if(NOT MIN_SUPPORTED OR SUPPORTED LESS MIN_SUPPORTED)
set(MIN_SUPPORTED "${SUPPORTED}")
endif()
endif()
endforeach()
if(MIN_SUPPORTED)
# Use minimum supported architecture (forward compatibility attempt)
message(
WARNING
"GPU compute capability ${ARCH} is not supported by CUDA ${CUDAToolkit_VERSION}.\n"
"Using minimum supported architecture ${MIN_SUPPORTED} instead.\n"
"This may work via forward compatibility, but is not guaranteed.")
list(APPEND ADJUSTED_ARCH_LIST "${MIN_SUPPORTED}")
else()
# GPU is too old - no supported architecture >= detected
list(APPEND UNSUPPORTED_ARCHS "${ARCH}")
endif()
endif()
endforeach()
# Remove duplicates
if(ADJUSTED_ARCH_LIST)
list(REMOVE_DUPLICATES ADJUSTED_ARCH_LIST)
endif()
# Error if GPU is completely unsupported
if(UNSUPPORTED_ARCHS)
message(
FATAL_ERROR
"GPU compute capability ${UNSUPPORTED_ARCHS} is too old for CUDA ${CUDAToolkit_VERSION}.\n"
"CUDA ${CUDAToolkit_VERSION} only supports: ${NVCC_SUPPORTED_ARCH_NUMS}\n\n"
"Solutions:\n"
"1. Install CUDA 11.x or earlier that supports compute_${UNSUPPORTED_ARCHS}\n"
"2. Use a newer GPU\n"
"3. Override with -DCUDA_ARCH=<supported_arch> (e.g., 75)")
endif()
# Update with adjusted architectures
if(ADJUSTED_ARCH_LIST)
set(CUDA_ARCH_LIST "${ADJUSTED_ARCH_LIST}")
message(
STATUS
"Using architectures: ${CUDA_ARCH_LIST} (adjusted for CUDA ${CUDAToolkit_VERSION} compatibility)"
)
endif()
endif()
# Set CUDA architectures
set(CMAKE_CUDA_ARCHITECTURES ${CUDA_ARCH_LIST})
set_target_properties(gpuvmem PROPERTIES CUDA_ARCHITECTURES "${CUDA_ARCH_LIST}")
# For CUDA 12+, also add direct -arch=sm_X flags (CMake generates compute_X
# which nvcc rejects)
if(CUDA_VERSION_MAJOR GREATER_EQUAL 12)
foreach(ARCH ${CUDA_ARCH_LIST})
target_compile_options(gpuvmem
PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:-arch=sm_${ARCH}>)
endforeach()
message(
STATUS "CUDA 12+ detected: Using -arch=sm_X flags (${CUDA_ARCH_LIST})")
else()
message(STATUS "CUDA architectures: ${CUDA_ARCH_LIST}")
endif()
# ============================================================================
# CUDA Compilation Settings
# ============================================================================
# Set CUDA properties
set_target_properties(
gpuvmem
PROPERTIES CUDA_SEPARABLE_COMPILATION ON # Enable separate compilation for
# faster builds
CUDA_STANDARD ${CMAKE_CUDA_STANDARD})
# Common CUDA flags (OpenMP support)
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Xcompiler -fopenmp")
# Build-specific compilation flags
if(MEMORY_DEBUG)
message(STATUS "Memory debugging: ON")
target_compile_options(gpuvmem PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:-g -G
-D_FORCE_INLINES -w>)
else()
if(USE_FAST_MATH)
message(STATUS "Fast math: ON")
target_compile_options(
gpuvmem PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:-D_FORCE_INLINES -w
--use_fast_math -O3>)
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Xptxas -O3")
else()
target_compile_options(
gpuvmem PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:-D_FORCE_INLINES -w -O3>)
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Xptxas -O3")
endif()
endif()
# ============================================================================
# Linking
# ============================================================================
# CUDA libraries
set(CUDA_LIBS ${CUDA_cuda_LIBRARY} ${CUDA_cudart_LIBRARY} ${CUDA_cufft_LIBRARY})
# External libraries
set(EXTERNAL_LIBS ${CASACORE_LIBRARIES} ${CFITSIO_LIBRARY} ${Boost_LIBRARIES})
# Link all libraries
target_link_libraries(
gpuvmem
PRIVATE m # Math library
stdc++ # C++ standard library
gomp # OpenMP (GNU implementation)
${CUDA_LIBS}
${EXTERNAL_LIBS})
# ============================================================================
# Installation
# ============================================================================
install(TARGETS gpuvmem DESTINATION bin)
# ============================================================================
# Testing
# ============================================================================
enable_testing()
set(TEST_DIR ${CMAKE_CURRENT_SOURCE_DIR}/tests)
# Test cases
set(TEST_CASES antennae co65 freq78 m87 selfcalband9)
# Add all test cases
foreach(TEST_NAME ${TEST_CASES})
add_test(NAME ${TEST_NAME}
COMMAND bash ${TEST_DIR}/${TEST_NAME}/test.sh ${BINARY_DIR}/gpuvmem
${TEST_DIR}/${TEST_NAME})
endforeach()
# ============================================================================
# Build Summary
# ============================================================================
message(STATUS "")
message(STATUS "=== Build Configuration ===")
message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")
message(STATUS "C++ standard: ${CMAKE_CXX_STANDARD}")
message(STATUS "CUDA standard: ${CMAKE_CUDA_STANDARD}")
message(STATUS "CUDA version: ${CUDAToolkit_VERSION}")
message(STATUS "CUDA path: ${CUDAToolkit_LIBRARY_ROOT}")
message(STATUS "CUDA architectures: ${CMAKE_CUDA_ARCHITECTURES}")
message(STATUS "Output directory: ${BINARY_DIR}")
message(STATUS "Memory debug: ${MEMORY_DEBUG}")
message(STATUS "Fast math: ${USE_FAST_MATH}")
message(STATUS "===========================")
message(STATUS "")