diff options
Diffstat (limited to 'openmp/runtime/src/ompt-specific.h')
-rw-r--r-- | openmp/runtime/src/ompt-specific.h | 39 |
1 files changed, 11 insertions, 28 deletions
diff --git a/openmp/runtime/src/ompt-specific.h b/openmp/runtime/src/ompt-specific.h index c8b50fbcbf8..b4f09a41982 100644 --- a/openmp/runtime/src/ompt-specific.h +++ b/openmp/runtime/src/ompt-specific.h @@ -9,8 +9,6 @@ typedef kmp_info_t ompt_thread_t; - - /***************************************************************************** * forward declarations ****************************************************************************/ @@ -22,9 +20,9 @@ void __ompt_lw_taskteam_init(ompt_lw_taskteam_t *lwt, ompt_thread_t *thr, int gtid, void *microtask, ompt_parallel_id_t ompt_pid); -void __ompt_lw_taskteam_link(ompt_lw_taskteam_t *lwt, ompt_thread_t *thr); +void __ompt_lw_taskteam_link(ompt_lw_taskteam_t *lwt, ompt_thread_t *thr); -ompt_lw_taskteam_t * __ompt_lw_taskteam_unlink(ompt_thread_t *thr); +ompt_lw_taskteam_t *__ompt_lw_taskteam_unlink(ompt_thread_t *thr); ompt_parallel_id_t __ompt_parallel_id_new(int gtid); ompt_task_id_t __ompt_task_id_new(int gtid); @@ -43,8 +41,6 @@ ompt_task_id_t __ompt_get_task_id_internal(int depth); ompt_frame_t *__ompt_get_task_frame_internal(int depth); - - /***************************************************************************** * macros ****************************************************************************/ @@ -53,38 +49,25 @@ ompt_frame_t *__ompt_get_task_frame_internal(int depth); #define OMPT_HAVE_PSAPI KMP_HAVE_PSAPI #define OMPT_STR_MATCH(haystack, needle) __kmp_str_match(haystack, 0, needle) - - //****************************************************************************** // inline functions //****************************************************************************** -inline ompt_thread_t * -ompt_get_thread_gtid(int gtid) -{ - return (gtid >= 0) ? __kmp_thread_from_gtid(gtid) : NULL; +inline ompt_thread_t *ompt_get_thread_gtid(int gtid) { + return (gtid >= 0) ? __kmp_thread_from_gtid(gtid) : NULL; } - -inline ompt_thread_t * -ompt_get_thread() -{ - int gtid = __kmp_get_gtid(); - return ompt_get_thread_gtid(gtid); +inline ompt_thread_t *ompt_get_thread() { + int gtid = __kmp_get_gtid(); + return ompt_get_thread_gtid(gtid); } - -inline void -ompt_set_thread_state(ompt_thread_t *thread, ompt_state_t state) -{ - thread->th.ompt_thread_info.state = state; +inline void ompt_set_thread_state(ompt_thread_t *thread, ompt_state_t state) { + thread->th.ompt_thread_info.state = state; } - -inline const char * -ompt_get_runtime_version() -{ - return &__kmp_version_lib_ver[KMP_VERSION_MAGIC_LEN]; +inline const char *ompt_get_runtime_version() { + return &__kmp_version_lib_ver[KMP_VERSION_MAGIC_LEN]; } #endif |