<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 - Assertion `(!Entry.getAddress() || Entry.getAddress() == Addr) && "Resetting with the new address."' failed."
href="https://bugs.llvm.org/show_bug.cgi?id=49636">49636</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion `(!Entry.getAddress() || Entry.getAddress() == Addr) && "Resetting with the new address."' failed.
</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>jdoerfert@anl.gov
</td>
</tr>
<tr>
<th>CC</th>
<td>a.bataev@hotmail.com, jonathanchesterfield@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>This works or fails depending if BROKEN or WORKING1/WORKING2 are defined:
clang++ -S -x c++ -O1 -std=c++17 -target nvptx64 -Xclang -emit-llvm-bc -Xclang
-aux-triple -Xclang x86_64-unknown-linux-gnu -fopenmp -fopenmp-cuda-mode
-Xclang -fopenmp-is-device /tmp/a.cpp -DBROKEN
```
typedef enum omp_allocator_handle_t {
omp_null_allocator = 0,
omp_default_mem_alloc = 1,
omp_large_cap_mem_alloc = 2,
omp_const_mem_alloc = 3,
omp_high_bw_mem_alloc = 4,
omp_low_lat_mem_alloc = 5,
omp_cgroup_mem_alloc = 6,
omp_pteam_mem_alloc = 7,
omp_thread_mem_alloc = 8,
KMP_ALLOCATOR_MAX_HANDLE = ~(0U)
} omp_allocator_handle_t;
#pragma omp declare target
bool isSPMDMode();
bool isMainThreadInGenericMode() {
return isSPMDMode();
}
bool IsSPMDMode [[clang::loader_uninitialized]];
#pragma omp allocate(IsSPMDMode) allocator(omp_pteam_mem_alloc)
void init(bool IsSPMD) { IsSPMDMode = IsSPMD; }
bool isSPMDMode() { return IsSPMDMode; }
#pragma omp end declare target
```</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>