Tuesday, October 7, 2014


PetSc Tutorial (C type) - Introduction


After a long struggle (3 days) on getting my hands-on PetSc library, I have compiled few helpful quickies to getting a legacy (or user) code to exploit PetSc functionality. This is not a complete tutorial and I have skipped parts which I do not use !

What is PetSc ?
A numerical algorithms framework with standard linear solvers (and more) for scalable (or super) computers. It is written in C, but can be called fom FORTRAN, C/C++, Python, Java and can run on virtually any OS. It is highly portable but has a steep learning curve (atleast till you get the hang of it).

  • It is built on MPI, BLAS, LAPACK.
  • And it works on objects like Vec (array) and Mat (Matrices).
  • Parallelism & options can be set at runtime. (One code for sequential & parallel)
  • Also, has capabilities to work with (MPI + ...) OpenMP, CUDA, etc
  • Has interfaces to a huge number of standard libraries.

One good tutorial (out of many) would be http://59a2.org/files/20130618-PRACE.pdf



Subscribe to RSS Feed Follow me on Twitter!