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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs