The OpenMP specification from version 5.0 defines the OMPT interface to allow external tools to query the openmp runtime.
I wanted to give it a try but i am really confused about how mainstream compilers actually support this.
GCC-11 claims to have extended support for openmp 5.0 support but regarding OMPT, i could not find the corresponding
ompt.h
header file (in my case, the Ubuntu packagelibgcc-11-dev
providesomp.h
).clang-12 does provide
ompt.h
(packagelibomp-12-dev
) however the compilation of example programs fails, first error beingunknown type name 'ompt_invoker_t'
and indeed this struct can't be found inompt.h
.
The current state of support is very unclear to me. I could not find a precise status for GCC, while clang provides this information https://clang.llvm.org/docs/OpenMPSupport.html from which i cannot figure out what is behind mostly done.
Could anyone help me find up-to-date information or any hint on this ?