<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - parallel region appears not to execute"
href="https://bugs.llvm.org/show_bug.cgi?id=51781">51781</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>parallel region appears not to execute
</td>
</tr>
<tr>
<th>Product</th>
<td>OpenMP
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Clang Compiler Support
</td>
</tr>
<tr>
<th>Assignee</th>
<td>tianshilei1992@gmail.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jdenny.ornl@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>a.bataev@hotmail.com, george_rokos@hotmail.com, jdoerfert@anl.gov, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>