Skip to main content
QUICK REVIEW

[Paper Review] Mixed-mode implementation of PETSc for scalable linear algebra on multi-core processors

Michèle Weiland, Lawrence Mitchell|arXiv (Cornell University)|May 9, 2012
Parallel Computing and Optimization TechniquesComputer Science13 references5 citations
TL;DR

This paper presents a mixed-mode OpenMP/MPI implementation of PETSc to enhance scalability on multi-core processors by combining shared-memory threading with distributed-memory message passing. The approach improves performance over pure-MPI by better exploiting multi-core parallelism, with benchmarks on CFD matrices showing superior efficiency and reduced solve times in the mixed-mode version.

ABSTRACT

With multi-core processors a ubiquitous building block of modern supercomputers, it is now past time to enable applications to embrace these developments in processor design. To achieve exascale performance, applications will need ways of exploiting the new levels of parallelism that are exposed in modern high-performance computers. A typical approach to this is to use shared-memory programming techniques to best exploit multi-core nodes along with inter-node message passing. In this paper, we describe the addition of OpenMP threaded functionality to the PETSc library. We highlight some issues that hinder good performance of threaded applications on modern processors and describe how to negate them. The OpenMP branch of PETSc was benchmarked using matrices extracted from Fluidity, a CFD application code, which uses the library as its linear solver engine. The overall performance of the mixed-mode implementation is shown to be superior to that of the pure-MPI version.

Motivation & Objective

  • To address the growing need for scalable linear algebra on modern multi-core supercomputers.
  • To enable efficient utilization of shared-memory parallelism within PETSc, a widely used HPC library.
  • To overcome performance bottlenecks in threaded applications on modern processors.
  • To evaluate the performance of a hybrid OpenMP/MPI implementation of PETSc against pure-MPI in real-world CFD workloads.

Proposed method

  • Extended PETSc with OpenMP threading to support shared-memory parallelism within multi-core nodes.
  • Integrated OpenMP with existing MPI-based inter-node communication for a hybrid programming model.
  • Optimized memory access and thread scheduling to reduce false sharing and improve cache locality.
  • Used matrices extracted from the Fluidity CFD code as realistic benchmarks for evaluation.
  • Profiled and tuned the mixed-mode implementation to mitigate performance issues common in threaded HPC codes.
  • Compared performance of the OpenMP-enhanced PETSc version against the original pure-MPI version.

Experimental results

Research questions

  • RQ1How does a mixed-mode OpenMP/MPI implementation of PETSc improve performance on multi-core architectures compared to pure-MPI?
  • RQ2What performance bottlenecks arise in threaded linear algebra applications on modern processors, and how can they be mitigated?
  • RQ3To what extent does the hybrid approach scale across multi-core nodes in realistic CFD workloads?
  • RQ4Can the OpenMP extension of PETSc maintain high performance while improving resource utilization on shared-memory systems?

Key findings

  • The mixed-mode PETSc implementation achieved superior performance compared to the pure-MPI version on multi-core systems.
  • The OpenMP-enhanced version reduced solve times significantly on matrices from the Fluidity CFD application.
  • Performance improvements were attributed to better utilization of shared-memory parallelism and reduced communication overhead.
  • The implementation successfully mitigated common threading issues such as false sharing and load imbalance.
  • The hybrid approach demonstrated strong scalability across multi-core nodes while maintaining high efficiency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.