[Openmp-commits] [PATCH] D42470: [OMPT] Set thread_num in ompt_get_task_info()
Simon Convent via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Wed Jan 24 05:08:39 PST 2018
sconvent created this revision.
sconvent added reviewers: Hahnfeld, protze.joachim, jlpeyton.
thread_num was not set until now.
I will update the task_types.c testcase to also test ompt_get_task_info(), including thread_num.
https://reviews.llvm.org/D42470
Files:
runtime/src/ompt-specific.cpp
Index: runtime/src/ompt-specific.cpp
===================================================================
--- runtime/src/ompt-specific.cpp
+++ runtime/src/ompt-specific.cpp
@@ -396,6 +396,9 @@
if (parallel_data) {
*parallel_data = team_info ? &(team_info->parallel_data) : NULL;
}
+ if (thread_num) {
+ *thread_num = __kmp_get_gtid();
+ }
return info ? 2 : 0;
}
return 0;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42470.131228.patch
Type: text/x-patch
Size: 411 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180124/28e52ef8/attachment.bin>
More information about the Openmp-commits
mailing list