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:
https://github.com/OpenMPToolsInterface/LLVM-openmp
The diff can also be viewed at:
https://github.com/OpenMPToolsInterface/LLVM-openmp/pull/2/files
This fails on Windows obviously. When building with clang it looks like this:
But for some reason I don't see that when building with MSVC.