Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openfpm_pdata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
argupta
openfpm_pdata
Commits
c29f3960
Commit
c29f3960
authored
6 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Fixing SUITESPARSE installation
parent
3ab5028d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
script/install_PETSC.sh
+0
-244
0 additions, 244 deletions
script/install_PETSC.sh
script/install_SUITESPARSE.sh
+1
-1
1 addition, 1 deletion
script/install_SUITESPARSE.sh
with
1 addition
and
245 deletions
script/install_PETSC.sh
+
0
−
244
View file @
c29f3960
...
...
@@ -48,25 +48,12 @@ fi
MUMPS_extra_libs
=
""
configure_options
=
""
configure_options_scalapack
=
""
configure_options_superlu
=
""
configure_trilinos_options
=
" -D TPL_ENABLE_MPI=ON "
configure_options_hypre
=
""
### Here we install OpenBLAS and SUITESPARSE
#if [ -d "$1/PARMETIS" ]; then
# if [ x"$CXX" != x"icpc" ]; then
# configure_options="$configure_options --with-parmetis=yes --with-parmetis-dir=$1/PARMETIS "
# fi
# configure_options_superlu="-DTPL_PARMETIS_INCLUDE_DIRS=$1/PARMETIS/include;$1/METIS/include -DTPL_PARMETIS_LIBRARIES=$1/PARMETIS/lib/libparmetis.a;$1/METIS/lib/libmetis.so $configure_options_superlu"
#fi
#if [ -d "$1/METIS" ]; then
# configure_options="$configure_options --with-metis=yes --with-metis-dir=$1/METIS "
#fi
configure_options
=
"
$configure_options
--download-metis --download-parmetis"
if
[
-d
"
$1
/BOOST"
]
;
then
...
...
@@ -92,22 +79,12 @@ if [ ! -d "$1/OPENBLAS" ]; then
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 "
if
[
x
"
$CXX
"
==
x
"icpc"
-a
x
"
$platform
"
!=
x
"OSX"
]
;
then
configure_options_scalapack
=
"
$configure_options_scalapack
-D LAPACK_LIBRARIES=
$1
/OPENBLAS/lib/libopenblas.a -D BLAS_LIBRARIES=
$1
/OPENBLAS/lib/libopenblas.a;libgfortran.so "
else
configure_options_scalapack
=
"
$configure_options_scalapack
-D LAPACK_LIBRARIES=
$1
/OPENBLAS/lib/libopenblas.a -D BLAS_LIBRARIES=
$1
/OPENBLAS/lib/libopenblas.a"
fi
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 "
if
[
x
"
$CXX
"
==
x
"icpc"
-a
x
"
$platform
"
!=
x
"OSX"
]
;
then
configure_options_scalapack
=
"
$configure_options_scalapack
-D LAPACK_LIBRARIES=
$1
/OPENBLAS/lib/libopenblas.a -D BLAS_LIBRARIES=
$1
/OPENBLAS/lib/libopenblas.a;libgfortran.so "
else
configure_options_scalapack
=
"
$configure_options_scalapack
-D LAPACK_LIBRARIES=
$1
/OPENBLAS/lib/libopenblas.a -D BLAS_LIBRARIES=
$1
/OPENBLAS/lib/libopenblas.a"
fi
fi
if
[
!
-d
"
$1
/SUITESPARSE"
]
;
then
...
...
@@ -119,229 +96,8 @@ else
configure_options
=
"
$configure_options
--with-suitesparse=yes --with-suitesparse-dir=
$1
/SUITESPARSE "
fi
# Install NETCFD
#if [ -d "$1/NETCDF" ]; then
# echo "NETCDF is already installed"
# configure_options="$configure_options --with-netcdf=yes -with-netcdf-dir=$1/NETCDF --with-hdf5=yes --with-hdf5-dir=$1/HDF5 "
#else
# if [ -d "$1/HDF5" ]; then
# configure_options="$configure_options --with-hdf5=yes --with-hdf5-dir=$1/HDF5 "
# else
# ./script/install_HDF5.sh $1 $2
# if [ $? -eq 0 ]; then
# configure_options="$configure_options --with-hdf5=yes --with-hdf5-dir=$1/HDF5 "
# fi
# fi
# rm netcdf-4.4.1.1.tar.gz
# rm -rf netcdf-4.4.1.1
# wget http://ppmcore.mpi-cbg.de/upload/netcdf-4.4.1.1.tar.gz
# if [ $? -ne 0 ]; then
# echo -e "\033[91;5;1m FAILED! Installation requires an Internet connection \033[0m"
# exit 1
# fi
# tar -xf netcdf-4.4.1.1.tar.gz
# cd netcdf-4.4.1.1
# if [ -d "$1/HDF5/lib" ]; then
# lib_path="$1/HDF5/lib"
# elif [ -d "$1/HDF5/lib64" ]; then
# lib_path="$1/HDF5/lib64"
# fi
# if [ x"$platform" == x"cygwin" ]; then
# ./configure CC=mpicc CPPFLAGS="-I$1/HDF5/include -I$1/ZLIB/include " LDFLAGS="-L$lib_path -L$1/ZLIB/lib" --disable-netcdf-4 --disable-dap --disable-shared --prefix=$1/NETCDF
# else
# ./configure CC=mpicc CPPFLAGS="-I$1/HDF5/include -I$1/ZLIB/include " LDFLAGS="-L$lib_path -L$1/ZLIB/lib" --disable-dap --disable-shared --prefix=$1/NETCDF
# fi
# make -j $2
# if [ $? -eq 0 ]; then
# make install
# configure_options="$configure_options --with-netcdf=yes -with-netcdf-dir=$1/NETCDF "
# else
# echo -e "\033[91;5;1m FAILED! NETCDF Installation \033[0m"
# exit 1
# fi
#fi
#if [ ! -d "$1/TRILINOS" ]; then
# rm trilinos-12.10.1-Source.tar.gz
# rm -rf trilinos-12.10.1-Source
# wget http://ppmcore.mpi-cbg.de/upload/trilinos-12.10.1-Source.tar.gz
# if [ $? -ne 0 ]; then
# echo -e "\033[91;5;1m FAILED! Installation requires an Internet connection \033[0m"
# exit 1
# fi
# tar -xf trilinos-12.10.1-Source.tar.gz
# cd trilinos-12.10.1-Source
# mkdir build
## Apply patch
# wget http://ppmcore.mpi-cbg.de/upload/trilinos_cygwin_comb
# patch -p0 -R < trilinos_cygwin_comb
# cd build
### On clang we have no openMP
# petsc_openmp=""
# if [ x"$CXX" == x"clang++" ]; then
# conf_trl_openmp="-D Trilinos_ENABLE_OpenMP=OFF"
# elif [ x"$CXX" == x"icpc" ]; then
# configure_trilinos_options="$configure_trilinos_options -D Trilinos_ENABLE_Xpetra=OFF -D Trilinos_ENABLE_Amesos2=OFF -D Trilinos_ENABLE_Ifpack2=OFF -D Trilinos_ENABLE_Teko=OFF "
# else
# conf_trl_openmp="-D Trilinos_ENABLE_OpenMP=ON"
# petsc_openmp="--with-openmp=yes"
# fi
# if [ x"$platform" == x"cygwin" ]; then
# configure_trilinos_options="$configure_trilinos_options -D Trilinos_CXX11_FLAGS=-std=gnu++11 "
# fi
# cmake -D CMAKE_INSTALL_PREFIX:PATH=$1/TRILINOS -D CMAKE_BUILD_TYPE=RELEASE $conf_trl_openmp -D Trilinos_ENABLE_TESTS=OFF -D Trilinos_ENABLE_ALL_PACKAGES=ON $configure_trilinos_options ../.
# cmake -D CMAKE_INSTALL_PREFIX:PATH=$1/TRILINOS -D CMAKE_BUILD_TYPE=RELEASE $conf_trl_openmp -D Trilinos_ENABLE_TESTS=OFF -D Trilinos_ENABLE_ALL_PACKAGES=ON $configure_trilinos_options ../.
# make -j $2
# if [ $? -eq 0 ]; then
# make install
# Mark the installation
# echo 1 > $1/TRILINOS/version
# configure_options="$configure_options --with-trilinos=yes -with-trilinos-dir=$1/TRILINOS"
# fi
#else
# echo "Trilinos is already installed"
# configure_options="$configure_options --with-trilinos=yes -with-trilinos-dir=$1/TRILINOS"
#fi
configure_options
=
"
$configure_options
--download-scalapack --download-mumps"
### MUMPS installation
#if [ x"$CXX" != x"icpc" ]; then
# if [ ! -d "$1/MUMPS" ]; then
# rm MUMPS_5.1.2.tar.gz
# rm -rf MUMPS_5.1.2
# wget http://openfpm.mpi-cbg.de/upload/MUMPS_5.1.2.tar.gz
# if [ $? -ne 0 ]; then
# echo -e "\033[91;5;1m FAILED! Installation requires an Internet connection \033[0m"
# exit 1
# fi
# tar -xf MUMPS_5.1.2.tar.gz
# cd MUMPS_5.1.2
# cp Make.inc/Makefile.inc.generic Makefile.inc
# Installation for linux
# $sed_command -i "/CC\s\+=\scc/c\CC = mpicc" Makefile.inc
# $sed_command -i "/FC\s\+=\sf90/c\FC = mpif90" Makefile.inc
# $sed_command -i "/FL\s\+=\sf90/c\FL = mpif90" Makefile.inc
# $sed_command -i "/SCALAP\s\+=\s-lscalapack\s-lblacs/c\SCALAP = -L$1/SCALAPACK/lib -L$1/OPENBLAS/lib -lscalapack" Makefile.inc
# $sed_command -i "/LIBBLAS\s\+=\s\-lopenblas/c\LIBBLAS = -lopenblas" Makefile.inc
# $sed_command -i "/OPTF\s\+=\s\-O/c\OPTF = -fpic -O3" Makefile.inc
# $sed_command -i "/OPTC\s\+=\s\-O\s-I./c\OPTC = -fpic -O3 -I." Makefile.inc
# $sed_command -i "/OPTL\s\+=\s\-O/c\OPTL = -fpic -O3" Makefile.inc
# $sed_command -i "/LIBBLAS\s=\s-lblas/c\LIBBLAS = -lopenblas" Makefile.inc
# $sed_command -i "/INCPAR\s\+=\s\-I\/usr\/include/c\INCPAR =" Makefile.inc
# $sed_command -i "/LIBPAR\s\+=\s\$(SCALAP)\s\-L\/usr\/lib\s\-lmpi/c\LIBPAR = \$(SCALAP)" Makefile.inc
# make -j $2
# if [ $? -eq 0 ]; then
## Copy LIB and include in the target directory
# mkdir $1/MUMPS
# cp -r include $1/MUMPS
# cp -r lib $1/MUMPS
# MUMPS_extra_lib="-L$1/MUMPS/lib -ldmumps -lmumps_common -lpord -pthread "
# configure_options="$configure_options --with-mumps=yes --with-mumps-include=$1/MUMPS/include/"
# fi
# else
# echo "MUMPS is already installed"
# MUMPS_extra_lib="-L$1/MUMPS/lib -ldmumps -lmumps_common -lpord -pthread "
# configure_options="$configure_options --with-mumps=yes --with-mumps-include=$1/MUMPS/include/"
# fi
#fi
## SuperLU installation
#if [ ! -d "$1/SUPERLU_DIST" ]; then
# rm superlu_dist_5.1.3.tar.gz
# rm -rf SuperLU_DIST_5.1.3
# wget http://ppmcore.mpi-cbg.de/upload/superlu_dist_5.1.3.tar.gz
# if [ $? -ne 0 ]; then
# echo -e "\033[91;5;1m FAILED! Installation requires an Internet connection \033[0m"
# exit 1
# fi
# tar -xf superlu_dist_5.1.3.tar.gz
# cd SuperLU_DIST_5.1.3
# mkdir build
# cd build
# if [ x"$platform" == x"cygwin" ]; then
# cmake .. -DCMAKE_C_FLAGS="-fPIC -std=c99 " -DTPL_BLAS_LIBRARIES="$1/OPENBLAS/lib/libopenblas.a" -DCMAKE_INSTALL_PREFIX="$1/SUPERLU_DIST" -DTPL_PARMETIS_INCLUDE_DIRS="$1/PARMETIS/include/;$1/METIS/include/" -DTPL_PARMETIS_LIBRARIES="$1/PARMETIS/lib/libparmetis.a;$1/METIS/lib/libmetis.dll.a;-lmpi;-lopen-rte;-lopen-pal"
# else
# cmake .. -DCMAKE_C_FLAGS="-fPIC -std=c99 " -DTPL_BLAS_LIBRARIES="$1/OPENBLAS/lib/libopenblas.a" -DCMAKE_INSTALL_PREFIX="$1/SUPERLU_DIST" -DTPL_PARMETIS_INCLUDE_DIRS="$1/PARMETIS/include/;$1/METIS/include/" -DTPL_PARMETIS_LIBRARIES="$1/PARMETIS/lib/libparmetis.a;$1/METIS/lib/libmetis.so"
# fi
# Installation for linux
# make
# if [ $? -eq 0 ]; then
# make install
# echo 1 > $1/SUPERLU_DIST/version
# if [ x"$CXX" == x"icpc" ]; then
# configure_options="$configure_options"
# else
# configure_options="$configure_options --with-superlu_dist=yes --with-superlu_dist-lib=$1/SUPERLU_DIST/lib/libsuperlu_dist.a --with-superlu_dist-include=$1/SUPERLU_DIST/include/"
# fi
# fi
#else
# echo "SUPERLU is already installed"
# if [ x"$CXX" == x"icpc" ]; then
# configure_options="$configure_options"
# else
# configure_options="$configure_options --with-superlu_dist=yes --with-superlu_dist-lib=$1/SUPERLU_DIST/lib/libsuperlu_dist.a --with-superlu_dist-include=$1/SUPERLU_DIST/include/"
# fi
#fi
configure_options
=
"
$configure_options
--download-superlu_dist"
## HYPRE installation
#if [ ! -d "$1/HYPRE" ]; then
# rm hypre-2.11.2.tar.gz
# rm -rf hypre-2.11.2
# wget http://ppmcore.mpi-cbg.de/upload/hypre-2.11.2.tar.gz
# if [ $? -ne 0 ]; then
# echo -e "\033[91;5;1m FAILED! Installation requires an Internet connection \033[0m"
# exit 1
# fi
# tar -xf hypre-2.11.2.tar.gz
# cd hypre-2.11.2
#
# cd src
#
# ./configure CC=mpicc CXX=mpic++ CFLAGS=-fpic $configure_options_hypre --prefix=$1/HYPRE
# make -j $2
# if [ $? -eq 0 ]; then
# make install
# echo 1 > $1/HYPRE/version
# configure_options="$configure_options --with-hypre=yes -with-hypre-dir=$1/HYPRE"
# fi
#else
# echo "HYPRE is already installed"
# configure_options="$configure_options --with-hypre=yes -with-hypre-dir=$1/HYPRE"
#fi
configure_options
=
"
$configure_options
--download-hypre"
rm
petsc-lite-3.10.2.tar.gz
...
...
This diff is collapsed.
Click to expand it.
script/install_SUITESPARSE.sh
+
1
−
1
View file @
c29f3960
...
...
@@ -34,7 +34,7 @@ if [ x"$platform" == x"cygwin" ]; then
fi
echo
"Compiling SuiteSparse without CUDA (old variable
$CUDA
)"
LDLIBS
=
"
$STS_LIB
-lm"
LD_LIBRARY_PATH
=
"
$LD_LIBRARY_PATH
:
$1
/OPENBLAS/lib"
make
-j
$2
"CUDA=no"
"BLAS=-L
$1
/OPENBLAS/lib -lopenblas -pthread"
"LAPACK="
LDLIBS
=
"
$STS_LIB
-lm"
LD_LIBRARY_PATH
=
"
$LD_LIBRARY_PATH
:
$1
/OPENBLAS/lib"
make
-j
$2
"CUDA=no"
"BLAS=-L
$1
/OPENBLAS/lib -lopenblas -pthread"
"LAPACK=
-lopenblas
"
if
[
$?
!=
0
]
;
then
echo
"Failed to compile SuiteSparse"
exit
1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment