[Beignet] kernel compile assertion failure

Abrahm Scully abrahm.scully at gmail.com
Tue Jun 17 23:44:22 PDT 2014


beignet 853ac4d94 is failing to compile the following kernel:

__kernel void prod16_TT() {
  __local float As[256];
  __local float *ap = As;

  for (int i = 0; i < 16; i++) {
    for (int k = 0; k < 16; k++) {
      ap[k] = 1;
    ap += 16;
    }
  }
}

with the following error:

ASSERTION FAILED: Unsupported constant expression
  at file /home/abrahm/prog/beignet-git/backend/src/llvm/llvm_gen_backend.cpp,
function U gbe::processConstant(llvm::Constant*, T, uint32_t) [with U
= gbe::ir::ImmediateIndex; T = gbe::NewImmediateFunctor; uint32_t =
unsigned int], line 734
Trace/breakpoint trap (core dumped)

For HSW GT3 M on Fedora 20.

(The full kernel is attached and gives the same error.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: badprog.cl
Type: application/octet-stream
Size: 2409 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/beignet/attachments/20140618/ea1dafd2/attachment.obj>


More information about the Beignet mailing list