-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
40 lines (31 loc) · 1.13 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
cmake_minimum_required(VERSION 3.13)
project(sp_gemm CUDA CXX C)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/modules)
include(cmake/Dependencies.cmake)
#set(CMAKE_CXX_STANDARD 17)
#set(CMAKE_CXX_STANDARD_REQUIRED ON)
#set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CUDA_STANDARD 14)
set(CMAKE_CUDA_STANDARD_REQUIRED TRUE)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
set(CMAKE_CXX_FLAGS "-D_GLIBCXX_USE_CXX11_ABI=0")
create_cuda_gencode_flags(CUDA_GENCODE_FLAGS ${CUDA_ARCHS})
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} ${CUDA_GENCODE_FLAGS}")
add_definitions(-DGPU_CC=${CUDA_ARCHS})
set(CUSPARSELT_PATH "/projects/libcusparse_lt-linux-x86_64-0.3.0.3-archive/")
set(CUDA_TOOLKIT_PATH "/usr/local/cuda-11.5/")
if(BASELINE)
add_definitions(-DBASELINE)
elseif(IDEAL_KERNEL)
add_definitions(-DIDEAL_KERNEL)
endif()
if(OUT_32B)
add_definitions(-DOUT_32B)
endif()
include_directories(include/sputnik)
include_directories(include/CLASP/include/CLASP)
add_subdirectory(include/sputnik)
add_subdirectory(include/spatha/block_sparse)
add_subdirectory(include/CLASP/include/CLASP)
add_subdirectory(src)