<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 - OpenMP offload incorrect map of class member array"
href="https://bugs.llvm.org/show_bug.cgi?id=46170">46170</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>OpenMP offload incorrect map of class member array
</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>enhancement
</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>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>xw111luoye@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre><a href="https://github.com/ye-luo/openmp-target/blob/master/hands-on/tests/map/map_class_member.cpp">https://github.com/ye-luo/openmp-target/blob/master/hands-on/tests/map/map_class_member.cpp</a>
$ clang++ -fopenmp -fopenmp-targets=nvptx64 -fopenmp-version=50
map_class_member.cpp
$ LIBOMPTARGET_DEBUG=1 ./a.out
...
Libomptarget --> Entry 0: Base=0x00007ffc49d17ad8, Begin=0x00007ffc49d17ad8,
Size=4, Type=0x20
Libomptarget --> Entry 1: Base=0x00007ffc49d17ad8, Begin=0x00007ffc49d17ad8,
Size=24, Type=0x1000000000000
Libomptarget --> Looking up mapping(HstPtrBegin=0x00007ffc49d17ad8, Size=4)...
Libomptarget --> Creating new map entry: HstBase=0x00007ffc49d17ad8,
HstBegin=0x00007ffc49d17ad8, HstEnd=0x00007ffc49d17adc,
TgtBegin=0x00007f25f3a00000
Libomptarget --> There are 4 bytes allocated at target address
0x00007f25f3a00000 - is new
Libomptarget --> Looking up mapping(HstPtrBegin=0x00007ffc49d17ad8, Size=24)...
Libomptarget --> WARNING: Pointer is already mapped but section extends beyond
mapped region
Libomptarget --> Explicit extension of mapping is not allowed.
Libomptarget --> Call to getOrAllocTgtPtr returned null pointer (device failure
or illegal mapping).
Libomptarget fatal error 1: failure of target construct while offloading is
mandatory
...
Not fully sure if the code is 5.0 compliant. But it works with XL but not Clang</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>