A proposal for OpenMP for Java

  • Authors:
  • Michael Klemm;Ronald Veldema;Matthias Bezold;Michael Philippsen

  • Affiliations:
  • University of Erlangen-Nuremberg, Computer Science Department, Erlangen, Germany;University of Erlangen-Nuremberg, Computer Science Department, Erlangen, Germany;University of Erlangen-Nuremberg, Computer Science Department, Erlangen, Germany;University of Erlangen-Nuremberg, Computer Science Department, Erlangen, Germany

  • Venue:
  • IWOMP'05/IWOMP'06 Proceedings of the 2005 and 2006 international conference on OpenMP shared memory parallel programming
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

The current OpenMP 2.5 specification does not include a binding for Java. However, Java is a wide-spread programming language that is even used for HPC programming. We propose an adaptation of OpenMP to Java by retrofitting the basic OpenMP directives to Java and further propose some new concepts to make OpenMP fit into Java's language philosophy. We discuss how Java's memory model matches OpenMP's memory model and how the OpenMP bindings for Java and C++ differ. We also suggest how to achieve flexibility of an OpenMP implementation by allowing both Java threads (java.lang.Thread) and Java tasks (java.util.concurrent.FutureTask) as an underlying means of parallelization. Support for object-orientation is added to allow OpenMP to better suit the Java programming model. For example, we suggest a parallel for-each loop over Java collections, OO-based reductions, and object-cloning semantics to adapt data-sharing clauses to Java. Also, we suggest a minimal runtime library to allow object-pooling to circumvent any implicit synchronization involved in object allocations. Finally, we present some performance numbers for a reference implementation in a research compiler.