Bug 98704 - compilation warnings and ASSERTION FAILED: insn2.header.opcode == GEN_OPCODE_NOP
Summary: compilation warnings and ASSERTION FAILED: insn2.header.opcode == GEN_OPCODE_NOP
Alias: None
Product: Beignet
Classification: Unclassified
Component: Beignet (show other bugs)
Version: unspecified
Hardware: IA64 (Itanium) Linux (All)
: highest major
Assignee: Zhigang Gong
QA Contact:
Depends on:
Reported: 2016-11-13 12:22 UTC by shiva
Modified: 2018-10-12 21:32 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:

compilation data cmake and make (24.93 KB, text/plain)
2016-11-13 12:22 UTC, shiva
stack trace (2.69 KB, text/plain)
2017-01-12 02:14 UTC, chris reiss

Description shiva 2016-11-13 12:22:08 UTC
Created attachment 127947 [details]
compilation data cmake and make

linux mint 18 sarah based on 16.04
using beignet 1.2.1
processor intel i3-3220 , intel hd graphics

problem after installation

[OPENCL]:Found suitable OpenCL device [Intel(R) HD Graphics IvyBridge GT1] with 2016411648 bytes of GPU memory
[OPENCL]:Using platform: Intel Gen OCL Driver
[OPENCL]:Using device: Intel(R) HD Graphics IvyBridge GT1(OpenCL 1.2 beignet 1.2)
ASSERTION FAILED: insn2.header.opcode == GEN_OPCODE_NOP
  at file /home/shiva/Beignet-1.2.1-Source/backend/src/backend/gen_encoder.cpp, function virtual void gbe::GenEncoder::patchJMPI(uint32_t, int32_t, int32_t), line 971
Trace/breakpoint trap
Comment 1 rongyang 2016-11-28 03:07:23 UTC
Is it convenient to attach your kernel, or send by email to debug?
It is a known issue (similar bugs https://bugs.freedesktop.org/show_bug.cgi?id=98704.
), but the workaround can't fix the your problem, so need the kernel to find out the root cause.
Comment 2 shiva 2017-01-10 06:52:02 UTC
i am using kernel v4.9 i.e  linux-headers-4.9.0-040900-generic_4.9.0-040900.201612111631  
from  http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9/
Comment 3 chris reiss 2017-01-11 21:06:47 UTC
Same problem,

Ubuntu 16.10  (4.8.0-32-generic)
Graphics Intel HD 4400

OpenCL *is* working in general, but throws this assertion when running zogminer.

I'm a developer with some minor experience on WebKit - you want me to set up a debugger and try for a stacktrace and all ?
Comment 4 chris reiss 2017-01-12 02:14:09 UTC
Created attachment 128910 [details]
stack trace

Here;s just a quick stack trace.   if I get some time, I may step into
this code and perhaps lend a hand on a fix.   I'm new here so pardon (and inform)  me of any doofus breaches of protocol and procedure and such
Comment 5 Rebecca Palmer 2017-02-02 22:29:19 UTC
I suspect they meant kernel as in OpenCL source code, not kernel as in operating system.

If possible, also try the current development version (i.e. git clone https://anongit.freedesktop.org/git/beignet.git ; instructions at https://www.freedesktop.org/wiki/Software/Beignet/)
Comment 6 GitLab Migration User 2018-10-12 21:32:49 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/beignet/beignet/issues/79.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.