<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Dependencies for undeferred detached tasks are missing"
href="https://bugs.llvm.org/show_bug.cgi?id=46185">46185</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Dependencies for undeferred detached tasks are missing
</td>
</tr>
<tr>
<th>Product</th>
<td>OpenMP
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Clang Compiler Support
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>protze@itc.rwth-aachen.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=23570" name="attach_23570" title="reproducer">attachment 23570</a> <a href="attachment.cgi?id=23570&action=edit" title="reproducer">[details]</a></span>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>