diff --git a/install b/install index ac1c75cd07fd3e8d8ae8f9e006716ab5709ae05b..6072578cd4758faef2b608b6dcb3dd188f8c0f3d 100755 --- a/install +++ b/install @@ -55,10 +55,13 @@ while getopts di:smhc:nu FLAG; do echo "Fowarding options $OPTARG to configure script" configure_options=$OPTARG ;; - m) - echo "Skip to make the testing" - nomake=1 - ;; + m) + echo "Skip compilation of the test" + nomake=1 + ;; + g) + echo "Installing with GPU support" + gpu_support=1 u) echo "Updating openfpm" update_openfpm=1 @@ -289,7 +292,7 @@ fi ### MPI compilers must be in your PATH folder -set_mpi $i_dir $ncore $CC $CXX $F77 $FC +set_mpi $i_dir $ncore $CC $CXX $F77 $FC $gpu_support ### METIS and ParMETIS must be installed independently from sistem wide installation @@ -334,7 +337,7 @@ else echo "Error the installation of MPI failed" exit 1 fi - ./script/install_MPI.sh $i_dir $ncore $CC $CXX $F77 $FC + ./script/install_MPI.sh $i_dir $ncore $CC $CXX $F77 $FC $gpu_support MPI_installed=1 export PATH="$i_dir/MPI/bin:$PATH" configure_options="$configure_options CXX=mpic++ " diff --git a/script/set_mpi b/script/set_mpi index b73a58c762c93160c394a80d675e99617170029b..acdc9df52c89a4f368a90d7d311f983bd7393a62 100755 --- a/script/set_mpi +++ b/script/set_mpi @@ -5,7 +5,7 @@ function set_mpi() if [ x"$MPI_valid" == x"yes" ]; then configure_options="$configure_options CXX=mpic++ " else - ./script/install_MPI.sh $1 $2 $3 $4 $5 $6 + ./script/install_MPI.sh $1 $2 $3 $4 $5 $6 $7 MPI_installed=1 export PATH="$1/MPI/bin:$PATH" configure_options="$configure_options CXX=mpic++ "