<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:yaxun.liu@amd.com" title="yaxun.liu@amd.com">yaxun.liu@amd.com</a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Clang fails to compile libclc"
   href="https://llvm.org/bugs/show_bug.cgi?id=27799">bug 27799</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>NEW
           </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 - Clang fails to compile libclc"
   href="https://llvm.org/bugs/show_bug.cgi?id=27799#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Clang fails to compile libclc"
   href="https://llvm.org/bugs/show_bug.cgi?id=27799">bug 27799</a>
              from <span class="vcard"><a class="email" href="mailto:yaxun.liu@amd.com" title="yaxun.liu@amd.com">yaxun.liu@amd.com</a>
</span></b>
        <pre>The original issues were fixed. Now fails due to some other issue

./ptx-nvidiacl/lib/workitem/get_local_size.cl:5:19: error: use of unknown
builtin '__builtin_ptx_read_ntid_x' [-Wimplicit-function-declaration]
  case 0:  return __builtin_ptx_read_ntid_x();
                  ^
./ptx-nvidiacl/lib/workitem/get_local_id.cl:5:19: error: use of unknown builtin
'__builtin_ptx_read_tid_x' [-Wimplicit-function-declaration]
  case 0:  return __builtin_ptx_read_tid_x();
                  ^
./ptx-nvidiacl/lib/workitem/get_local_size.cl:6:19: error: use of unknown
builtin '__builtin_ptx_read_ntid_y' [-Wimplicit-function-declaration]
  case 1:  return __builtin_ptx_read_ntid_y();
                  ^
./ptx-nvidiacl/lib/workitem/get_local_id.cl:6:19: error: use of unknown builtin
'__builtin_ptx_read_tid_y' ./ptx-nvidiacl/lib/workitem/get_local_size.cl:6:19:
note: did you mean '__builtin_ptx_read_ntid_x'?
[-Wimplicit-function-declaration]
  case 1:  return __builtin_ptx_read_tid_y();
                  ^
./ptx-nvidiacl/lib/workitem/get_local_size.cl:5:19: note:
'__builtin_ptx_read_ntid_x' declared here
  case 0:  return __builtin_ptx_read_ntid_x();
                  ^
./ptx-nvidiacl/lib/workitem/get_local_size.cl:7:19: error: use of unknown
builtin '__builtin_ptx_read_ntid_z' [-Wimplicit-function-declaration]
  case 2:  return __builtin_ptx_read_ntid_z();
                  ^
./ptx-nvidiacl/lib/workitem/get_local_id.cl:6:19: note: did you mean
'__builtin_ptx_read_tid_x'?3
 errors generated.
./ptx-nvidiacl/lib/workitem/get_local_id.cl:5:19: note:
'__builtin_ptx_read_tid_x' declared here
  case 0:  return __builtin_ptx_read_tid_x();
                  ^
./ptx-nvidiacl/lib/workitem/get_local_id.cl:7:19: error: use of unknown builtin
'__builtin_ptx_read_tid_z' [-Wimplicit-function-declaration]
  case 2:  return __builtin_ptx_read_tid_z();
                  ^
3 errors generated.
Makefile:44: recipe for target
'nvptx--nvidiacl/lib/workitem/get_local_size.cl.bc' failed
make: *** [nvptx--nvidiacl/lib/workitem/get_local_size.cl.bc] Error 1
make: *** Waiting for unfinished jobs....
./ptx-nvidiacl/lib/synchronization/barrier.cl:5:5: error: use of unknown
builtin '__builtin_ptx_bar_sync' [-Wimplicit-function-declaration]
    __builtin_ptx_bar_sync(0);
    ^
1 error generated.
Makefile:39: recipe for target
'nvptx--nvidiacl/lib/workitem/get_local_id.cl.bc' failed
make: *** [nvptx--nvidiacl/lib/workitem/get_local_id.cl.bc] Error 1
./ptx-nvidiacl/lib/workitem/get_group_id.cl:5:19: error: use of unknown builtin
'__builtin_ptx_read_ctaid_x' [-Wimplicit-function-declaration]
  case 0:  return __builtin_ptx_read_ctaid_x();
                  ^
Makefile:29: recipe for target
'nvptx--nvidiacl/lib/synchronization/barrier.cl.bc' failed
make: *** [nvptx--nvidiacl/lib/synchronization/barrier.cl.bc] Error 1
./ptx-nvidiacl/lib/workitem/get_group_id.cl:6:19: error: use of unknown builtin
'__builtin_ptx_read_ctaid_y' [-Wimplicit-function-declaration]
  case 1:  return __builtin_ptx_read_ctaid_y();
                  ^
./ptx-nvidiacl/lib/workitem/get_group_id.cl:6:19: note: did you mean
'__builtin_ptx_read_ctaid_x'?
./ptx-nvidiacl/lib/workitem/get_group_id.cl:5:19: note:
'__builtin_ptx_read_ctaid_x' declared here
  case 0:  return __builtin_ptx_read_ctaid_x();
                  ^
./ptx-nvidiacl/lib/workitem/get_group_id.cl:7:19: error: use of unknown builtin
'__builtin_ptx_read_ctaid_z' [-Wimplicit-function-declaration]
  case 2:  return __builtin_ptx_read_ctaid_z();</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>