[Openmp-commits] [PATCH] D42472: [OMPT] Fix ompt_get_task_info() and add tests for it

Jonas Hahnfeld via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Feb 28 09:17:42 PST 2018


Hahnfeld accepted this revision.
Hahnfeld added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: runtime/test/ompt/tasks/task_types.c:7-8
 
-__attribute__ ((noinline)) // workaround for bug in icc
-void print_task_type(int id)
-{
-  #pragma omp critical
-  {
-    int task_type;
-    char buffer[2048];
-    ompt_get_task_info(0, &task_type, NULL, NULL, NULL, NULL);
-    format_task_type(task_type, buffer);
-    printf("%" PRIu64 ": id=%d task_type=%s=%d\n", ompt_get_thread_data()->value, id, buffer, task_type);
-  }
-};
-
 int main()
 {
   //initial task
----------------
Please reformat this test on commit, this should fix some inconsistencies.


https://reviews.llvm.org/D42472





More information about the Openmp-commits mailing list