If the OMPT interface state is active, the tool finalizer, which has type signature ompt_finalize_t and is specified by the finalize field in the ompt_start_tool_result_t structure returned from the ompt_start_tool function, is called when the OpenMP implementation shuts down.
Cross References