[Openmp-commits] [PATCH] D110811: [OpenMP][OMPT] Unnecessary execution of the while loop inside __ompt_get_task_info_internal

Vladimir Inđić via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Oct 1 03:44:27 PDT 2021


vladaindjic updated this revision to Diff 376465.
vladaindjic added a comment.

@protze.joachim According to the standard specification which claims the following: “If no task region exists at the specified ancestor level or the information is unavailable then the values of variables passed by reference to the entry point are undefined when ompt_get_task_info returns.”, it is not safe to use “task_data” and “parallel_data” before previously asserting that “ret == 2” inside ompt-multiplex.h test sections.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110811/new/

https://reviews.llvm.org/D110811

Files:
  openmp/runtime/src/ompt-specific.cpp
  openmp/runtime/test/ompt/taskinfo/no_task.c
  openmp/tools/multiplex/ompt-multiplex.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110811.376465.patch
Type: text/x-patch
Size: 5986 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20211001/274beb96/attachment.bin>


More information about the Openmp-commits mailing list