OMPT Registration#
-
rocprofiler_status_t rocprofiler_ompt_is_initialized(int *status)#
(experimental) Query whether rocprofiler-sdk OMPT implementation has been initialized by OpenMP runtime.
- Parameters:
status – [out] Set to 0 if rocprofiler OMPT has not been initialized. Otherwise, set to 1.
- Return values:
ROCPROFILER_STATUS_SUCCESS – Always returns this value
- Returns:
-
rocprofiler_status_t rocprofiler_ompt_is_finalized(int *status)#
(experimental) Query whether rocprofiler-sdk OMPT implementation has invoked ompt_finalize function.
- Parameters:
status – [out] Set to 0 if rocprofiler OMPT has not been finalized. Otherwise, set to 1.
- Return values:
ROCPROFILER_STATUS_SUCCESS – Always returns this value
- Returns:
-
ompt_start_tool_result_t *rocprofiler_ompt_start_tool(unsigned int omp_version, const char *runtime_version)#
(experimental) If a tool which contains a “ompt_start_tool” function which is invoked by the OpenMP runtime but the tool wishes to defer to rocprofiler-sdk to be the OMPT tool, it should invoke this function from it’s
ompt_start_toolimplementation.- Parameters:
omp_version – [in] Refer to OpenMP OMPT docs for more information
runtime_version – [in] Refer to OpenMP OMPT docs for more information
- Return values:
NULL – rocprofiler-sdk declined the OMPT tool role, because it was not initialized before the OpenMP runtime or because no registered client subscribes to ROCPROFILER_CALLBACK_TRACING_OMPT or ROCPROFILER_BUFFER_TRACING_OMPT. The caller retains the role and should return its own result, or NULL if it has none.
non-NULL – rocprofiler-sdk accepted the role. Return this value to the OpenMP runtime.
- Returns:
ompt_start_tool_result_t*