forked from mlxd/GPUE
-
Notifications
You must be signed in to change notification settings - Fork 10
/
CMakeLists.txt
78 lines (56 loc) · 1.4 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
73
74
75
76
77
78
cmake_minimum_required(VERSION 3.8)
project(gpue_build LANGUAGES CXX CUDA)
find_package(CUDA QUIET REQUIRED)
set(
CUDA_NVCC_FLAGS
${CUDA_NVCC_FLAGS};
-O3 -gencode arch=compute_37,code=sm_37 -lcufft -fopenmp
)
find_file( EXAMPLE_CFG example.cfg src/ )
add_library(unitTest OBJECT src/unit_test.cu include/unit_test.h include/kernels.h)
set( CFG_FILE_PATH _CFG_FILE_PATH="${EXAMPLE_CFG}" )
target_compile_options(
unitTest PRIVATE -D${CFG_FILE_PATH} -dc -std=c++11
)
add_executable(
gpue
src/dynamic.cu
include/dynamic.h
src/ds.cu
include/ds.h
src/edge.cu
include/edge.h
src/evolution.cu
include/evolution.h
src/fileIO.cu
include/fileIO.h
src/kernels.cu
include/kernels.h
src/manip.cu
include/manip.h
src/lattice.cu
include/lattice.h
src/minions.cu
include/minions.h
src/multigpu.cu
src/node.cu
include/node.h
src/operators.cu
include/operators.h
src/parser.cu
include/parser.h
src/split_op.cu
include/split_op.h
src/tracker.cu
include/tracker.h
$<TARGET_OBJECTS:unitTest>
src/vort.cu
include/vort.h
src/vortex_3d.cu
include/vortex_3d.h
src/init.cu
include/init.h
)
target_compile_features(gpue PUBLIC cxx_std_11)
target_link_libraries(gpue ${CUDA_LIBRARIES} ${CUDA_CUFFT_LIBRARIES})
set_target_properties(gpue PROPERTIES CUDA_SEPARABLE_COMPILATION ON)