Skip to content

Commit

Permalink
init version
Browse files Browse the repository at this point in the history
  • Loading branch information
jiesutd committed Apr 4, 2017
0 parents commit 2132b9d
Show file tree
Hide file tree
Showing 32 changed files with 10,062 additions and 0 deletions.
55 changes: 55 additions & 0 deletions CMakeLists.txt
@@ -0,0 +1,55 @@
cmake_minimum_required(VERSION 2.8)
IF(APPLE)
set(CMAKE_C_COMPILIER /usr/local/bin/gcc)
set(CMAKE_CXX_COMPILER /usr/local/bin/g++)
ENDIF()
project(NNTSegClean)

include_directories(
basic/
feature/
model/
state/
/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(STDSeg STDSeg.cpp)

target_link_libraries(STDSeg openblas)




0 comments on commit 2132b9d

Please sign in to comment.