CMakeLists.txt 793 Bytes
Newer Older
qon's avatar
qon committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
    PROJECT( BioEM )
    
    FIND_PACKAGE(CUDA)

    SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -march=native -fopenmp -fweb -mfpmath=sse -frename-registers -minline-all-stringops -ftracer -funroll-loops -fpeel-loops -fprefetch-loop-arrays -ffast-math -ggdb" )
    
    SET( CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS};-gencode arch=compute_35,code=sm_35;--use_fast_math;-ftz=true;-O4;-Xptxas -O4" )

    INCLUDE_DIRECTORIES( include  $HOME/usr/include )

    CUDA_ADD_EXECUTABLE( bioEM bioem.cpp  main.cpp  map.cpp  model.cpp  param.cpp cmodules/timer.cpp bioem_cuda.cu )
    
    SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wall -Wno-vla -Wno-unused-result -pedantic" )

    TARGET_LINK_LIBRARIES( bioEM -lfftw3 -fopenmp -lboost_program_options )