From 0d2a9b331fa016f520e44744afed50b27ae1a041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= <klinkjak@fjfi.cvut.cz> Date: Thu, 6 Dec 2018 15:01:00 +0100 Subject: [PATCH] Set CUDA_ARCH_HOST_COMPILER to in the build script fixes #19 --- build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build b/build index 0f6723d604..f11dbffbc1 100755 --- a/build +++ b/build @@ -111,6 +111,9 @@ fi if [[ ${WITH_CLANG} == "yes" ]]; then export CXX=clang++ export CC=clang +else + export CXX=g++ + export CC=gcc fi if [[ ${WITH_MPI} == "yes" ]]; then @@ -124,8 +127,9 @@ if [[ ${WITH_MPI} == "yes" ]]; then # if [ -n "$CXX" ]; then # export OMPI_CXX="$CXX" # fi - export CXX=mpicxx + export CUDA_ARCH_HOST_COMPILER="$CXX" export CUDA_HOST_COMPILER=mpicxx + export CXX=mpicxx fi if [[ ! -x "$(command -v mpicc)" ]]; then echo "Warning: mpicc is not installed on this system." -- GitLab