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: unassignedclangb...@nondot.org
Reporter: pro...@itc.rwth-aachen.de
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs