Skip to main content
QUICK REVIEW

[Paper Review] Towards Autotuning of OpenMP Applications on Multicore Architectures

Jakub Katarzynski, Maciej Cytowski|arXiv (Cornell University)|Jan 16, 2014
Parallel Computing and Optimization TechniquesComputer Science4 references7 citations
TL;DR

This paper presents PdtTagger, an autotuning tool that automatically instruments OpenMP source code to measure hardware performance counters and execution times, enabling dynamic selection of optimal thread counts per parallel region. By correlating performance counter data with thread scalability, the tool supports automatic, application-aware thread optimization in hybrid MPI+OpenMP workloads on IBM Power775 systems.

ABSTRACT

In this paper we describe an autotuning tool for optimization of OpenMP applications on highly multicore and multithreaded architectures. Our work was motivated by in-depth performance analysis of scientific applications and synthetic benchmarks on IBM Power 775 architecture. The tool provides an automatic code instrumentation of OpenMP parallel regions. Based on measurement of chosen hardware performance counters the tool decides on the number of parallel threads that should be used for execution of chosen code fragments.

Motivation & Objective

  • Address the challenge of suboptimal thread count selection in OpenMP applications on highly multicore architectures.
  • Overcome limitations of existing binary instrumentation tools like hpctInst, which lack source-level control and are restricted to specific compilers.
  • Enable automatic, per-region thread count optimization in hybrid MPI+OpenMP applications based on runtime performance feedback.
  • Develop a scalable autotuning framework that supports detailed performance analysis using hardware performance counters on POWER architectures.
  • Facilitate deployment of adaptive thread management in scientific HPC workloads through automated instrumentation and runtime decision-making.

Proposed method

  • Use the Program Database Toolkit (PDT) to parse source code and build a structured representation of program constructs.
  • Instrument source code by inserting library calls at the start and end of selected OpenMP parallel regions to mark region boundaries.
  • Link the instrumented application with a custom library that measures execution time and hardware performance counters via IBM's libhpm interface.
  • Collect performance data including event counts (e.g., cache misses, instruction throughput) and execution times per thread and region.
  • Enable output in multiple formats (e.g., hpm, viz) for post-processing and visualization using environment variables like HPM_VIZ_OUTPUT.
  • Integrate with runtime performance monitoring via the pmapi library to support dynamic thread count adaptation decisions based on real-time counter analysis.

Experimental results

Research questions

  • RQ1Which hardware performance counters correlate most strongly with thread scalability in OpenMP applications on POWER architectures?
  • RQ2Can a data-driven heuristic (e.g., decision tree) be constructed to automatically recommend optimal thread counts per OpenMP region based on runtime performance counters?
  • RQ3How does the performance of scientific and synthetic benchmarks vary across different SMT modes (SMT2, SMT4) on the IBM Power775 system?
  • RQ4To what extent can source-level instrumentation outperform binary-level instrumentation in terms of flexibility and control for autotuning?
  • RQ5Can autotuning based on region-specific performance data improve overall application performance in hybrid MPI+OpenMP workloads compared to global OMP_NUM_THREADS settings?

Key findings

  • Performance gains from SMT modes vary significantly by application type, with throughput-oriented workloads benefiting most from higher SMT levels.
  • Memory-intensive applications often underperform under SMT4 due to increased memory bandwidth contention and cache pressure.
  • The PdtTagger tool successfully instruments OpenMP regions in C code and collects accurate execution time and hardware performance counter data.
  • Instrumentation via PdtTagger enables detailed profiling of individual OpenMP regions, including per-thread execution times and event counts.
  • The tool supports hybrid MPI+OpenMP applications by generating separate performance profiles per MPI process and per OpenMP region.
  • The framework is extensible and enables future integration with decision-making libraries (e.g., pmapi) to support runtime thread count adaptation based on real-time performance feedback.

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.