<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:josem@udel.edu" title="Jose Manuel Monsalve Diaz <josem@udel.edu>"> <span class="fn">Jose Manuel Monsalve Diaz</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - [OpenMP 4.5] Array segment mapping to device with default length (e.g. map(array[1:]) ) fails at runtime"
href="https://bugs.llvm.org/show_bug.cgi?id=34582">bug 34582</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>INVALID
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - [OpenMP 4.5] Array segment mapping to device with default length (e.g. map(array[1:]) ) fails at runtime"
href="https://bugs.llvm.org/show_bug.cgi?id=34582#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - [OpenMP 4.5] Array segment mapping to device with default length (e.g. map(array[1:]) ) fails at runtime"
href="https://bugs.llvm.org/show_bug.cgi?id=34582">bug 34582</a>
from <span class="vcard"><a class="email" href="mailto:josem@udel.edu" title="Jose Manuel Monsalve Diaz <josem@udel.edu>"> <span class="fn">Jose Manuel Monsalve Diaz</span></a>
</span></b>
<pre>The problem boils down to the implicit mapping that occurs in the second
#pragma omp target. This implicit mapping is like having map(tofrom: a1d[0:N]).
Which goes agains the original mapping.
#pragma omp target data map(from: a1d[1:])
{
#pragma omp target map(tofrom: isHost)
{
// Some aid[] use.
}
}
Is equal to
#pragma omp target data map(from: a1d[1:])
{
#pragma omp target map(tofrom: isHost) map(tofrom: a1d[0:N])
{
// Some aid[] use.
}
}
This is generating a conflict. Even though the specs in the mapping section are
pretty clear what to do with respect to the reference counting, it doesn't say
anything regarding implicit mapping of a variable that is already in the table.</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>