Automatic scoping of variables in parallel regions of an OpenMP program

  • Authors:
  • Yuan Lin;Christian Terboven;Dieter an Mey;Nawal Copty

  • Affiliations:
  • Sun Microsystems;RWTH Aachen University, Center for Computing and Communication, Aachen, Germany;RWTH Aachen University, Center for Computing and Communication, Aachen, Germany;Sun Microsystems

  • Venue:
  • WOMPAT'04 Proceedings of the 5th international conference on OpenMP Applications and Tools: shared Memory Parallel Programming with OpenMP
  • Year:
  • 2004

Quantified Score

Hi-index 0.00

Visualization

Abstract

The process of manually specifying scopes of variables when writing an OpenMP program is both tedious and error-prone. To improve productivity, an autoscoping feature was proposed in [1]. This feature leverages the analysis capability of a compiler to determine the appropriate scopes of variables. In this paper, we present the proposed autoscoping rules and describe the autoscoping feature provided in the Sun StudioTM 9 Fortran 95 compiler. To investigate how much work can be saved by using autoscoping and the performance impact of this feature, we study the process of parallelizing PANTA, a 50,000-line 3D Navier-Stokes solver, using OpenMP. With pure manual scoping, a total of 1389 variables have to be explicitly privatized by the programmer. With the help of autoscoping, only 13 variables have to be manually scoped. Both versions of PANTA achieve the same performance.