next up previous
Next: Introduction

Towards a Performance Tool Interface for OpenMP: An Approach Based on Directive Rewriting

Bernd Mohr, Allen D. Malony, Sameer Shende, and Felix Wolf

2 Abstract. In this article we propose a ``standard'' performance tool interface for OpenMP, similar in spirit to the MPI profiling interface in its intent to define a clear and portable API that makes OpenMP execution events visible to performance libraries. When used together with the MPI profiling interface, it also allows tools to be built for hybrid applications that mix shared and distributed memory programming. We describe an instrumentation approach based on OpenMP directive rewriting that generates calls to the interface and passes context information (e.g., source code locations) in a portable and efficient way. Our proposed OpenMP performance API further allows user functions and arbitrary code regions to be marked and performance measurement to be controlled using new proposed OpenMP directives. The directive transformations we define are implemented in a source-to-source translation tool called OPARI. We have used it to integrate the TAU performance analysis framework [13] and the automatic event trace analyzer EXPERT [17,18] with the proposed OpenMP performance interface. Together, these tools show that a portable and robust solution to performance analysis of OpenMP and hybrid applications is possible.





Sameer Suresh Shende
Thu Aug 23 11:19:57 PDT 2001