[llvm-bugs] [Bug 50152] New: `#pragma omp target teams distribute lastprivate(x)` doesn't honor lastprivate
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Apr 28 09:05:40 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=50152
Bug ID: 50152
Summary: `#pragma omp target teams distribute lastprivate(x)`
doesn't honor lastprivate
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: OpenMP
Assignee: unassignedclangbugs at nondot.org
Reporter: jdoerfert at anl.gov
CC: a.bataev at hotmail.com, llvm-bugs at lists.llvm.org
The following code (https://godbolt.org/z/8Wb8q4WEd) does not communicate `x`
back to the host, that seems wrong.
```
int foo(int N, int x) {
#pragma omp target teams distribute lastprivate(x)
for (int i = 0; i < N; ++i) {
x = i;
}
return ++x;
}
```
--
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/20210428/af61de31/attachment.html>
More information about the llvm-bugs
mailing list