13. OMPT Interface#

OMPT defines mechanisms and an API for interfacing with tools in the OpenMP program.

The OMPT API provides the following functionality:

  • examines the state associated with an OpenMP thread

  • interprets the call stack of an OpenMP thread

  • receives notification about OpenMP events

  • traces activity on OpenMP target devices

  • assesses implementation-dependent details

  • controls a tool from an OpenMP application

The following sections will illustrate basic mechanisms and operations of the OMPT API.