Forked from
Sbalzarini Lab / Software / Parallel Computing / OpenFPM / openfpm_pdata
2722 commits behind the upstream repository.
-
Pietro Incardona authoredPietro Incardona authored
install_SUITESPARSE.sh 1.15 KiB
#! /bin/bash
source script/detect_gcc
source script/discover_os
discover_os
# check if the directory $1/SUITESPARSE exist
if [ -d "$1/SUITESPARSE" ]; then
echo "SUITESPARSE is already installed"
exit 0
fi
wget http://ppmcore.mpi-cbg.de/upload/SuiteSparse-4.5.5.tar.gz
rm -rf SuiteSparse
tar -xf SuiteSparse-4.5.5.tar.gz
if [ $? != 0 ]; then
echo "Failed to download SuiteSparse"
exit 1
fi
cd SuiteSparse
if [ x"$CXX" == x"icpc" ]; then
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/$1/OPENBLAS/lib"
STS_LIB="-shared-intel -lrt -lifcore"
fi
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$1/OPENBLAS/lib"
if [ x"$platform" == x"cygwin" ]; then
export PATH="$PATH:$(pwd)/lib"
echo "$PATH"
fi
echo "Compiling SuiteSparse without CUDA (old variable $CUDA)"
make "CUDA=no" "BLAS=-L$1/OPENBLAS/lib -lopenblas" "LAPACK="
if [ $? != 0 ]; then
echo "Failed to compile SuiteSparse"
exit 1
fi
make install "CUDA=no" "INSTALL=$1/SUITESPARSE" "INSTALL_LIB=$1/SUITESPARSE/lib" "INSTALL_INCLUDE=$1/SUITESPARSE/include" "BLAS=-L$1/OPENBLAS/lib -lopenblas" "LAPACK="
# Mark the installation
echo 1 > $1/SUITESPARSE/version
rm -rf SuiteSparse
rm SuiteSparse-4.5.5.tar.gz