NVHPC 22.11/23.1 -- OMPT methods can cause SegFault when offloading

Hi Mat,

thanks for your update! It would be great if the bug gets fixed soon.

Like Kevin wrote in his comment, I also noticed that there are cases where callbacks with ompt_scope_endpoint_t aren’t called with an endpoint of ompt_scope_end.
I noticed this while writing a bug report for another compiler vendor. With NVHPC, the target callback is only called once with ompt_scope_begin, but never with ompt_scope_end. I can provide a small demo code if you’re interested.