diff options
| author | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2015-04-29 16:22:07 +0000 |
|---|---|---|
| committer | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2015-04-29 16:22:07 +0000 |
| commit | e5f4492e30cce5abb21755eebb3526f380197449 (patch) | |
| tree | bb2ffd2391ca09741f986135d121274bdb3c55d4 /openmp/runtime/src/ompt-specific.h | |
| parent | 9429684cce4e667f9558f8b032452840362be6cc (diff) | |
| download | bcm5719-llvm-e5f4492e30cce5abb21755eebb3526f380197449.tar.gz bcm5719-llvm-e5f4492e30cce5abb21755eebb3526f380197449.zip | |
This patch contains the new files for OMPT and the needed changes to the build infrastructure
llvm-svn: 236117
Diffstat (limited to 'openmp/runtime/src/ompt-specific.h')
| -rw-r--r-- | openmp/runtime/src/ompt-specific.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/openmp/runtime/src/ompt-specific.h b/openmp/runtime/src/ompt-specific.h new file mode 100644 index 00000000000..ed679da4c97 --- /dev/null +++ b/openmp/runtime/src/ompt-specific.h @@ -0,0 +1,49 @@ +#ifndef OMPT_SPECIFIC_H +#define OMPT_SPECIFIC_H + +#include "kmp.h" + +void __ompt_team_assign_id(kmp_team_t *team, ompt_parallel_id_t ompt_pid); +void __ompt_thread_assign_wait_id(void *variable); + +void __ompt_lw_taskteam_init(ompt_lw_taskteam_t *lwt, kmp_info_t *thr, + int gtid, void *microtask, + ompt_parallel_id_t ompt_pid); + +void __ompt_lw_taskteam_link(ompt_lw_taskteam_t *lwt, kmp_info_t *thr); + +ompt_lw_taskteam_t * __ompt_lw_taskteam_unlink(kmp_info_t *thr); + +ompt_parallel_id_t __ompt_parallel_id_new(int gtid); +ompt_task_id_t __ompt_task_id_new(int gtid); + +ompt_team_info_t *__ompt_get_teaminfo(int depth, int *size); + +ompt_task_info_t *__ompt_get_taskinfo(int depth); + +inline kmp_info_t * +ompt_get_thread_gtid(int gtid) +{ + return (gtid >= 0) ? __kmp_thread_from_gtid(gtid) : NULL; +} + +inline kmp_info_t * +ompt_get_thread() +{ + int gtid = __kmp_gtid_get_specific(); + return ompt_get_thread_gtid(gtid); +} + + +void __ompt_thread_begin(ompt_thread_type_t thread_type, int gtid); + +void __ompt_thread_end(ompt_thread_type_t thread_type, int gtid); + + +int __ompt_get_parallel_team_size_internal(int ancestor_level); + +ompt_task_id_t __ompt_get_task_id_internal(int depth); + +ompt_frame_t *__ompt_get_task_frame_internal(int depth); + +#endif |

