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.)

Attachment: badprog.cl
Description: Binary data

_______________________________________________
Beignet mailing list
Beignet@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/beignet

Reply via email to