https://bugs.llvm.org/show_bug.cgi?id=51781
Bug ID: 51781
Summary: parallel region appears not to execute
Product: OpenMP
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Clang Compiler Support
Assignee: tianshilei1...@gmail.com
Reporter: jdenny.o...@gmail.com
CC: a.bat...@hotmail.com, george_ro...@hotmail.com,
jdoerf...@anl.gov, llvm-bugs@lists.llvm.org
I see the following bug at 95299019e35b (main from yesterday, 9/7). git bisect
reveals it first appeared at a70ef3f568cb (a revert from Shilei on 7/15). I am
testing while offloading from x86_64 to nvptx64.
```
$ cat test.c
include <stdio.h>
int main() {
int x = 0, y = 1;
#pragma omp target teams num_teams(1) map(tofrom:x, y)
{
x = 5;
#pragma omp parallel num_threads(1)
y = 6;
}
printf("%d, %d\n", x, y);
return 0;
}
$ clang -fopenmp -fopenmp-targets=nvptx64 test.c
$ ./a.out
5, 1
```
I expect the output to be "5, 6". It seems the parallel region does not
execute.
--
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