Skip to content
Permalink
Browse files

toolchain: Fix install_sirius.sh for cuda

  • Loading branch information...
oschuett committed Jul 10, 2019
1 parent 10b2bb3 commit 2f067d517e8826a19d30cb181aac7e147a3c8018
Showing with 3 additions and 1 deletion.
  1. +3 −1 tools/toolchain/scripts/install_sirius.sh
@@ -156,6 +156,8 @@ case "$with_sirius" in
-DCMAKE_CXX_COMPILER=mpic++ \
-DCMAKE_C_COMPILER=mpicc ${COMPILATION_OPTIONS} .. >> compile.log 2>&1
make -j $NPROCS -C src >> compile.log 2>&1
install -d ${pkg_install_dir}/lib/cuda
install -d ${pkg_install_dir}/include/cuda
install -m 644 src/*.a ${pkg_install_dir}/lib/cuda >> install.log 2>&1
install -m 644 src/mod_files/*.mod ${pkg_install_dir}/include/cuda >> install.log 2>&1
SIRIUS_CUDA_LDFLAGS="-L'${pkg_install_dir}/lib/cuda' -Wl,-rpath='${pkg_install_dir}/lib/cuda'"
@@ -210,7 +212,7 @@ case "$with_sirius" in
;;
esac
if [ "$with_sirius" != "__DONTUSE__" ] ; then
SIRIUS_LIBS="-lsirius_f"
SIRIUS_LIBS="-lsirius_f IF_CUDA(-lsirius_cu -lcusolver|)"
SIRIUS_CUDA_LDFLAGS="-L'${pkg_install_dir}/lib/cuda' -Wl,-rpath='${pkg_install_dir}/lib/cuda'"
SIRIUS_LDFLAGS="-L'${pkg_install_dir}/lib' -Wl,-rpath='${pkg_install_dir}/lib'"
SIRIUS_CFLAGS="-I'${pkg_install_dir}/include'"

0 comments on commit 2f067d5

Please sign in to comment.
You can’t perform that action at this time.