diff options
author | Marcin Junczys-Dowmunt <junczys@amu.edu.pl> | 2016-04-14 18:21:07 +0300 |
---|---|---|
committer | Marcin Junczys-Dowmunt <junczys@amu.edu.pl> | 2016-04-14 18:21:07 +0300 |
commit | 67c620a7a476168346dd022ccabf86ba61ce6e1a (patch) | |
tree | d09a4b9df2b57fbc5cfe4baf2397d86538ffa5c5 | |
parent | d5cb8578f25ac3a688c12bd5109c3a3552d677c8 (diff) |
Readme
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | README | 9 | ||||
-rw-r--r-- | src/decoder/decoder_main.cu | 2 | ||||
-rw-r--r-- | src/rescorer/rescorer_main.cu | 2 |
4 files changed, 11 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 76e90b45..5fa647eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,9 +2,9 @@ cmake_minimum_required(VERSION 3.1.0) set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) project(amunn CXX) -SET(CMAKE_CXX_FLAGS " -std=c++11 -g -O3 -funroll-loops -Wno-unused-result -Wno-deprecated") +SET(CMAKE_CXX_FLAGS " -std=c++11 -g -O3 -fPIC -funroll-loops -Wno-unused-result -Wno-deprecated") #SET(CUDA_PROPAGATE_HOST_FLAGS OFF) -SET(CUDA_NVCC_FLAGS " -std=c++11 -g -O3 -arch=sm_35 -lineinfo --use_fast_math") +SET(CUDA_NVCC_FLAGS " -std=c++11 -g -O3 -fPIC -arch=sm_35 -lineinfo --use_fast_math") #SET(CUDA_VERBOSE_BUILD ON) include_directories(${amunn_SOURCE_DIR}) @@ -0,0 +1,9 @@ + +mkdir build +cd build +cmake .. +make -j + +on Ubuntu 16.04, you need g++4.9 and cuda-7.5 and a boost version compiled with g++4.9 + +CUDA_BIN_PATH=/usr/local/cuda-7.5 BOOST_ROOT=/home/marcin/myboost cmake .. -DCMAKE_CXX_COMPILER=g++-4.9 -DCUDA_HOST_COMPILER=/usr/bin/g++-4.9
\ No newline at end of file diff --git a/src/decoder/decoder_main.cu b/src/decoder/decoder_main.cu index d94d5e56..2dfe0d2f 100644 --- a/src/decoder/decoder_main.cu +++ b/src/decoder/decoder_main.cu @@ -1,5 +1,3 @@ -#include <boost/utility/result_of.hpp> - #include <cstdlib> #include <iostream> #include <string> diff --git a/src/rescorer/rescorer_main.cu b/src/rescorer/rescorer_main.cu index 8126252a..a5b5fb3a 100644 --- a/src/rescorer/rescorer_main.cu +++ b/src/rescorer/rescorer_main.cu @@ -1,5 +1,3 @@ -#include <boost/utility/result_of.hpp> - #include <iostream> #include <string> #include <memory> |