Skip to content
Snippets Groups Projects
Commit 0d2a9b33 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Set CUDA_ARCH_HOST_COMPILER to in the build script

fixes #19
parent 7638eceb
No related branches found
No related tags found
No related merge requests found
......@@ -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."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment