diff --git a/easybuild/easyconfigs/p/PETSc/PETSc-3.21.2-foss-2023b.eb b/easybuild/easyconfigs/p/PETSc/PETSc-3.21.2-foss-2023b.eb new file mode 100644 index 000000000000..25512a25cf85 --- /dev/null +++ b/easybuild/easyconfigs/p/PETSc/PETSc-3.21.2-foss-2023b.eb @@ -0,0 +1,45 @@ +## +# Author: Robert Mijakovic +# Author: Jasper Grimm (UoY) +## +name = 'PETSc' +version = '3.21.2' + +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': '2023b'} +toolchainopts = {'openmp': True, 'usempi': True, 'pic': True} + +source_urls = [ + 'https://web.cels.anl.gov/projects/petsc/download/release-snapshots', +] +sources = [SOURCELOWER_TAR_GZ] +checksums = ['a1ac62b6204bdf2f7f9b637abf45e6cff24d372d4d3d3702c50e157bdb56eb21'] + +builddependencies = [('CMake', '3.27.6')] + +dependencies = [ + ('Python', '3.11.5'), + ('SciPy-bundle', '2023.11'), + ('Boost', '1.83.0'), + ('METIS', '5.1.0'), + ('SCOTCH', '7.0.4'), + ('MUMPS', '5.6.1', '-metis'), + ('SuiteSparse', '7.7.0', '-METIS-5.1.0'), + ('Hypre', '2.31.0'), + ('ParMETIS', '4.0.3'), + ('SuperLU_DIST', '8.2.1'), + ('mpi4py', '3.1.5'), +] + +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'