forked from JetBrains-Research/CFPQ-on-GPGPU
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
50 lines (42 loc) · 1.9 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
cmake_minimum_required(VERSION 3.10)
project(CFPQ_CUDA CXX CUDA)
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} --ptxas-options=-v -Xptxas -O3 -v")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3")
set(CMAKE_CXX_STANDARD 11)
include_directories(${CMAKE_SOURCE_DIR}/cfpq-cpp)
add_executable(naiveGPU
cuda/naive-gpu/GpuMatrix.h
cuda/naive-gpu/GpuMatrix.cpp
cuda/naive-gpu/Multiplication.cu
cuda/naive-gpu/Multiplication.h
cuda/naive-gpu/Parameters.h
cuda/naive-gpu/main.cpp
cfpq-cpp/Grammar.cpp cfpq-cpp/Grammar.h cfpq-cpp/Graph.cpp cfpq-cpp/Graph.h cfpq-cpp/Matrix.h
)
add_executable(naiveGPU-shared
cuda/naive-gpu-shared/GpuMatrix.h
cuda/naive-gpu-shared/GpuMatrix.cpp
cuda/naive-gpu-shared/Multiplication.cu
cuda/naive-gpu-shared/Multiplication.h
cuda/naive-gpu-shared/Parameters.h
cuda/naive-gpu-shared/main.cpp
cfpq-cpp/Grammar.cpp cfpq-cpp/Grammar.h cfpq-cpp/Graph.cpp cfpq-cpp/Graph.h cfpq-cpp/Matrix.h
)
add_executable(m4riGPU
cuda/methodOf4RusBooleanSemiringGpu/methodOf4RusBooleanSemiringGpu.cu
cuda/methodOf4RusBooleanSemiringGpu/methodOf4RusBooleanSemiringMatrix.cu
cuda/methodOf4RusBooleanSemiringGpu/methodOf4RusBooleanSemiringMatrix.h
cuda/methodOf4RusBooleanSemiringGpu/Constants.h
cuda/methodOf4RusBooleanSemiringGpu/gpuMemoryManagement.cu
cuda/methodOf4RusBooleanSemiringGpu/gpuMemoryManagement.h
cuda/methodOf4RusBooleanSemiringGpu/cfpqM4RusGpu.cpp
cfpq-cpp/Grammar.cpp cfpq-cpp/Grammar.h cfpq-cpp/Graph.cpp cfpq-cpp/Graph.h cfpq-cpp/Matrix.h
)
link_directories(/usr/local/include)
add_executable(m4riCPU
m4ri/main.cpp
m4ri/m4ri_matrix.h
m4ri/m4ri_matrix.cpp
cfpq-cpp/Grammar.cpp cfpq-cpp/Grammar.h cfpq-cpp/Graph.cpp cfpq-cpp/Graph.h cfpq-cpp/Matrix.h
)
target_link_libraries(m4riCPU m4ri)