Skip to content

PETSc: PETSc (Portable, Extensible Toolkit for Scientific Computation)

Overview of package

Package: PETSc
Description: PETSc (Portable, Extensible Toolkit for Scientific Computation)
For more information: https://www.mcs.anl.gov/petsc/
Categories: MultiPhysics
Engineering
License: OpenSource (BSD)

General Usage

PETSc is a suite of data structures and routines for the scalable (parallel) solution of scientific applications modeled by partial differential equations

The following environmental variables have been defined:

  • $PETSC_ROOT has been set to the root of the petsc installation
  • $PETSC_LIBDIR points to the directory containing the libraries
  • $PETSC_INCDIR points to the directory containing the header files

You will probably wish to use these by adding the following flags to your compilation command (e.g. to CFLAGS in your Makefile):

  • -I$PETSC_INCDIR

and the following flags to your link command (e.g. LDFLAGS in your Makefile):

  • -L$PETSC_LIBDIR -Wl,-rpath,$PETSC_LIBDIR

Available versions by cluster

This section lists the available versions of the package PETScon the UMD HPC clusters.

Versions available on the Zaratan cluster

Version Module tags CPU(s) optimized for GPU ready?
3.20.1 3.20.1 zen2 Yes
3.16.1 3.16.1 zen2 Yes