This patch updates the implementation of OMPT to the specification in the upcoming OpenMP 5.0 version.
Half of the touched code adds test cases to test the various OMPT event callbacks. The code is tested to work with latest clang, GNU and Intel compiler. The implementation is optimized for low overhead when no tool is attached shifting the cost to execution with tool attached.
The code is developed in:
The diff can also be viewed at: