-
Notifications
You must be signed in to change notification settings - Fork 10
/
CMakeLists.txt
54 lines (42 loc) · 1.42 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
project(MinervaSegs)
include_directories(
basic
/opt/mshadow/
../LibN3L/
)
add_definitions(-DUSE_CUDA=0)
IF(CMAKE_BUILD_TYPE MATCHES Debug)
SET( CMAKE_CXX_FLAGS "-w -msse3 -funroll-loops -O0" )
ELSE()
SET( CMAKE_CXX_FLAGS "-w -msse3 -funroll-loops -O3" )
ENDIF()
####for openblas
add_definitions(-DMSHADOW_USE_CUDA=0)
add_definitions(-DMSHADOW_USE_CBLAS=1)
add_definitions(-DMSHADOW_USE_MKL=0)
SET( CMAKE_SHARED_LINKER_FLAGS "-lm -lopenblas")
####endfor openblas
####for cuda
#add_definitions(-DMSHADOW_USE_CUDA=1)
#add_definitions(-DMSHADOW_USE_CBLAS=1)
#add_definitions(-DMSHADOW_USE_MKL=0)
#SET( CMAKE_SHARED_LINKER_FLAGS "-lm -lcudart -lcublas -lcurand" )
#include_directories(
# $(USE_CUDA_PATH)/include
#)
#LINK_DIRECTORIES($(USE_CUDA_PATH)/lib64)
####endfor cuda
#add_subdirectory(basic)
#aux_source_directory(. DIR_SRCS)
add_executable(PoolLabeler PoolLabeler.cpp)
add_executable(PoolRNNLabeler PoolRNNLabeler.cpp)
add_executable(PoolGRNNLabeler PoolGRNNLabeler.cpp)
add_executable(PoolExLabeler PoolExLabeler.cpp)
add_executable(PoolExRNNLabeler PoolExRNNLabeler.cpp)
add_executable(PoolExGRNNLabeler PoolExGRNNLabeler.cpp)
target_link_libraries(PoolLabeler openblas)
target_link_libraries(PoolRNNLabeler openblas)
target_link_libraries(PoolGRNNLabeler openblas)
target_link_libraries(PoolExLabeler openblas)
target_link_libraries(PoolExRNNLabeler openblas)
target_link_libraries(PoolExGRNNLabeler openblas)