Commit 1aa275d5 authored by incardon's avatar incardon
Browse files

New installation system

parent 2bf79262
......@@ -267,23 +267,19 @@ BOOST_CPPFLAGS=$(echo "$BOOST_CPPFLAGS" | sed -e 's/-I\/usr\/include[ \b]//g')
AC_SUBST(BOOST_LDFLAGS)
AC_SUBST(BOOST_CPPFLAGS)
###### Checking for OpenBLAS
###### Checking for OpenBLAS (used to make sure than EIGEN can use such package)
AX_BLAS([],[echo "blas not found"
exit 204])
#AX_BLAS([],[echo "blas not found"])
#AX_LAPACK([],[echo "lapack not found"])
AX_LAPACK([],[echo "lapack not found"
exit 204])
###### Checking for SUITESPARSE (used to make sure that EIGEN can use such package)
###### Checking for SUITESPARSE
AX_SUITESPARSE([],[echo "suitesparse not found"
exit 205])
#AX_SUITESPARSE([],[echo "suitesparse not found"])
###### Checking for EIGEN
AX_EIGEN([],[echo "eigen not found"
exit 206])
#AX_EIGEN([],[echo "eigen not found"
# exit 206])
###### RT runtime lib
......
......@@ -132,33 +132,37 @@ echo -e "Installing requirements into: $i_dir "
## call the configure script
if [ x"$MPI_valid" == x"yes" ]; then
configure_options="$configure_options CXX=mpic++ "
else
./script/install_MPI.sh $i_dir
fi
### MPI compilers must be in your PATH folder
set_mpi $i_dir
### Installing PETSC
if [ ! -d "$i_dir/PETSC" ]; then
echo -e "\033[1;34m OpenFPM Numerics \033[0m"
echo -e "\033[1mOpenfpm Numerics\033[0m went in Beta production. It use the optionally the following\033[1m linear algebra packages (TRILINOS,SUPERLU_DIST,MUMPS,HYPRE,SCALAPACK,SUITESPARSE,OPENBLAS,EIGEN,PETSC) \033[0m. \033[1mThe installation is automated but can take long time \033[1m (i7-3612QM 4 core 90 minutes) \033[0m. In case you decide to not install the linear algebra, openfpm numeric will try anyway to search for linear algebra packages"
echo -e "\033[1mOpenfpm Numerics\033[0m is in Beta production. It use optionally the following\033[1m linear algebra packages (TRILINOS,SUPERLU_DIST,MUMPS,HYPRE,SCALAPACK,SUITESPARSE,OPENBLAS,EIGEN,PETSC) \033[0m. \033[1mThe installation is automated but can take long time \033[1m (i7-3612QM 4 core 90 minutes) \033[0m. In case you decide to not install the linear algebra, openfpm numeric will try anyway to search for linear algebra packages"
echo ""
echo -e "\033[1mHow many core you want to use to install the linear algebra package?\033[0m(0=no linear algebra installation)"
read choose
read lin_alg_ncore
if [ ! x"$choose" == x"0" ]; then
./script/install_PETSC.sh $i_dir $choose
fi
# if [ ! x"$choose" == x"0" ]; then
# ./script/install_PETSC.sh $i_dir $choose
# configure_options="$configure_options --with-PETSC=$i_dir/PETSC "
# fi
else
configure_options="$configure_options --with-PETSC=$i_dir/PETSC "
fi
### MPI
if [ x"$MPI_valid" == x"yes" ]; then
configure_options="$configure_options CXX=mpic++ "
else
./script/install_MPI.sh $i_dir
fi
### MPI compilers must be in your PATH folder
set_mpi $i_dir
### METIS and ParMETIS must be installed independently from sistem wide installation
./script/install_Parmetis.sh $i_dir $compiler_gcc $compiler_gpp
......@@ -167,23 +171,27 @@ configure_options=" $configure_options --with-parmetis=$i_dir/PARMETIS "
configure_options=" $configure_options --with-metis=$i_dir/METIS "
MPI_installed=0
MPI_System_prv=1
METIS_installed=1
PARMETIS_installed=1
BOOST_installed=0
BOOST_System_prv=1
LAPACK_installed=0
LAPACK_System_prv=1
SUITESPARSE_installed=0
SUITESPARSE_System_prv=1
EIGEN_installed=0
EIGEN_System_prv=1
HDF5_installed=0
H5PART_installed=0
blas_options=""
HDF5_System_prv=1
conf_err=1
if [ $install_req -eq 0 ]; then
./configure $options $configure_options "$blas_options"
./configure $options $configure_options
else
while [ $conf_err -ne 0 ]
do
./configure $options $configure_options "$blas_options"
./configure $options $configure_options
conf_err=$?
echo "Configure script terminated with $conf_err"
......@@ -217,40 +225,6 @@ else
./script/install_BOOST.sh $i_dir $compiler_opt
BOOST_installed=1
configure_options=" $configure_options --with-boost=$i_dir/BOOST "
elif [ $conf_err -eq 204 ]; then
echo "Lapack not found try to install"
if [ $LAPACK_installed -eq 1 ]; then
echo "Error the installation of LAPACK failed"
exit 1
fi
./script/install_OPENBLAS.sh $i_dir $compiler_opt
LAPACK_installed=1
blas_options="--with-blas=-L$i_dir/OPENBLAS/lib/ -lopenblas"
elif [ $conf_err -eq 205 ]; then
## First we install openblas, we ignore default lapack
## this SuiteSparse is programmed to use libopenblas
./script/install_OPENBLAS.sh $i_dir $compiler_opt
LAPACK_installed=1
blas_options="--with-blas=-L$i_dir/OPENBLAS/lib/ -lopenblas"
## Then suite sparse
echo "SuiteSparse not found try to install"
if [ $SUITESPARSE_installed -eq 1 ]; then
echo "Error the installation of SuiteSparse failed"
exit 1
fi
./script/install_SUITESPARSE.sh $i_dir $compiler_opt
configure_options=" $configure_options --with-suitesparse=$i_dir/SUITESPARSE "
SUITESPARSE_installed=1
elif [ $conf_err -eq 206 ]; then
echo "Eigen not found try to install"
if [ $EIGEN_installed -eq 1 ]; then
echo "Error the installation of Eigen failed"
exit 1
fi
./script/install_EIGEN.sh $i_dir $compiler_opt
configure_options=" $configure_options --with-eigen=$i_dir/EIGEN "
EIGEN_installed=1
elif [ $conf_err -eq 208 ]; then
echo "ParMetis not found try to install"
if [ $PARMETIS_installed -eq 1 ]; then
......@@ -274,6 +248,20 @@ else
exit 1
fi
done
if [ ! x"$lin_alg_ncore" == x"0" ]; then
./script/install_EIGEN.sh $i_dir $lin_alg_ncore
if [ $? -eq 0 ]; then
configure_options=" $configure_options --with-eigen=$i_dir/EIGEN "
fi
./script/install_PETSC.sh $i_dir $lin_alg_ncore
if [ $? -eq 0 ]; then
configure_options=" $configure_options --with-petsc=$i_dir/PETSC "
fi
fi
./configure $options $configure_options
fi
### Create example.mk
......@@ -285,8 +273,8 @@ echo "LIBS_SE2=-lvcluster -lofpmmemory_se2 -lparmetis -lmetis -lboost_iostreams
cp example.mk src/example.mk
cp example.mk example/example.mk
#make clean
#make
make clean
make
if [ $? -ne 0 ]; then
conf_err=1
......@@ -302,7 +290,7 @@ fi
echo "Command used to configure"
echo ""
echo -e "\033[1m ./configure $options $configure_options "$blas_options" \033[0m "
echo -e "\033[1m ./configure $options $configure_options \033[0m "
echo ""
if [ x"$platform" = x"linux" ]; then
......@@ -316,47 +304,115 @@ bash_path="export PATH=\$PATH"
echo -e "\033[1;34;5m --------------------------------------- \033[0m"
echo -e "\033[1;34;5m --------- INSTALLATION REPORT --------- \033[0m"
echo ""
echo -e "\033[1;34;5m ---------- Mandatory packages --------- \033[0m"
echo ""
if [ $MPI_installed -eq 1 ]; then
installation_report="$installation_report MPI Installed: \033[1m $i_dir/MPI \033[0m\n"
bash_path="\033[1m$bash_path:$i_dir/MPI/bin"
bash_library="\033[1m$bash_library:$i_dir/MPI/lib"
if [ -d "$i_dir/MPI" ]; then
installation_report="$installation_report \033[92;1mMPI\033[0m Installed: \033[1m $i_dir/MPI \033[0m\n"
bash_path="$bash_path:$i_dir/MPI/bin"
bash_library="$bash_library:$i_dir/MPI/lib"
elif [ $MPI_System_prv -eq 1 ]; then
installation_report="$installation_report \033[92;1mMPI\033[0m Installed: \033[1m System installation \033[0m\n"
fi
if [ $METIS_installed -eq 1 ]; then
installation_report="$installation_report METIS Installed: \033[1m $i_dir/METIS \033[0m\n"
installation_report="$installation_report \033[92;1mMETIS\033[0m Installed: \033[1m $i_dir/METIS \033[0m\n"
bash_library="$bash_library:$i_dir/METIS/lib"
fi
if [ $PARMETIS_installed -eq 1 ]; then
installation_report="$installation_report \033[92;1mPARMETIS\033[0m Installed: \033[1m $i_dir/PARMETIS \033[0m\n"
bash_library="$bash_library:$i_dir/PARMETIS/lib"
fi
if [ $BOOST_installed -eq 1 ]; then
installation_report="$installation_report BOOST Installed: \033[1m $i_dir/BOOST \033[0m\n"
installation_report="$installation_report \033[92;1mBOOST\033[0m Installed: \033[1m $i_dir/BOOST \033[0m\n"
bash_library="$bash_library:$i_dir/BOOST/lib"
elif [ $BOOST_System_prv -eq 1 ]; then
installation_report="$installation_report \033[92;1mBOOST\033[0m Installed: \033[1m System installation \033[0m\n"
fi
if [ $HDF5_installed -eq 1 ]; then
installation_report="$installation_report \033[92;1mHDF5\033[0m Installed: \033[1m $i_dir/HDF5 \033[0m\n"
bash_library="$bash_library:$i_dir/HDF5/lib"
fi
echo -e "$installation_report"
echo ""
echo -e "\033[1;34;5m ---------- Optional packages ----------- \033[0m"
echo ""
installation_report=""
if [ -d "$i_dir/PETSC" ]; then
installation_report="$installation_report \033[92;1mPETSC\033[0m Installed: \033[1m $i_dir/PETSC \033[0m\n"
bash_library="$bash_library:$i_dir/PETSC/lib"
else
installation_report="$installation_report \033[91;1mPETSC\033[0m Installed: \033[1m NO \033[0m\n"
fi
if [ $LAPACK_installed -eq 1 ]; then
installation_report="$installation_report OPENBLAS Installed: \033[1m $i_dir/OPENBLAS \033[0m\n"
bash_library="$bash_library:$i_dir/OPENBLAS/lib"
if [ -d "$i_dir/EIGEN" ]; then
installation_report="$installation_report \033[92;1mEIGEN\033[0m Installed: \033[1m $i_dir/EIGEN \033[0m\n"
fi
echo -e "$installation_report"
echo -e "\033[1;34;5m -------------------------------- \033[0m"
installation_report=""
if [ -d "$i_dir/TRILINOS" ]; then
installation_report="$installation_report \033[92;1mTRILINOS\033[0m Installed: \033[1m $i_dir/TRILINOS \033[0m\n"
bash_library="$bash_library:$i_dir/TRILINOS/lib"
else
installation_report="$installation_report \033[91;1mTRILINOS\033[0m Installed: \033[1m NO \033[0m\n"
fi
if [ -d "$i_dir/OPENBLAS" ]; then
installation_report="$installation_report \033[92;1mOPENBLAS\033[0m Installed: \033[1m $i_dir/OPENBLAS \033[0m\n"
bash_library="$bash_library:$i_dir/OPENBLAS/lib"
else
installation_report="$installation_report \033[91;1mOPENBLAS\033[0m Installed: \033[1m NO \033[0m\n"
fi
if [ $SUITESPARSE_installed -eq 1 ]; then
installation_report="$installation_report SUITESPARSE Installed: \033[1m $i_dir/SUITESPARSE \033[0m\n"
if [ -d "$i_dir/SUITESPARSE" ]; then
installation_report="$installation_report \033[92;1mSUITESPARSE\033[0m Installed: \033[1m $i_dir/SUITESPARSE \033[0m\n"
bash_library="$bash_library:$i_dir/SUITESPARSE/lib"
else
installation_report="$installation_report \033[91;1mSUITESPARSE\033[0m Installed: \033[1m NO \033[0m\n"
fi
if [ $EIGEN_installed -eq 1 ]; then
installation_report="$installation_report EIGEN Installed: \033[1m $i_dir/EIGEN \033[0m\n"
if [ -d "$i_dir/SCALAPACK" ]; then
installation_report="$installation_report \033[92;1mSCALAPACK\033[0m Installed: \033[1m $i_dir/SCALAPACK \033[0m\n"
bash_library="$bash_library:$i_dir/SCALAPACK/lib"
else
installation_report="$installation_report \033[91;1mSCALAPACK\033[0m Installed: \033[1m NO \033[0m\n"
fi
if [ $HDF5_installed -eq 1 ]; then
installation_report="$installation_report HDF5 Installed: \033[1m $i_dir/HDF5 \033[0m\n"
bash_library="$bash_library:$i_dir/HDF5/lib"
if [ -d "$i_dir/MUMPS" ]; then
installation_report="$installation_report \033[92;1mMUMPS\033[0m Installed: \033[1m $i_dir/MUMPS \033[0m\n"
bash_library="$bash_library:$i_dir/MUMPS/lib"
else
installation_report="$installation_report \033[91;1mMUMPS\033[0m Installed: \033[1m NO \033[0m\n"
fi
if [ $PARMETIS_installed -eq 1 ]; then
installation_report="$installation_report PARMETIS Installed: \033[1m $i_dir/PARMETIS \033[0m\n"
bash_library="$bash_library:$i_dir/PARMETIS/lib"
if [ -d "$i_dir/SUPERLU_DIST" ]; then
installation_report="$installation_report \033[92;1mSUPERLU_DIST\033[0m Installed: \033[1m $i_dir/SUPERLU_DIST \033[0m\n"
bash_library="$bash_library:$i_dir/SUPERLU_DIST/lib"
else
installation_report="$installation_report \033[91;1mSUPERLU_DIST\033[0m Installed: \033[1m NO \033[0m\n"
fi
bash_path="$bash_path\033[0m"
bash_library="$bash_library\033[0m"
if [ -d "$i_dir/HYPRE" ]; then
installation_report="$installation_report \033[92;1mHYPRE\033[0m Installed: \033[1m $i_dir/HYPRE \033[0m\n"
bash_library="$bash_library:$i_dir/HYPRE/lib"
else
installation_report="$installation_report \033[91;1mHYPRE\033[0m Installed: \033[1m NO \033[0m\n"
fi
bash_path="$bash_path\""
bash_library="$bash_library\""
##### Writing openfpm_vars file
......@@ -365,21 +421,15 @@ echo "$bash_library" >> $HOME/openfpm_vars
echo -e "$installation_report"
echo ""
echo "Before run any openfpm program you must execute the following command"
echo ""
echo -e "\033[1m source $HOME/openfpm_vars \033[0m"
echo ""
echo -e "\033[91;1m if you have in your .bashrc or .bash_profile old openfpm setting, please remove it\033[0m"
if [ x"$platform" = x"linux" ]; then
echo "To have a working openfpm environment every time you open bash/terminal append such command at the end of the file $HOME/.bashrc"
echo "Before run any openfpm program you must execute the following command. A simple way would be to append this line at the end of your $HOME/.bashrc"
else
echo "To have a working openfpm environment every time you open bash/terminal append such command at the end of the file $HOME/.bash_profile"
echo "Before run any openfpm program you must execute the following command. A simple way would be to append this line at the end of your $HOME/.bash_profile"
fi
echo ""
echo -e "$bash_path"
echo -e "$bash_library"
echo -e "\033[1m source $HOME/openfpm_vars \033[0m"
echo ""
echo -e "\033[91;1m if you have in your .bashrc or .bash_profile old openfpm setting, please remove it\033[0m"
echo ""
echo ""
if [ $conf_err -ne 0 ]; then
......
......@@ -7,6 +7,16 @@ if [ -d "$1/EIGEN" ]; then
exit 0
fi
./script/install_OPENBLAS.sh $1 $2
if [ -d "$1/OPENBLAS" ]; then
exit 1
fi
./script/install_SUITESPARSE.sh $1 $2
if [ -d "$1/SUITESPARSE" ]; then
exit 1
fi
wget http://ppmcore.mpi-cbg.de/upload/eigen-3.2.7.tar.bz2
rm -rf eigen-eigen-b30b87236a1b
tar -xf eigen-3.2.7.tar.bz2
......
......@@ -17,14 +17,8 @@ configure_options_superlu=""
configure_trilinos_options=" -D TPL_ENABLE_MPI=ON -D Trilinos_ENABLE_OpenMP=ON"
configure_options_hypre=""
if [ -d "$1/OPENBLAS" ]; then
configure_options="$configure_options --with-blas-lib=$1/OPENBLAS/lib/libopenblas.a --with-lapack-lib=$1/OPENBLAS/lib/libopenblas.a"
configure_trilinos_options="$configure_trilinos_options -D TPL_ENABLE_BLAS=ON -D BLAS_LIBRARY_NAMES=openblas -D BLAS_LIBRARY_DIRS=$1/OPENBLAS/lib -D TPL_ENABLE_LAPACK=ON -D LAPACK_LIBRARY_NAMES=openblas -D LAPACK_LIBRARY_DIRS=$1/OPENBLAS/lib -D TPL_ENABLE_Netcdf=OFF -DTPL_ENABLE_GLM=OFF -D TPL_ENABLE_X11=OFF "
configure_options_superlu="$configure_options_superlu -Denable_blaslib=OFF -DTPL_BLAS_LIBRARIES=$1/OPENBLAS/lib/libopenblas.a "
configure_options_hypre="--with-blas-libs=-lopenblas --with-blas-lib-dirs=$1/OPENBLAS/lib --with-lapack-libs=-lopenblas --with-lapack-lib-dirs=$1/OPENBLAS/lib "
configure_options_scalapack="$configure_options_scalapack -D LAPACK_LIBRARIES=$1/OPENBLAS/lib/libopenblas.a -D BLAS_LIBRARIES=$1/OPENBLAS/lib/libopenblas.a"
### Here we install OpenBLAS and SUITESPARSE
fi
if [ -d "$1/PARMETIS" ]; then
configure_options="$configure_options --with-parmetis=yes --with-parmetis-dir=$1/PARMETIS/ "
......@@ -39,11 +33,7 @@ if [ -d "$1/HDF5" ]; then
configure_options="$configure_options --with-hdf5=yes --with-hdf5-dir=$1/HDF5 "
fi
if [ -d "$1/SUITESPARSE" ]; then
configure_options="$configure_options --with-suitesparse=yes --with-suitesparse-dir=$1/SUITESPARSE "
fi
if [ -d "$1/BOOST" ]; then
if [ -d "$1/BOOST" ]; then
configure_options="$configure_options --with-boost=yes --with-boost-dir=$1/BOOST "
fi
......@@ -52,9 +42,35 @@ if [ -d "$1/MPI" ]; then
fi
### It seem that the PETSC --download-packege option has several problems and cannot produce
### a valid compilation command for most of the package + it seem also seem that some library
### a valid compilation command for most of the packages + it seem also that some library
### are compiled without optimization enabled, so we provide manual installation for that packages
if [ ! -d "$1/OPENBLAS" ]; then
./script/install_OPENBLAS.sh $1
if [ $? -eq 0 ]; then
configure_options="$configure_options --with-blas-lib=$1/OPENBLAS/lib/libopenblas.a --with-lapack-lib=$1/OPENBLAS/lib/libopenblas.a"
configure_trilinos_options="$configure_trilinos_options -D TPL_ENABLE_BLAS=ON -D BLAS_LIBRARY_NAMES=openblas -D BLAS_LIBRARY_DIRS=$1/OPENBLAS/lib -D TPL_ENABLE_LAPACK=ON -D LAPACK_LIBRARY_NAMES=openblas -D LAPACK_LIBRARY_DIRS=$1/OPENBLAS/lib -D TPL_ENABLE_Netcdf=OFF -DTPL_ENABLE_GLM=OFF -D TPL_ENABLE_X11=OFF "
configure_options_superlu="$configure_options_superlu -Denable_blaslib=OFF -DTPL_BLAS_LIBRARIES=$1/OPENBLAS/lib/libopenblas.a "
configure_options_hypre="--with-blas-libs=-lopenblas --with-blas-lib-dirs=$1/OPENBLAS/lib --with-lapack-libs=-lopenblas --with-lapack-lib-dirs=$1/OPENBLAS/lib "
configure_options_scalapack="$configure_options_scalapack -D LAPACK_LIBRARIES=$1/OPENBLAS/lib/libopenblas.a -D BLAS_LIBRARIES=$1/OPENBLAS/lib/libopenblas.a"
fi
else
configure_options="$configure_options --with-blas-lib=$1/OPENBLAS/lib/libopenblas.a --with-lapack-lib=$1/OPENBLAS/lib/libopenblas.a"
configure_trilinos_options="$configure_trilinos_options -D TPL_ENABLE_BLAS=ON -D BLAS_LIBRARY_NAMES=openblas -D BLAS_LIBRARY_DIRS=$1/OPENBLAS/lib -D TPL_ENABLE_LAPACK=ON -D LAPACK_LIBRARY_NAMES=openblas -D LAPACK_LIBRARY_DIRS=$1/OPENBLAS/lib -D TPL_ENABLE_Netcdf=OFF -DTPL_ENABLE_GLM=OFF -D TPL_ENABLE_X11=OFF "
configure_options_superlu="$configure_options_superlu -Denable_blaslib=OFF -DTPL_BLAS_LIBRARIES=$1/OPENBLAS/lib/libopenblas.a "
configure_options_hypre="--with-blas-libs=-lopenblas --with-blas-lib-dirs=$1/OPENBLAS/lib --with-lapack-libs=-lopenblas --with-lapack-lib-dirs=$1/OPENBLAS/lib "
configure_options_scalapack="$configure_options_scalapack -D LAPACK_LIBRARIES=$1/OPENBLAS/lib/libopenblas.a -D BLAS_LIBRARIES=$1/OPENBLAS/lib/libopenblas.a"
fi
if [ ! -d "$1/SUITESPARSE" ]; then
./script/install_SUITESPARSE.sh $1
if [ $? -eq 0 ]; then
configure_options="$configure_options --with-suitesparse=yes --with-suitesparse-dir=$1/SUITESPARSE "
fi
else
configure_options="$configure_options --with-suitesparse=yes --with-suitesparse-dir=$1/SUITESPARSE "
fi
if [ ! -d "$1/TRILINOS" ]; then
rm trilinos-12.6.1-Source.tar.gz
rm -rf trilinos-12.6.1-Source
......@@ -150,7 +166,10 @@ if [ ! -d "$1/MUMPS" ]; then
mkdir $1/MUMPS
cp -r include $1/MUMPS
cp -r lib $1/MUMPS
configure_options="$configure_options --with-mumps=yes --with-mumps-lib=\"$1/MUMPS/lib/libdmumps.a $1/MUMPS/lib/libmumps_common.a $1/MUMPS/lib/libpord.a\" --with-mumps-include=$1/MUMPS/include"
configure_options="$configure_options --with-mumps=yes --with-mumps-include=$1/MUMPS/include"
MUMPS_extra_lib="$1/MUMPS/lib/libdmumps.a $1/MUMPS/lib/libmumps_common.a $1/MUMPS/lib/libpord.a"
fi
else
......
......@@ -227,17 +227,17 @@ else
echo -e "mpirun $major.$middle.$minor \033[92;1m SUCCESS \033[0m"
MPI_valid=yes
elif [ $major -lt 1 ]; then
echo -e "mpirun $major.$middle.$minor \033[91;5;1m FAILED \033[0m is too old, 1.8.1 at least required"
echo -e "mpirun $major.$middle.$minor \033[33;5;1m WARNING \033[0m is too old, 1.8.1 at least required, (Automatic fix activated)"
elif [ $middle -gt 8 ]; then
echo -e "mpirun $major.$middle.$minor \033[92;1m SUCCESS \033[0m"
MPI_valid=yes
elif [ $middle -lt 8 ]; then
echo -e "mpirun $major.$middle.$minor \033[91;5;1m FAILED \033[0m is too old, 1.8.1 at least required"
echo -e "mpirun $major.$middle.$minor \033[33;5;1m WARNING \033[0m is too old, 1.8.1 at least required (Automatic fix activated)"
elif [ $minor -gt 0 ]; then
echo -e "mpirun $major.$middle.$minor \033[92;1m SUCCESS \033[0m"
MPI_valid=yes
else
echo -e "mpirun $major.$middle.$minor \033[91;5;1m FAILED \033[0m is too old, 1.8.1 at least required"
echo -e "mpirun $major.$middle.$minor \033[33;5;1m WARNING \033[0m is too old, 1.8.1 at least required, (Automatic fix activated)"
fi
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment