Skip to main content

An Evaluation of Auto-Scoping in OpenMP

  • Conference paper
Shared Memory Parallel Programming with Open MP (WOMPAT 2004)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 3349))

Included in the following conference series:

Abstract

In [1], Dieter an Mey proposes the addition of an AUTO attribute to the OpenMP DEFAULT clause. A DEFAULT(AUTO) clause would cause the compiler to automatically determine the scoping of variables that are not explicitly classified as shared, private or reduction. While this new feature would be useful and powerful, its implementation would rely on automatic parallelization technology, which has been shown to have significant limitations. In this paper, we implement support for the DEFAULT(AUTO) clause in the Polaris parallelizing compiler. Our modified version of the compiler will translate regions with DEFAULT(AUTO) clauses into regions that have explicit scopings for all variables. An evaluation of our implementation on a subset of the SPEC OpenMP Benchmark Suite shows that with current automatic parallelization technologies, a number of important regions cannot be statically scoped, resulting in a significant loss of speedup. We also compare our compiler’s performance to that of an Early Access version of the Sun Studio 9 Fortran 95 compiler [2].

This work is supported in part by the Canadian National Science and Engineering Research Council, the Canada Foundation for Innovation, the Ontario Innovation Trust, the Connaught Foundation and the University of Toronto.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. an Mey, D. (ed.): A compromise between automatic and manual parallelization: Auto-scoping (proposal for an additional data scope attribute of the omp parallel directive’s default clause) (September 2001), http://support.rz.rwth-aachen.de/public/AutoScoping.pdf

  2. Lin, Y., Terboven, C., an Mey, D., Copty, N.: Sun Microsystems Automatic Scoping of Variables in Parallel Regions of an OpenMP Program. In: Chapman, B.M. (ed.) WOMPAT 2004. LNCS, vol. 3349, Springer, Heidelberg (2005)

    Chapter  Google Scholar 

  3. The OpenMP Architecture Review Board. In: OpenMP C and C++ Application Program Interface, 2nd edn. (March 2002)

    Google Scholar 

  4. The OpenMP Architecture Review Board. OpenMP Fortran Application Program Interface, 2 edn. (November 2000)

    Google Scholar 

  5. Blume, W., Doallo, R., Eigenmann, R., Grout, J., Hoeflinger, J., Lawrence, T., Lee, J., Padua, D., Paek, Y., Pottenger, B., Rauchwerger, L., Tu, P.: Parallel Programming with Polaris, pp. 78–82. IEEE Computer, Los Alamitos (1996)

    Google Scholar 

  6. Blume, W., Eigenmann, R.: The Range Test: A Dependence Test for Symbolic, Non-linear Expressions. In: Proceedings of Supercomputing 1994, Washington D.C, November 1994, pp. 528–537 (1994)

    Google Scholar 

  7. Kim, S.W., Min, S.J., Voss, M., Lee, S.I., Eigenmann, R.: Portable compilers for openMP. In: Eigenmann, R., Voss, M.J. (eds.) WOMPAT 2001. LNCS, vol. 2104, p. 11. Springer, Heidelberg (2001)

    Chapter  Google Scholar 

  8. Aslot, V., Domeika, M., Eigenmann, R., Gaertner, G., Jones, W.B., Parady, B.: SPEComp: A New Benchmark Suite for Measuring Parallel Computer Performance. In: Proceedings of the Workshop on OpenMP Applications and Tools, Lafayette, Indiana, July 2001, pp. 1–10.

    Google Scholar 

  9. Jin, M.F.H., Yan, J.: Parallelization with CAPO – A User Manual. Technical Report NAS-01-008, NASA Ames Research Center (August 2001)

    Google Scholar 

  10. Allen, F.E.: An overview of the ptran analysis system for multiprocessing. Journal of Parallel and Distributed Computing, 617–640 ( October 1988)

    Google Scholar 

  11. Hall, M.W., Anderson, J.M., Amarasinghe, S.P., Murphy, B.R., Liao, S.-W., Bugnion, E., Lam, M.S.: Maximizing multiprocessor performance with the SUIF compiler. Computer, 84–89 (Decmber 1996)

    Google Scholar 

  12. Saltz, J., Mirchandaney, R., Crowley, K.: Run time parallelization and scheduling of loops. IEEE Transactions on Computers 40(5), 603–612 (1991)

    Article  Google Scholar 

  13. Rauchwerger, L., Padua, D.: The PRIVATIZING DOALL Test: A Run-Time Technique for DOALL Loop Identification and Array Privatization. In: Proceedings of the 8th ACM International Conference on Supercomputing, Manchester, England, July 1994, pp. 33–43 (1994)

    Google Scholar 

  14. Rauchwerger, L., Padua, D.: The LRPD Test: speculative run-time parallelization of loops with privatization and reduction parallelization. In: Proceedings of the SIGPLAN 1995 Conference on Programming Languages Design and Implementation, June 1995, pp. 218–232 (1995)

    Google Scholar 

  15. RWCP. The Omni OpenMP Compiler (2004), http://phase.hpcc.jp/Omni/

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2005 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Voss, M., Chiu, E., Chow, P.M.Y., Wong, C., Yuen, K. (2005). An Evaluation of Auto-Scoping in OpenMP. In: Chapman, B.M. (eds) Shared Memory Parallel Programming with Open MP. WOMPAT 2004. Lecture Notes in Computer Science, vol 3349. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-31832-3_9

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-31832-3_9

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-24560-5

  • Online ISBN: 978-3-540-31832-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics