Loading Events

« All Events

  • This event has passed.

Scalable Parallel Computations with PETSc @CSC

May 2 - May 3

The Portable Extensible Toolkit for Scientific computing (PETSc) is a software framework for scalable numerical solution of complex problems in science and engineering. It is designed primarily for typical computations connected with Partial Differential Equations (PDE) solution, but is already successfully used also e.g., in data science. PETSc provides implementations of distributed sparse/dense/unassembled matrices, linear algebra, linear/non-linear system solvers, time integrators, mathematical optimization, discretization and more. It can as well be selectively extended with user’s own implementations at any level. Codes using PETSc can be compiled on a wide range of computer architectures from iPhone to a large cluster with no code changes. PETSc is written in C but can be employed e.g., in C++, Fortran and Python programs as well. The course will interleave theory and practice  presentations and hands-on exercises with individual consultations.

Learning outcome

After the course participants are able to:

  • make use of the vast functionality available in PETSc to write their own programs, from mini-apps to bigger projects;
  • write their PETSc-based programs in a way allowing experiments with command-line options with no need for recompiling  for example, to apply different preconditioners to the same problem and compare their performance;
  • add their own functionality if needed by extending prefabricated building blocks available in PETSc;
  • take advantage of the debugging and profiling tools within PETSc;
  • use PETSc as a “package manager” to fetch, compile and link various external libraries such as ParMETIS easily;
  • do something more with PETSc, also based on their individual preferences.


Participants need some experience in C programming, but expertise is not required. One should be familiar with:

  • C syntax;
  • Control flow (if/else, loops, writing/calling functions);
  • Writing and calling functions;
  • Compiling a C program on their target platform.

One also needs some conceptual knowledge of MPI:

  • What is message passing about;
  • What are MPI communicators.


May 2
May 3
Event Category:




CSC – IT Center for Science
Espoo, Finland + Google Map