<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - LLVM ERROR: branch size exceeds simm16 when running ethminer"
   href="https://llvm.org/bugs/show_bug.cgi?id=28362">28362</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLVM ERROR: branch size exceeds simm16 when running ethminer
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </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>Backend: AMDGPU
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>vrodic@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When trying to run ethminer on Radeon R9 380 4GB I get this error

LLVM ERROR: branch size exceeds simm16

I've had to modify ethminer to support OpenCL 1.1, source here:
<a href="https://github.com/vrodic/cpp-ethereum/tree/110">https://github.com/vrodic/cpp-ethereum/tree/110</a> (be sure to use '110' branch) 

I also had to modify gallium/Clover OpenCL to up the max alloc size, my patch
is here:
<a href="https://github.com/vrodic/mesa/commit/4b26a6e73e514707ed81e955b241e4d5e931299a">https://github.com/vrodic/mesa/commit/4b26a6e73e514707ed81e955b241e4d5e931299a</a>

After I've done this two things, I get the error from subject. I'm not sure how
to proceed. fglrx on the same hardware runs this, amdgpu pro driver doesn't
because of max alloc size of 1GB.</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>