-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
43 lines (28 loc) · 1.03 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
cmake_minimum_required(VERSION 3.5)
# Set project
project(Cuda-Notebook LANGUAGES C CXX CUDA)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Set CUDA architecture
set(CMAKE_CUDA_ARCHITECTURES 86)
add_definitions(-DPRO_ROOT_DIR="${CMAKE_SOURCE_DIR}")
if(DEFINED ENV{VCPKG_ROOT_DIR})
set(VCPKG_ROOT_DIR $ENV{VCPKG_ROOT_DIR})
else()
message(FATAL_ERROR "Environment variable 'VCPKG_ROOT_DIR' is not set.")
endif()
message(STATUS "VCPKG_ROOT_DIR: ${VCPKG_ROOT_DIR}")
set(CMAKE_TOOLCHAIN_FILE "${VCPKG_ROOT_DIR}/scripts/buildsystems/vcpkg.cmake")
# Find CUDA
find_package(CUDA REQUIRED)
message(STATUS "CUDA Version: ${CUDA_VERSION}")
message(STATUS "CUDA_INCLUDE_DIRS: ${CUDA_INCLUDE_DIRS}")
include_directories(${CUDA_INCLUDE_DIRS})
include_directories(${PROJECT_SOURCE_DIR}/common)
add_subdirectory(src/image_processing)
add_subdirectory(src/neural_network)
add_subdirectory(src/thrust)
add_subdirectory(src/cublas)
add_subdirectory(src/reduction)
add_subdirectory(src/cudnn)
add_subdirectory(src/cuda-samples)