[llvm-bugs] [Bug 46185] New: Dependencies for undeferred detached tasks are missing
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jun 3 12:20:30 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=46185
Bug ID: 46185
Summary: Dependencies for undeferred detached tasks are missing
Product: OpenMP
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Clang Compiler Support
Assignee: unassignedclangbugs at nondot.org
Reporter: protze at itc.rwth-aachen.de
CC: llvm-bugs at lists.llvm.org
Created attachment 23570
--> https://bugs.llvm.org/attachment.cgi?id=23570&action=edit
reproducer
Without detached tasks, any outgoing dependencies for undeferred tasks (if(0))
could be ignored.
For detached tasks, tracking this dependency is necessary.
As I understand the generated code, the dependencies are not passed to the
task, but rather __kmpc_omp_wait_deps blocks for the incoming dependencies.
call void @__kmpc_omp_wait_deps ...
call void @__kmpc_omp_task_begin_if0 ...
Therefore, the second task in the attached code does not wait for the
completion of the first task, which would be the call to omp_event_fulfill at
the end.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200603/6272bce8/attachment.html>
More information about the llvm-bugs
mailing list