This commit is contained in:
Marcin Junczys-Dowmunt 2016-04-14 17:21:07 +02:00
parent d5cb8578f2
commit 67c620a7a4
4 changed files with 11 additions and 6 deletions

View File

@ -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})

9
README Normal file
View File

@ -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

View File

@ -1,5 +1,3 @@
#include <boost/utility/result_of.hpp>
#include <cstdlib>
#include <iostream>
#include <string>

View File

@ -1,5 +1,3 @@
#include <boost/utility/result_of.hpp>
#include <iostream>
#include <string>
#include <memory>