<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:xw111luoye@gmail.com" title="Ye Luo <xw111luoye@gmail.com>"> <span class="fn">Ye Luo</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - std::complex support in offload region needed"
href="https://bugs.llvm.org/show_bug.cgi?id=45003">bug 45003</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;">Status</td>
<td>CONFIRMED
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - std::complex support in offload region needed"
href="https://bugs.llvm.org/show_bug.cgi?id=45003#c8">Comment # 8</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - std::complex support in offload region needed"
href="https://bugs.llvm.org/show_bug.cgi?id=45003">bug 45003</a>
from <span class="vcard"><a class="email" href="mailto:xw111luoye@gmail.com" title="Ye Luo <xw111luoye@gmail.com>"> <span class="fn">Ye Luo</span></a>
</span></b>
<pre>(In reply to Ye Luo from <a href="show_bug.cgi?id=45003#c7">comment #7</a>)
<span class="quote">> As of today.
>
> PASS: $ clang++ -fopenmp -fopenmp-targets=nvptx64 complex.cpp && ./a.out
> PASS: $ clang++ -fopenmp -fopenmp-targets=nvptx64 -O3 complex.cpp && ./a.out
> PASS: $ clang++ -fopenmp -fopenmp-targets=nvptx64 -O3 -ffast-math
> complex.cpp && ./a.out
>
> FAIL: $ clang++ -g -fopenmp -fopenmp-targets=nvptx64 complex.cpp && ./a.out
> PASS: $ clang++ -g -fopenmp -fopenmp-targets=nvptx64 -O3 complex.cpp &&
> ./a.out
> PASS: $ clang++ -g -fopenmp -fopenmp-targets=nvptx64 -O3 -ffast-math
> complex.cpp && ./a.out
>
> cuda-memcheck indicates invalid memory access in the failed run.
> It happens when T is float and the division involves both complex and real
> type.
> test_div<T>(std::complex<T>(0, 1), T(0.5));
> test_div<T>(T(0.5), std::complex<T>(0, 1));</span >
I cannot reproduce this issue any more with both 11RC1 and today's master
branch.</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>