forked from NVIDIA-Genomics-Research/GenomeWorks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CUDA.cmake
20 lines (17 loc) · 791 Bytes
/
CUDA.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#
# Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and related documentation without an express
# license agreement from NVIDIA CORPORATION is strictly prohibited.
#
# Check CUDA dependency for project.
find_package(CUDA 9.0 REQUIRED)
if(NOT ${CUDA_FOUND})
message(FATAL_ERROR "CUDA not detected on system. Please install")
else()
message(STATUS "Using CUDA ${CUDA_VERSION} from ${CUDA_TOOLKIT_ROOT_DIR}")
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -lineinfo -use_fast_math -Xcompiler -Wall,-Wno-pedantic")
endif()