<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 - __nvvm_shfl_sync_idx_i32 error when building Clang OpenMP offload support"
   href="https://bugs.llvm.org/show_bug.cgi?id=41756">41756</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>__nvvm_shfl_sync_idx_i32 error when building Clang OpenMP offload support
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </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>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>OpenMP
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>csdaley@lbl.gov
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I cannot compile the OpenMP offload file parallel.cu-sm_60.bc. I am using
CUDA-9.2.

```
/project/projectdirs/m888/csdaley/software/cgpu/llvm/9.0.0-git-patched-upstream_20190502/lib/clang/9.0.0/include
/__clang_cuda_intrinsics.h:173:35: error: '__nvvm_shfl_sync_idx_i32' needs
target feature ptx60|ptx61|ptx63|ptx6
4
make -f projects/compiler-rt/lib/hwasan/CMakeFiles/hwasan.dir/build.make
projects/compiler-rt/lib/hwasan/CMakeFi
les/hwasan.dir/depend
__MAKE_SYNC_SHUFFLES(__shfl_sync, __nvvm_shfl_sync_idx_i32,
                                  ^

projects/openmp/libomptarget/deviceRTLs/nvptx/CMakeFiles/omptarget-nvptx-60-bc.dir/build.make:104:
recipe for target
'projects/openmp/libomptarget/deviceRTLs/nvptx/parallel.cu-sm_60.bc' failed
make[2]: ***
[projects/openmp/libomptarget/deviceRTLs/nvptx/parallel.cu-sm_60.bc] Error 1
make[2]: *** Waiting for unfinished jobs....
```

It appears to be an issue with commit
<a href="https://github.com/llvm-mirror/clang/commit/eee685e5e1a9e12245a2a20bfd44db99ca63f8ce">https://github.com/llvm-mirror/clang/commit/eee685e5e1a9e12245a2a20bfd44db99ca63f8ce</a>
because rolling back 1 commit allows me to build the compiler.</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>