Problems, Workarounds and Possible Solutions Implementing the Singleton Pattern with C++ and OpenMP

  • Authors:
  • Michael Suess;Claudia Leopold

  • Affiliations:
  • Research Group Programming Languages / Methodologies, University of Kassel, Kassel, Germany D-34121;Research Group Programming Languages / Methodologies, University of Kassel, Kassel, Germany D-34121

  • Venue:
  • IWOMP '07 Proceedings of the 3rd international workshop on OpenMP: A Practical Programming Model for the Multi-Core Era
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

Programs written in C++ and OpenMP are still relatively rare. This paper shows some problems with the current state of the OpenMP specification regarding C++. We illustrate the problems with various implementations of the singleton pattern, measure their performance and describe workarounds and possible changes to the specification. The singletons are available in the AthenaMP open-source project.