<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:tra@google.com" title="Artem Belevich <tra@google.com>"> <span class="fn">Artem Belevich</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WONTFIX - Clang-12 cannot compile CUB and Thrust libraries in CUDA 11.4.1"
   href="https://bugs.llvm.org/show_bug.cgi?id=51757">bug 51757</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>WONTFIX
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>tra@google.com
           </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 WONTFIX - Clang-12 cannot compile CUB and Thrust libraries in CUDA 11.4.1"
   href="https://bugs.llvm.org/show_bug.cgi?id=51757#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WONTFIX - Clang-12 cannot compile CUB and Thrust libraries in CUDA 11.4.1"
   href="https://bugs.llvm.org/show_bug.cgi?id=51757">bug 51757</a>
              from <span class="vcard"><a class="email" href="mailto:tra@google.com" title="Artem Belevich <tra@google.com>"> <span class="fn">Artem Belevich</span></a>
</span></b>
        <pre>It appears to be a cub/thrust portability issue, not an issue with clang.

It would not be the first one -- AFAICT, "Compiles with NVCC" is their largest
concern. NVCC is somewhat more lax than clang so this king of errors tends to
creep in all the time.

The compilation failure is unfortunate, but there's little we can practically
do in clang to help. Relaxing c++ diagnostics in order to be bug-compatible
with NVCC is not likely to happen.

This should be fixed upstream in the thrust/cub repos. NVIDIA does accept
patches and we did get similar issues fixed in the past. E.g: 
<a href="https://github.com/NVIDIA/thrust/commit/51363575f6d3edffac57d664fc3883cfa0e6d5c7">https://github.com/NVIDIA/thrust/commit/51363575f6d3edffac57d664fc3883cfa0e6d5c7</a></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>