# See the file README.md for description of the configuration options. message(STATUS "Using defaults.cmake") if (NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Build type: Debug, Release, RelWithDebInfo, or MinSizeRel." FORCE) endif() # DGTD options. option(DGTD_USE_OPENMP "Enable the OpenMP backend" ON) option(DGTD_USE_DOUBLE "Enable the Double Precision FLP usage for CPU calculations" ON) option(DGTD_USE_DOUBLE_TS "Enable the Double Precision FLP usage for GPU timestepping" OFF) # option(DGTD_USE_DOUBLE "Enable the Double Precision FLP usage" OFF) option(DGTD_USE_CUDA "Enable CUDA" ON) # option(DGTD_USE_CUDA "Enable CUDA" OFF) # option(DGTD_USE_OPENCL "Enable OpenCL" OFF) option(DGTD_USE_CUDA_OPENCL "Enable CUDA && OpenCL" OFF) # GPU MODE option(CUDA_NON_HEAVY "Enable NON HEAVY MODE" ON) # option(CUDA_NON_HEAVY "Enable NON HEAVY MODE" OFF) option(CUDA_GPU_ZERO_COPY "Enable HEAVY ZERO COPY MODE" OFF) # LTS MODE option(DGTD_USE_LTS "Enable LTS MODE" ON) # option(DGTD_USE_LTS "Enable LTS MODE" OFF) # Set the target CUDA architecture set(CUDA_ARCH "sm_60" CACHE STRING "Target CUDA architecture.") set(CUDA_COMPUTE "compute_60" CACHE STRING "Target CUDA virtual architecture.") set(DGTD_DIR .) # The *_DIR paths below will be the first place searched for the corresponding # headers and library. If these fail, then standard cmake search is performed. # Note: if the variables are already in the cache, they are not overwritten. set(BLAS_INCLUDE_DIRS "" CACHE STRING "Path to BLAS headers.") set(BLAS_LIBRARIES "" CACHE STRING "The BLAS library.") set(LAPACK_INCLUDE_DIRS "" CACHE STRING "Path to LAPACK headers.") set(LAPACK_LIBRARIES "" CACHE STRING "The LAPACK library.") # Some useful variables: set(CMAKE_SKIP_PREPROCESSED_SOURCE_RULES ON) # Skip *.i rules set(CMAKE_SKIP_ASSEMBLY_SOURCE_RULES ON) # Skip *.s rules # set(CMAKE_VERBOSE_MAKEFILE ON CACHE BOOL "Verbose makefiles.")