From 67c620a7a476168346dd022ccabf86ba61ce6e1a Mon Sep 17 00:00:00 2001 From: Marcin Junczys-Dowmunt Date: Thu, 14 Apr 2016 17:21:07 +0200 Subject: [PATCH] Readme --- CMakeLists.txt | 4 ++-- README | 9 +++++++++ src/decoder/decoder_main.cu | 2 -- src/rescorer/rescorer_main.cu | 2 -- 4 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 README 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}) diff --git a/README b/README new file mode 100644 index 00000000..2ab060b0 --- /dev/null +++ b/README @@ -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 - #include #include #include 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 - #include #include #include