Skip to content

Commit

Permalink
Merge pull request #16354 from sara-nl/20221004124345_new_pr_PETSc3174
Browse files Browse the repository at this point in the history
{numlib}[foss/2022a] PETSc v3.17.4 w/ Python 3.10.4
  • Loading branch information
boegel committed Nov 8, 2022
2 parents 10e64a5 + bf8be24 commit cbbab30
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions easybuild/easyconfigs/p/PETSc/PETSc-3.17.4-foss-2022a.eb
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'

0 comments on commit cbbab30

Please sign in to comment.