Skip to content
Snippets Groups Projects
Commit 86fecff3 authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Updating SuiteSparse 5.10

parent 8d856974
No related branches found
No related tags found
No related merge requests found
Pipeline #3909 failed
......@@ -6,21 +6,21 @@ source script/discover_os
discover_os
# check if the directory $1/SUITESPARSE exist
rm -rf SuiteSparse-5.7.2
rm -rf SuiteSparse-5.10.1
if [ -d "$1/SUITESPARSE" -a -f "$1/SUITESPARSE/include/umfpack.h" ]; then
echo "SUITESPARSE is already installed"
exit 0
fi
rm SuiteSparse-5.7.2.tar.gz
wget http://ppmcore.mpi-cbg.de/upload/SuiteSparse-5.7.2.tar.gz
rm SuiteSparse-5.10.1.tar.gz
wget http://ppmcore.mpi-cbg.de/upload/SuiteSparse-5.10.1.tar.gz
rm -rf SuiteSparse
tar -xf SuiteSparse-5.7.2.tar.gz
tar -xf SuiteSparse-5.10.1.tar.gz
if [ $? != 0 ]; then
echo "Failed to download SuiteSparse"
exit 1
fi
cd SuiteSparse-5.7.2
cd SuiteSparse-5.10.1
if [ x"$CXX" == x"icpc" ]; then
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/$1/OPENBLAS/lib"
......@@ -45,5 +45,5 @@ make library "CC=$CC" "CXX=$CXX" "CUDA=no" "INSTALL=$1/SUITESPARSE" "INSTALL_LIB
echo "Making install"
make install "CC=$CC" "CXX=$CXX" "CUDA=no" "INSTALL=$1/SUITESPARSE" "INSTALL_LIB=$1/SUITESPARSE/lib" "INSTALL_INCLUDE=$1/SUITESPARSE/include" "BLAS=-L$1/OPENBLAS/lib -lopenblas -pthread" "LAPACK="
# Mark the installation
echo 2 > $1/SUITESPARSE/version
rm SuiteSparse-5.7.2.tar.gz
echo 3 > $1/SUITESPARSE/version
rm SuiteSparse-5.10.1.tar.gz
......@@ -131,9 +131,9 @@ function remove_old()
if [ -d $1/SUITESPARSE ]; then
version=$(cat $1/SUITESPARSE/version)
if [ x"$version" != x"2" ]; then
if [ x"$version" != x"3" ]; then
echo -e "\033[1;34;5m ------------------------------------------------------------------------------------------- \033[0m"
echo -e "\033[1;34;5m SuiteSparse has been updated to version 5.8.1, the component will be updated automatically \033[0m"
echo -e "\033[1;34;5m SuiteSparse has been updated to version 5.10.1, the component will be updated automatically \033[0m"
echo -e "\033[1;34;5m ------------------------------------------------------------------------------------------- \033[0m"
sleep 5
rm -rf $1/SUITESPARSE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment