-
Notifications
You must be signed in to change notification settings - Fork 683
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16354 from sara-nl/20221004124345_new_pr_PETSc3174
{numlib}[foss/2022a] PETSc v3.17.4 w/ Python 3.10.4
- Loading branch information
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
## | ||
# Author: Robert Mijakovic <robert.mijakovic@lxp.lu> | ||
# Author: Jasper Grimm (UoY) | ||
## | ||
name = 'PETSc' | ||
version = '3.17.4' | ||
|
||
homepage = 'https://www.mcs.anl.gov/petsc' | ||
description = """PETSc, pronounced PET-see (the S is silent), is a suite of data structures and routines for the | ||
scalable (parallel) solution of scientific applications modeled by partial differential equations.""" | ||
|
||
toolchain = {'name': 'foss', 'version': '2022a'} | ||
toolchainopts = {'openmp': True, 'usempi': True, 'pic': True} | ||
|
||
source_urls = [ | ||
'https://ftp.mcs.anl.gov/pub/petsc/release-snapshots/', | ||
'ftp://ftp.mcs.anl.gov/pub/petsc/release-snapshots/', | ||
] | ||
sources = [SOURCELOWER_TAR_GZ] | ||
patches = [ | ||
'PETSc_ranlib-fix.patch', | ||
] | ||
checksums = [ | ||
'99c127486722a3ffd95a268b4ceb0976cbf217926c681a9631bd7246eab8cb2a', # petsc-3.17.4.tar.gz | ||
'64cf9d5008d5e92117e65bdec5316d991b6a6b8c8ecf7ea46eb790a498266297', # PETSc_ranlib-fix.patch | ||
] | ||
|
||
builddependencies = [('CMake', '3.23.1')] | ||
|
||
dependencies = [ | ||
('Python', '3.10.4'), | ||
('SciPy-bundle', '2022.05'), | ||
('Boost', '1.79.0'), | ||
('METIS', '5.1.0'), | ||
('SCOTCH', '7.0.1'), | ||
('MUMPS', '5.5.1', '-metis'), | ||
('SuiteSparse', '5.13.0', '-METIS-5.1.0'), | ||
('Hypre', '2.25.0'), | ||
] | ||
|
||
# enabling --with-mpi4py seems to be totally broken, leads to make errors like: | ||
# No rule to make target 'mpi4py-build' | ||
configopts = '--LIBS="$LIBS -lrt" --with-mpi4py=0 ' | ||
|
||
shared_libs = 1 | ||
|
||
# only required when building PETSc in a SLURM job environment | ||
# configopts += '--with-batch=1 --known-mpi-shared-libraries=1 --known-64-bit-blas-indices=0 ' | ||
# prebuildopts = "srun ./conftest-arch-linux2-c-opt && ./reconfigure-arch-linux2-c-opt.py && " | ||
|
||
moduleclass = 'numlib' |