A target device may or may not initialize a full OpenMP runtime system. Unless it does, it may not be possible to monitor activity on a device using a tool interface based on callbacks. To accommodate such cases, the OMPT interface defines a monitoring interface for tracing activity on target devices. Tracing activity on a target device involves the following steps:
| Table 4.3: | OMPT Tracing Interface Runtime Entry Point Names and Their Type Signatures |
| Entry Point String Name | Type Signature |
| “ompt_get_device_num_procs” | ompt_get_device_num_procs_t |
| “ompt_get_device_time” | ompt_get_device_time_t |
| “ompt_translate_time” | ompt_translate_time_t |
| “ompt_set_trace_ompt” | ompt_set_trace_ompt_t |
| “ompt_set_trace_native” | ompt_set_trace_native_t |
| “ompt_start_trace” | ompt_start_trace_t |
| “ompt_pause_trace” | ompt_pause_trace_t |
| “ompt_flush_trace” | ompt_flush_trace_t |
| “ompt_stop_trace” | ompt_stop_trace_t |
| “ompt_advance_buffer_cursor” | ompt_advance_buffer_cursor_t |
| “ompt_get_record_type” | ompt_get_record_type_t |
| “ompt_get_record_ompt” | ompt_get_record_ompt_t |
| “ompt_get_record_native” | ompt_get_record_native_t |
| “ompt_get_record_abstract” | ompt_get_record_abstract_t |
RestrictionsTracing activity on devices has the following restriction: