-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
72 lines (57 loc) · 2.22 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
cmake_minimum_required (VERSION 3.5 FATAL_ERROR)
project (SlabHash)
find_package(CUDA 10.1 REQUIRED)
option(CMAKE_VERBOSE_MAKEFILE ON)
set(CUDA_NVCC_FLAGS -std=c++11)
set (CMAKE_CXX_STANDARD 11)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(GENCODE_SM30
-gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_30,code=compute_30)
set(GENCODE_SM35
-gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_35,code=compute_35)
set(GENCODE_SM37
-gencode=arch=compute_37,code=sm_37 -gencode=arch=compute_37,code=compute_37)
set(GENCODE_SM50
-gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_50,code=compute_50)
set(GENCODE_SM60
-gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_60,code=compute_60)
set(GENCODE_SM61
-gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_61,code=compute_61)
set(GENCODE_SM70
-gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_70,code=compute_70)
set(GENCODE_SM71
-gencode=arch=compute_71,code=sm_71 -gencode=arch=compute_71,code=compute_71)
option(SLABHASH_GENCODE_SM30 "GENCODE_SM30" OFF)
option(SLABHASH_GENCODE_SM35 "GENCODE_SM35" OFF)
option(SLABHASH_GENCODE_SM37 "GENCODE_SM37" OFF)
option(SLABHASH_GENCODE_SM50 "GENCODE_SM50" OFF)
option(SLABHASH_GENCODE_SM60 "GENCODE_SM60" OFF)
option(SLABHASH_GENCODE_SM61 "GENCODE_SM61" ON)
option(SLABHASH_GENCODE_SM70 "GENCODE_SM70" OFF)
option(SLABHASH_GENCODE_SM71 "GENCODE_SM71" OFF)
if (SLABHASH_GENCODE_SM30)
set(GENCODE ${GENCODE} ${GENCODE_SM30})
endif(SLABHASH_GENCODE_SM30)
if (SLABHASH_GENCODE_SM35)
set(GENCODE ${GENCODE} ${GENCODE_SM35})
endif(SLABHASH_GENCODE_SM35)
if (SLABHASH_GENCODE_SM37)
set(GENCODE ${GENCODE} ${GENCODE_SM37})
endif(SLABHASH_GENCODE_SM37)
if (SLABHASH_GENCODE_SM50)
set(GENCODE ${GENCODE} ${GENCODE_SM50})
endif(SLABHASH_GENCODE_SM50)
if (SLABHASH_GENCODE_SM60)
set(GENCODE ${GENCODE} ${GENCODE_SM60})
endif(SLABHASH_GENCODE_SM60)
if (SLABHASH_GENCODE_SM61)
set(GENCODE ${GENCODE} ${GENCODE_SM61})
endif(SLABHASH_GENCODE_SM61)
if (SLABHASH_GENCODE_SM70)
set(GENCODE ${GENCODE} ${GENCODE_SM70})
endif(SLABHASH_GENCODE_SM70)
if(SLABHASH_GENCODE_SM71)
set(GENCODE ${GENCODE} ${GENCODE_SM71})
endif(SLABHASH_GENCODE_SM71)
include_directories(include)
add_subdirectory(test)