Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_pdata
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openfpm
openfpm_pdata
Commits
bc4c94ce
Commit
bc4c94ce
authored
Dec 13, 2016
by
incardon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skipping MUMPS with intel compiler
parent
68ecb586
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
36 deletions
+37
-36
script/install_PETSC.sh
script/install_PETSC.sh
+37
-36
No files found.
script/install_PETSC.sh
View file @
bc4c94ce
...
...
@@ -161,54 +161,55 @@ fi
### MUMPS installation
if
[
!
-d
"
$1
/MUMPS"
]
;
then
rm
MUMPS_5.0.1.tar.gz
rm
-rf
MUMPS_5.0.1
wget http://ppmcore.mpi-cbg.de/upload/MUMPS_5.0.1.tar.gz
if
[
$?
-ne
0
]
;
then
echo
-e
"
\0
33[91;5;1m FAILED Installation require an Internet connection
\0
33[0m"
exit
1
fi
tar
-xf
MUMPS_5.0.1.tar.gz
cd
MUMPS_5.0.1
cp
Make.inc/Makefile.inc.generic Makefile.inc
if
[
x
"
$CXX
"
!=
x
"icpc"
]
;
then
if
[
!
-d
"
$1
/MUMPS"
]
;
then
rm
MUMPS_5.0.1.tar.gz
rm
-rf
MUMPS_5.0.1
wget http://ppmcore.mpi-cbg.de/upload/MUMPS_5.0.1.tar.gz
if
[
$?
-ne
0
]
;
then
echo
-e
"
\0
33[91;5;1m FAILED Installation require an Internet connection
\0
33[0m"
exit
1
fi
tar
-xf
MUMPS_5.0.1.tar.gz
cd
MUMPS_5.0.1
cp
Make.inc/Makefile.inc.generic Makefile.inc
# Installation for linux
# Installation for linux
$sed_command
-i
"/CC
\s\+
=
\s
cc/c
\C
C = mpicc"
Makefile.inc
$sed_command
-i
"/FC
\s\+
=
\s
f90/c
\F
C = mpif90"
Makefile.inc
$sed_command
-i
"/FL
\s\+
=
\s
f90/c
\F
L = mpif90"
Makefile.inc
$sed_command
-i
"/CC
\s\+
=
\s
cc/c
\C
C = mpicc"
Makefile.inc
$sed_command
-i
"/FC
\s\+
=
\s
f90/c
\F
C = mpif90"
Makefile.inc
$sed_command
-i
"/FL
\s\+
=
\s
f90/c
\F
L = mpif90"
Makefile.inc
$sed_command
-i
"/SCALAP
\s\+
=
\s
-lscalapack
\s
-lblacs/c
\S
CALAP = -L
$1
/SCALAPACK/lib -L
$1
/OPENBLAS/lib -lscalapack"
Makefile.inc
$sed_command
-i
"/LIBBLAS
\s\+
=
\s\-
lopenblas/c
\L
IBBLAS = -lopenblas"
Makefile.inc
$sed_command
-i
"/SCALAP
\s\+
=
\s
-lscalapack
\s
-lblacs/c
\S
CALAP = -L
$1
/SCALAPACK/lib -L
$1
/OPENBLAS/lib -lscalapack"
Makefile.inc
$sed_command
-i
"/LIBBLAS
\s\+
=
\s\-
lopenblas/c
\L
IBBLAS = -lopenblas"
Makefile.inc
$sed_command
-i
"/OPTF
\s\+
=
\s\-
O/c
\O
PTF = -fpic -O3"
Makefile.inc
$sed_command
-i
"/OPTC
\s\+
=
\s\-
O
\s
-I./c
\O
PTC = -fpic -O3 -I."
Makefile.inc
$sed_command
-i
"/OPTL
\s\+
=
\s\-
O/c
\O
PTL = -fpic -O3"
Makefile.inc
$sed_command
-i
"/OPTF
\s\+
=
\s\-
O/c
\O
PTF = -fpic -O3"
Makefile.inc
$sed_command
-i
"/OPTC
\s\+
=
\s\-
O
\s
-I./c
\O
PTC = -fpic -O3 -I."
Makefile.inc
$sed_command
-i
"/OPTL
\s\+
=
\s\-
O/c
\O
PTL = -fpic -O3"
Makefile.inc
$sed_command
-i
"/LIBBLAS
\s
=
\s
-lblas/c
\L
IBBLAS = -lopenblas"
Makefile.inc
$sed_command
-i
"/LIBBLAS
\s
=
\s
-lblas/c
\L
IBBLAS = -lopenblas"
Makefile.inc
$sed_command
-i
"/INCPAR
\s\+
=
\s\-
I
\/
usr
\/
include/c
\I
NCPAR ="
Makefile.inc
$sed_command
-i
"/LIBPAR
\s\+
=
\s\$
(SCALAP)
\s\-
L
\/
usr
\/
lib
\s\-
lmpi/c
\L
IBPAR =
\$
(SCALAP)"
Makefile.inc
$sed_command
-i
"/INCPAR
\s\+
=
\s\-
I
\/
usr
\/
include/c
\I
NCPAR ="
Makefile.inc
$sed_command
-i
"/LIBPAR
\s\+
=
\s\$
(SCALAP)
\s\-
L
\/
usr
\/
lib
\s\-
lmpi/c
\L
IBPAR =
\$
(SCALAP)"
Makefile.inc
make
-j
$2
make
-j
$2
if
[
$?
-eq
0
]
;
then
## Copy LIB and include in the target directory
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
mkdir
$1
/MUMPS
cp
-r
include
$1
/MUMPS
cp
-r
lib
$1
/MUMPS
MUMPS_extra_lib
=
"--with-mumps-lib=
\"
$1
/MUMPS/lib/libdmumps.a
$1
/MUMPS/lib/libmumps_common.a
$1
/MUMPS/lib/libpord.a
\"
"
configure_options
=
"
$configure_options
--with-mumps=yes --with-mumps-include=
$1
/MUMPS/include"
MUMPS_extra_lib
=
"--with-mumps-lib=
\"
$1
/MUMPS/lib/libdmumps.a
$1
/MUMPS/lib/libmumps_common.a
$1
/MUMPS/lib/libpord.a
\"
"
configure_options
=
"
$configure_options
--with-mumps=yes --with-mumps-include=
$1
/MUMPS/include"
fi
else
echo
"MUMPS already installed"
MUMPS_extra_lib
=
"--with-mumps-lib=
\"
$1
/MUMPS/lib/libdmumps.a
$1
/MUMPS/lib/libmumps_common.a
$1
/MUMPS/lib/libpord.a
\"
"
configure_options
=
"
$configure_options
--with-mumps=yes --with-mumps-lib=
\"
$MUMPS_extra_lib
\"
--with-mumps-include=
$1
/MUMPS/include"
fi
else
echo
"MUMPS already installed"
MUMPS_extra_lib
=
"--with-mumps-lib=
\"
$1
/MUMPS/lib/libdmumps.a
$1
/MUMPS/lib/libmumps_common.a
$1
/MUMPS/lib/libpord.a
\"
"
configure_options
=
"
$configure_options
--with-mumps=yes --with-mumps-lib=
\"
$MUMPS_extra_lib
\"
--with-mumps-include=
$1
/MUMPS/include"
fi
## SuperLU installation
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment