hpcrun: cope with incomplete OMPT support for GPUs
hpcrun: cope with incomplete OMPT support for GPUs
A build of LLVM main branch this week returns null pointers when ompt_device_initialize looks up OMPT entry points needed to control monitoring.
This commit checks the returned values and doesn't call any OMPT entry points if one of the necessary entry points is NULL.
Backward Compatibility
- This MR does not alter the data formats.
- This MR does not alter any CLIs.
Checklist
-
I have run pre-commit run -aon my local checkout and fixed any reported issues. -
I have confirmed that existing tests and/or the tests added by this MR cover the changes introduced by this MR. -
I have confirmed that any added tests will be automatically run in CI. -
I have updated all relevant documentation: -
The --helptext for the tools -
The man page for the tools -
The HPCToolkit User's Manual
-