[llvm-bugs] [Bug 46196] New: [5.0] taskwait with depend clause not supported
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jun 4 04:33:27 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=46196
Bug ID: 46196
Summary: [5.0] taskwait with depend clause not supported
Product: OpenMP
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
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
$ cat taskwait-depend.c
int main(){
int a;
#pragma omp task depend(out:a)
{}
#pragma omp taskwait depend(in:a)
}
$ clang -fopenmp -fopenmp-version=50 taskwait-depend.c
taskwait-depend.c:5:22: error: unexpected OpenMP clause 'depend' in directive
'#pragma omp taskwait'
#pragma omp taskwait depend(in:a)
OpenMP 5.0 introduced taskwait with the depend clause as an alias for:
#pragma omp task if(0) depend(in:a)
{}
Clang should generate code to call __kmpc_omp_wait_deps (as it does for the
included task). It is not necessary to generate code for the empty task.
OpenMP 5.1 will additionally introduce the nowait clause for taskwait, which
allows to add empty dependency nodes to the DAG.
#pragma omp taskwait depend(in:a) depend(out:b) nowait
is equivalent to
#pragma omp task depend(in:a) depend(out:b)
{}
--
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/20200604/d158cb11/attachment.html>
More information about the llvm-bugs
mailing list