[Beignet] kernel compile assertion failure

Song, Ruiling ruiling.song at intel.com
Wed Jun 18 01:03:36 PDT 2014


Thanks for reporting the bug, I just sent a patch " [PATCH] GBE: Correctly process constant for phi instruction " to fix the bug. You can have a try.

Thanks!
Ruiling
-----Original Message-----
From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of Abrahm Scully
Sent: Wednesday, June 18, 2014 2:44 PM
To: beignet at lists.freedesktop.org
Subject: [Beignet] kernel compile assertion failure

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


More information about the Beignet mailing list