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

Downgrade to SuiteSparse 5.7.2

parent 42d97bc6
No related branches found
No related tags found
No related merge requests found
Pipeline #3912 failed
......@@ -6,21 +6,21 @@ source script/discover_os
discover_os
# check if the directory $1/SUITESPARSE exist
rm -rf SuiteSparse-5.10.1
rm -rf SuiteSparse-5.7.2
if [ -d "$1/SUITESPARSE" -a -f "$1/SUITESPARSE/include/umfpack.h" ]; then
echo "SUITESPARSE is already installed"
exit 0
fi
rm SuiteSparse-5.10.1.tar.gz
wget http://ppmcore.mpi-cbg.de/upload/SuiteSparse-5.10.1.tar.gz
rm SuiteSparse-5.7.2.tar.gz
wget http://ppmcore.mpi-cbg.de/upload/SuiteSparse-5.7.2.tar.gz
rm -rf SuiteSparse
tar -xf SuiteSparse-5.10.1.tar.gz
tar -xf SuiteSparse-5.7.2.tar.gz
if [ $? != 0 ]; then
echo "Failed to download SuiteSparse"
exit 1
fi
cd SuiteSparse-5.10.1
cd SuiteSparse-5.7.2
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 3 > $1/SUITESPARSE/version
rm SuiteSparse-5.10.1.tar.gz
echo 4 > $1/SUITESPARSE/version
rm SuiteSparse-5.7.2.tar.gz
......@@ -131,9 +131,9 @@ function remove_old()
if [ -d $1/SUITESPARSE ]; then
version=$(cat $1/SUITESPARSE/version)
if [ x"$version" != x"3" ]; then
if [ x"$version" != x"4" ]; then
echo -e "\033[1;34;5m ------------------------------------------------------------------------------------------- \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 SuiteSparse has been updated to version 5.7.2, the component will be updated automatically \033[0m"
echo -e "\033[1;34;5m ------------------------------------------------------------------------------------------- \033[0m"
sleep 5
rm -rf $1/EIGEN
......
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