Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_pdata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_pdata
Commits
5556b08f
Commit
5556b08f
authored
1 year ago
by
Abhinav Singh
Browse files
Options
Downloads
Patches
Plain Diff
fixing Cpack
parent
3bd74335
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
script/install_PETSC.sh
+15
-16
15 additions, 16 deletions
script/install_PETSC.sh
with
15 additions
and
16 deletions
script/install_PETSC.sh
+
15
−
16
View file @
5556b08f
...
...
@@ -9,8 +9,7 @@ FC=$6
if
[
-d
"
$1
/PETSC"
-a
-f
"
$1
/PETSC/include/petsc.h"
]
;
then
echo
"PETSC is already installed"
echo
"BUT WE ARE REINSTALLING FOR CI"
#exit 0
exit
0
fi
# Detect gcc pr clang
...
...
@@ -20,8 +19,8 @@ source script/solve_python
discover_os
function
test_configure_options
()
{
cd
petsc-3.1
4.5
$python_command
./configure
COPTFLAGS
=
"-O3 -g"
CXXOPTFLAGS
=
"-O3 -g"
FOPTFLAGS
=
"-O3 -g"
$ldflags_petsc
--with-cxx-dialect
=
C++11
$petsc_openmp
--with-mpi-dir
=
$mpi_dir
$configure_options2
--with-debugging
=
0
cd
petsc-3.1
9.1
#
$python_command ./configure COPTFLAGS="-O3 -g" CXXOPTFLAGS="-O3 -g" FOPTFLAGS="-O3 -g" $ldflags_petsc --with-cxx-dialect=C++11 $petsc_openmp --with-mpi-dir=$mpi_dir $configure_options2 --with-debugging=0
error
=
$?
cd
..
}
...
...
@@ -50,14 +49,14 @@ fi
#### Download and uncompress petsc
rm
petsc-
lite-3.14.5
.tar.gz
rm
-rf
petsc-3.1
4.5
wget http://
ppmcore.mpi-cbg.de/upload/petsc-lite
-3.1
4.5
.tar.gz
rm
petsc-
3.19.1
.tar.gz
rm
-rf
petsc-3.1
9.1
wget http
s
://
ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc
-3.1
9.1
.tar.gz
if
[
$?
-ne
0
]
;
then
echo
-e
"
\0
33[91;5;1m FAILED! Installation requires an Internet connection
\0
33[0m"
exit
1
fi
tar
-xf
petsc-
lite-3.14.5
.tar.gz
tar
-xf
petsc-
3.19.1
.tar.gz
####
...
...
@@ -65,10 +64,10 @@ tar -xf petsc-lite-3.14.5.tar.gz
MUMPS_extra_libs
=
""
configure_options
=
""
configure_options
=
"
--without-x
"
configure_options
=
"
$configure_options
--with-64-bit-indices --with-parmetis-include=
$1
/PARMETIS/include --with-parmetis-lib=
$1
/PARMETIS/lib/libparmetis.a --with-metis-
include=
$1
/METIS/include --with-metis-lib=
$1
/METIS/lib/libmetis.so
"
configure_options
=
"
$configure_options
--with-64-bit-indices --with-parmetis-include=
$1
/PARMETIS/include --with-parmetis-lib=
$1
/PARMETIS/lib/libparmetis.a --with-metis-
dir=
$1
/METIS
"
if
[
-d
"
$1
/BOOST"
]
;
then
...
...
@@ -144,15 +143,15 @@ if [ $error -eq 0 ]; then
fi
rm
petsc-
lite-3.14.5
.tar.gz
rm
-rf
petsc-3.1
4.5
wget http://
ppmcore.mpi-cbg.de/upload/petsc-lite
-3.1
4.5
.tar.gz
rm
petsc-
3.19.1
.tar.gz
rm
-rf
petsc-3.1
9.1
wget http
s
://
ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc
-3.1
9.1
.tar.gz
if
[
$?
-ne
0
]
;
then
echo
-e
"
\0
33[91;5;1m FAILED! Installation requires an Internet connection
\0
33[0m"
exit
1
fi
tar
-xf
petsc-
lite-3.14.5
.tar.gz
cd
petsc-3.1
4.5
tar
-xf
petsc-
3.19.1
.tar.gz
cd
petsc-3.1
9.1
if
[
x
"
$CXX
"
!=
x
"icpc"
]
;
then
...
...
@@ -176,7 +175,7 @@ else
[
-x
"
$(
command
-v
$1
)
"
]
}
$python_command
./configure
COPTFLAGS
=
"-O3
-g
"
CXXOPTFLAGS
=
"-O3
-g
"
FOPTFLAGS
=
"-O3
-g
"
$ldflags_petsc
--with-cxx-dialect
=
C++11
$petsc_openmp
--with-mpi-dir
=
$mpi_dir
$configure_options
--prefix
=
$1
/PETSC
--with-debugging
=
0
$python_command
./configure
COPTFLAGS
=
"-O3"
CXXOPTFLAGS
=
"-O3"
FOPTFLAGS
=
"-O3"
$ldflags_petsc
--with-cxx-dialect
=
C++11
$petsc_openmp
--with-mpi-dir
=
$mpi_dir
$configure_options
--prefix
=
$1
/PETSC
--with-debugging
=
0
fi
make all
...
...
This diff is collapsed.
Click to expand it.
Abhinav Singh
@absingh
mentioned in commit
b9a79673
·
1 year ago
mentioned in commit
b9a79673
mentioned in commit b9a79673385bc0690ae69636788d9d512ec343f1
Toggle commit list
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