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_tool
implementation.- Parameters:
omp_version – [in] Refer to OpenMP OMPT docs for more information
runtime_version – [in] Refer to OpenMP OMPT docs for more information
- Returns:
ompt_start_tool_result_t*