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
3ab5028d
Commit
3ab5028d
authored
6 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Fixing install PETSC
parent
cd3cb602
No related branches found
No related tags found
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
install
+1
-36
1 addition, 36 deletions
install
script/install_PETSC.sh
+210
-228
210 additions, 228 deletions
script/install_PETSC.sh
script/install_SUITESPARSE.sh
+3
-3
3 additions, 3 deletions
script/install_SUITESPARSE.sh
script/remove_old
+6
-26
6 additions, 26 deletions
script/remove_old
with
220 additions
and
293 deletions
install
+
1
−
36
View file @
3ab5028d
...
@@ -211,7 +211,7 @@ echo -e "Installing requirements into: $i_dir "
...
@@ -211,7 +211,7 @@ echo -e "Installing requirements into: $i_dir "
### Installing PETSC
### Installing PETSC
if
[
!
-d
"
$i_dir
/PETSC"
-o
!
-d
"
$i_dir
/EIGEN"
]
;
then
if
[
!
-d
"
$i_dir
/PETSC"
-o
!
-f
"
$i_dir
/PETSC/include/petsc.h"
-o
!
-d
"
$i_dir
/EIGEN"
]
;
then
echo
-e
"
\0
33[1;34m Optional packages
\0
33[0m"
echo
-e
"
\0
33[1;34m Optional packages
\0
33[0m"
echo
-e
"
\0
33[1mDo you want to install linear algebra packages ?(y/n)
\0
33[0m"
echo
-e
"
\0
33[1mDo you want to install linear algebra packages ?(y/n)
\0
33[0m"
echo
"Installation can take long time (90 minutes on i7-3612QM 4 cores)"
echo
"Installation can take long time (90 minutes on i7-3612QM 4 cores)"
...
@@ -522,13 +522,6 @@ echo -e "\033[1;34;5m -------------------------------- \033[0m"
...
@@ -522,13 +522,6 @@ echo -e "\033[1;34;5m -------------------------------- \033[0m"
installation_report
=
""
installation_report
=
""
if
[
-d
"
$i_dir
/TRILINOS"
]
;
then
installation_report
=
"
$installation_report
\0
33[92;1mTRILINOS
\0
33[0m Installed:
\0
33[1m
$i_dir
/TRILINOS
\0
33[0m
\n
"
bash_library
=
"
$bash_library
:
$i_dir
/TRILINOS/lib"
else
installation_report
=
"
$installation_report
\0
33[91;1mTRILINOS
\0
33[0m Installed:
\0
33[1m NO
\0
33[0m
\n
"
fi
if
[
-d
"
$i_dir
/OPENBLAS"
]
;
then
if
[
-d
"
$i_dir
/OPENBLAS"
]
;
then
installation_report
=
"
$installation_report
\0
33[92;1mOPENBLAS
\0
33[0m Installed:
\0
33[1m
$i_dir
/OPENBLAS
\0
33[0m
\n
"
installation_report
=
"
$installation_report
\0
33[92;1mOPENBLAS
\0
33[0m Installed:
\0
33[1m
$i_dir
/OPENBLAS
\0
33[0m
\n
"
bash_library
=
"
$bash_library
:
$i_dir
/OPENBLAS/lib"
bash_library
=
"
$bash_library
:
$i_dir
/OPENBLAS/lib"
...
@@ -543,34 +536,6 @@ else
...
@@ -543,34 +536,6 @@ else
installation_report
=
"
$installation_report
\0
33[91;1mSUITESPARSE
\0
33[0m Installed:
\0
33[1m NO
\0
33[0m
\n
"
installation_report
=
"
$installation_report
\0
33[91;1mSUITESPARSE
\0
33[0m Installed:
\0
33[1m NO
\0
33[0m
\n
"
fi
fi
if
[
-d
"
$i_dir
/SCALAPACK"
]
;
then
installation_report
=
"
$installation_report
\0
33[92;1mSCALAPACK
\0
33[0m Installed:
\0
33[1m
$i_dir
/SCALAPACK
\0
33[0m
\n
"
bash_library
=
"
$bash_library
:
$i_dir
/SCALAPACK/lib"
else
installation_report
=
"
$installation_report
\0
33[91;1mSCALAPACK
\0
33[0m Installed:
\0
33[1m NO
\0
33[0m
\n
"
fi
if
[
-d
"
$i_dir
/MUMPS"
]
;
then
installation_report
=
"
$installation_report
\0
33[92;1mMUMPS
\0
33[0m Installed:
\0
33[1m
$i_dir
/MUMPS
\0
33[0m
\n
"
bash_library
=
"
$bash_library
:
$i_dir
/MUMPS/lib"
else
installation_report
=
"
$installation_report
\0
33[91;1mMUMPS
\0
33[0m Installed:
\0
33[1m NO
\0
33[0m
\n
"
fi
if
[
-d
"
$i_dir
/SUPERLU_DIST"
]
;
then
installation_report
=
"
$installation_report
\0
33[92;1mSUPERLU_DIST
\0
33[0m Installed:
\0
33[1m
$i_dir
/SUPERLU_DIST
\0
33[0m
\n
"
bash_library
=
"
$bash_library
:
$i_dir
/SUPERLU_DIST/lib"
else
installation_report
=
"
$installation_report
\0
33[91;1mSUPERLU_DIST
\0
33[0m Installed:
\0
33[1m NO
\0
33[0m
\n
"
fi
if
[
-d
"
$i_dir
/HYPRE"
]
;
then
installation_report
=
"
$installation_report
\0
33[92;1mHYPRE
\0
33[0m Installed:
\0
33[1m
$i_dir
/HYPRE
\0
33[0m
\n
"
bash_library
=
"
$bash_library
:
$i_dir
/HYPRE/lib"
else
installation_report
=
"
$installation_report
\0
33[91;1mHYPRE
\0
33[0m Installed:
\0
33[1m NO
\0
33[0m
\n
"
fi
bash_path
=
"
$bash_path
\$
PATH
\"
"
bash_path
=
"
$bash_path
\$
PATH
\"
"
bash_library
=
"
$bash_library
\"
"
bash_library
=
"
$bash_library
\"
"
...
...
This diff is collapsed.
Click to expand it.
script/install_PETSC.sh
+
210
−
228
View file @
3ab5028d
This diff is collapsed.
Click to expand it.
script/install_SUITESPARSE.sh
+
3
−
3
View file @
3ab5028d
...
@@ -12,9 +12,9 @@ if [ -d "$1/SUITESPARSE" ]; then
...
@@ -12,9 +12,9 @@ if [ -d "$1/SUITESPARSE" ]; then
exit
0
exit
0
fi
fi
wget http://ppmcore.mpi-cbg.de/upload/SuiteSparse-
4.5.5
.tar.gz
wget http://ppmcore.mpi-cbg.de/upload/SuiteSparse-
5.3.0
.tar.gz
rm
-rf
SuiteSparse
rm
-rf
SuiteSparse
tar
-xf
SuiteSparse-
4.5.5
.tar.gz
tar
-xf
SuiteSparse-
5.3.0
.tar.gz
if
[
$?
!=
0
]
;
then
if
[
$?
!=
0
]
;
then
echo
"Failed to download SuiteSparse"
echo
"Failed to download SuiteSparse"
exit
1
exit
1
...
@@ -43,4 +43,4 @@ make install "CUDA=no" "INSTALL=$1/SUITESPARSE" "INSTALL_LIB=$1/SUITESPARSE/lib"
...
@@ -43,4 +43,4 @@ make install "CUDA=no" "INSTALL=$1/SUITESPARSE" "INSTALL_LIB=$1/SUITESPARSE/lib"
# Mark the installation
# Mark the installation
echo
1
>
$1
/SUITESPARSE/version
echo
1
>
$1
/SUITESPARSE/version
rm
-rf
SuiteSparse
rm
-rf
SuiteSparse
rm
SuiteSparse-
4.5.5
.tar.gz
rm
SuiteSparse-
5.3.0
.tar.gz
This diff is collapsed.
Click to expand it.
script/remove_old
+
6
−
26
View file @
3ab5028d
...
@@ -141,38 +141,18 @@ function remove_old()
...
@@ -141,38 +141,18 @@ function remove_old()
fi
fi
fi
fi
if
[
-d
$1
/SUPERLU_DIST
]
;
then
version
=
$(
cat
$1
/SUPERLU_DIST/version
)
if
[
x
"
$version
"
!=
x
"1"
]
;
then
echo
-e
"
\0
33[1;34;5m ----------------------------------------------------------------------------------------------------------
\0
33[0m"
echo
-e
"
\0
33[1;34;5m SuperLU (Distributed) has been updated to version 5.2.1, the component will be updated automatically
\0
33[0m"
echo
-e
"
\0
33[1;34;5m ----------------------------------------------------------------------------------------------------------
\0
33[0m"
sleep
5
rm
-rf
$1
/SUPERLU_DIST
rm
-rf
$1
/PETSC
fi
fi
if
[
-d
$1
/HYPRE
]
;
then
version
=
$(
cat
$1
/HYPRE/version
)
if
[
x
"
$version
"
!=
x
"1"
]
;
then
echo
-e
"
\0
33[1;34;5m -------------------------------------------------------------------------------------------
\0
33[0m"
echo
-e
"
\0
33[1;34;5m HYPRE has been updated to version 2.11.2, the component will be updated automatically
\0
33[0m"
echo
-e
"
\0
33[1;34;5m -------------------------------------------------------------------------------------------
\0
33[0m"
sleep
5
rm
-rf
$1
/HYPRE
rm
-rf
$1
/PETSC
fi
fi
if
[
-d
$1
/PETSC
]
;
then
if
[
-d
$1
/PETSC
]
;
then
version
=
$(
cat
$1
/PETSC/version
)
version
=
$(
cat
$1
/PETSC/version
)
if
[
x
"
$version
"
!=
x
"
1
"
]
;
then
if
[
x
"
$version
"
!=
x
"
2
"
]
;
then
echo
-e
"
\0
33[1;34;5m --------------------------------------------------------------------------------------
\0
33[0m"
echo
-e
"
\0
33[1;34;5m --------------------------------------------------------------------------------------
\0
33[0m"
echo
-e
"
\0
33[1;34;5m PETSC has been updated to version 3.
7.6
, the component will be updated automatically
\0
33[0m"
echo
-e
"
\0
33[1;34;5m PETSC has been updated to version 3.
10.2
, the component will be updated automatically
\0
33[0m"
echo
-e
"
\0
33[1;34;5m --------------------------------------------------------------------------------------
\0
33[0m"
echo
-e
"
\0
33[1;34;5m --------------------------------------------------------------------------------------
\0
33[0m"
sleep
5
sleep
5
rm
-rf
$1
/PETSC
rm
-rf
$1
/PETSC
rm
-rf
$1
/HYPRE
rm
-rf
$1
/MUMPS
rm
-rf
$1
/SUPERLU_DIST
rm
-rf
$1
/TRILINOS
fi
fi
fi
fi
...
...
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