Commit 54df4224 authored by incardon's avatar incardon

Fixing installation of OpenBLAS with intel compiler + moving SuiteSparse to 5.4

parent 3ff0c661
......@@ -17,7 +17,7 @@ cd OpenBLAS-0.2.20
# configuration
make
make FC=$FC CC=$CC
mkdir $1/OPENBLAS
make install PREFIX=$1/OPENBLAS
......
......@@ -94,20 +94,22 @@ else
configure_options="$configure_options --with-blas-lib=$1/OPENBLAS/lib/libopenblas.a --with-lapack-lib=$1/OPENBLAS/lib/libopenblas.a"
fi
if [ ! -d "$1/SUITESPARSE" ]; then
if [ -d "$1/SUITESPARSE" -a -f "$1/SUITESPARSE/include/umfpack.h" ]; then
CXX="$CXX" CC="$CC" FC="$FC" F77="$F77" ./script/install_SUITESPARSE.sh $1 $2
fi
#### OK here we check if we can configure work with SUITESPARSE
echo "Testing if PETSC work with SUITESPARSE"
configure_options2="$configure_options --with-suitesparse=yes --with-suitesparse-dir=$1/SUITESPARSE "
test_configure_options
if [ $error -eq 0 ]; then
configure_options="$configure_options --with-suitesparse=yes --with-suitesparse-dir=$1/SUITESPARSE "
if [ -d "$1/SUITESPARSE" -a -f "$1/SUITESPARSE/include/umfpack.h" ]; then
echo "Testing if PETSC work with SUITESPARSE"
configure_options2="$configure_options --with-suitesparse=yes --with-suitesparse-dir=$1/SUITESPARSE "
test_configure_options
if [ $error -eq 0 ]; then
echo "SUITESPARSE work with PETSC"
configure_options="$configure_options --with-suitesparse=yes --with-suitesparse-dir=$1/SUITESPARSE "
fi
fi
configure_options="$configure_options --download-scalapack --download-mumps"
configure_options="$configure_options --download-superlu_dist"
configure_options="$configure_options --download-hypre"
......
......@@ -12,9 +12,10 @@ if [ -d "$1/SUITESPARSE" -a -f "$1/SUITESPARSE/include/umfpack.h" ]; then
exit 0
fi
wget http://ppmcore.mpi-cbg.de/upload/SuiteSparse-5.3.0.tar.gz
rm SuiteSparse-5.4.0.tar.gz
wget http://ppmcore.mpi-cbg.de/upload/SuiteSparse-5.4.0.tar.gz
rm -rf SuiteSparse
tar -xf SuiteSparse-5.3.0.tar.gz
tar -xf SuiteSparse-5.4.0.tar.gz
if [ $? != 0 ]; then
echo "Failed to download SuiteSparse"
exit 1
......@@ -43,4 +44,4 @@ make install "CUDA=no" "INSTALL=$1/SUITESPARSE" "INSTALL_LIB=$1/SUITESPARSE/lib"
# Mark the installation
echo 1 > $1/SUITESPARSE/version
rm -rf SuiteSparse
rm SuiteSparse-5.3.0.tar.gz
rm SuiteSparse-5.4.0.tar.gz
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