<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px"><div class="" style=""><span class="" style="">Thanks for your suggestions. The output I showed was already with "</span><span style="font-family: monospace; font-size: 13px;" class="">echo 0 > /sys/module/i915/parameters/enable_cmd_parser". I used that to solve this error: "Assertion gpgpu->binded_buf[i]->offset != 0"</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 13px; font-family: monospace; font-style: normal; background-color: transparent;"><span style="font-family: monospace; font-size: 13px;" class=""><br class="" style=""></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 13px; font-family: monospace; font-style: normal; background-color: transparent;">I now also tried disable-batchbuffer-security.patch. The kernel patched fine with it, but
 it doesn't make any difference to my problem, the output is exactly the same.</div><div class="" style="">  </div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;" class=""> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;" class=""> <div dir="ltr" class="" style=""> <font size="2" face="Arial" class="" style=""> On Monday, 20 October 2014, 6:41, Zhigang Gong <zhigang.gong@linux.intel.com> wrote:<br class="" style=""> </font> </div>  <br class="" style=""><br class="" style=""> <div class="" style="">And if almost all unit tests fail, you may also need to read the following:<br clear="none" class="" style=""><br clear="none" class="" style="">* Almost all unit tests fail on Linux kernel 3.15/3.16.<br clear="none"
 class="" style="">  There is a known issue in some versions of linux kernel which enable register whitelist feature<br clear="none" class="" style="">  but miss some necessary registers which are required for beignet. The problematic version are<br clear="none" class="" style="">  around 3.15 and 3.16 which have commit f0a346b... but haven't commit c9224f... If it is the case,<br clear="none" class="" style="">  you can apply c9224f... manually and rebuild the kernel or just disable the parse command by<br clear="none" class="" style="">  invoke the following command (use Ubuntu as an example):<br clear="none" class="" style="">  `# echo 0 > /sys/module/i915/parameters/enable_cmd_parser`<br clear="none" class="" style=""><br clear="none" class="" style="">On Mon, Oct 20, 2014 at 12:47:41PM +0800, Zhigang Gong wrote:<br clear="none" class="" style="">> Did you apply the kernel patch for HSW mentioned in the
 README.md?<br clear="none" class="" style="">> <br clear="none" class="" style="">> * Some unit test cases, maybe 20 to 30, fail on 4th Generation (HSW) platform.<br clear="none" class="" style="">>   The 4th Generation Intel Core Processors's support requires some Linux kernel<br clear="none" class="" style="">>   modification. You need to apply the patch at:<br clear="none" class="" style="">>   [<a shape="rect" href="https://01.org/zh/beignet/downloads/linux-kernel-patch-hsw-support" target="_blank" class="" style="">https://01.org/zh/beignet/downloads/linux-kernel-patch-hsw-support</a>](<a shape="rect" href="https://01.org/zh/beignet/downloads/linux-kernel-patch-hsw-support" target="_blank" class="" style="">https://01.org/zh/beignet/downloads/linux-kernel-patch-hsw-support</a>)<br clear="none" class="" style="">> <br clear="none" class="" style="">> <br clear="none" class="" style="">> And if so, could you try
 to run the unit tests and check the result?<br clear="none" class="" style="">> <br clear="none" class="" style="">> Thanks,<br clear="none" class="" style="">> Zhigang Gong.<br clear="none" class="" style="">> <br clear="none" class="" style="">> On Sun, Oct 19, 2014 at 01:30:42PM +0100, Ernst Lenzer wrote:<br clear="none" class="" style="">> > Thanks for your reply. The screen freezes for about 5 seconds, then the errors show up. I tried running "echo -n 0 > /sys/module/i915/parameters/enable_hangcheck" before executing "pyrit selfcheck", but that freezes the screen until reboot (I waited about 10 minutes). So it looks like it must be a different issue.<br clear="none" class="" style="">> > <br clear="none" class="" style="">> > <br clear="none" class="" style="">> > On Sunday, 19 October 2014, 12:55, Yichao Yu <<a shape="rect" ymailto="mailto:yyc1992@gmail.com" href="mailto:yyc1992@gmail.com" class=""
 style="">yyc1992@gmail.com</a>> wrote:<br clear="none" class="" style="">> >  <br clear="none" class="" style="">> > <br clear="none" class="" style="">> > <br clear="none" class="" style="">> > On Sat, Oct 18, 2014 at 11:33 AM, Ernst Lenzer <<a shape="rect" ymailto="mailto:ernstlenzer@yahoo.com" href="mailto:ernstlenzer@yahoo.com" class="" style="">ernstlenzer@yahoo.com</a>> wrote:<br clear="none" class="" style="">> > > I'm trying to use pyrit with OpenCL extension with an Intel 4600 using<br clear="none" class="" style="">> > > Beignet. I'm running Debian Jessie, Kernel 3.16, pyrit 0.8.1-1 from the<br clear="none" class="" style="">> > > official Debian repositories and ran "echo 0 ><br clear="none" class="" style="">> > > /sys/module/i915/parameters/enable_cmd_parser" to avoid the known bug with<br clear="none" class="" style="">> > > kernel 3.16. "pyrit selftest"
 produces the following error in the terminal:<br clear="none" class="" style="">> > ><br clear="none" class="" style="">> > >>>>>>>>>>>>>>>>><br clear="none" class="" style="">> > > Exception in thread OpenCL-Device 'Intel(R) HD Graphics Haswell M':<br clear="none" class="" style="">> > > Traceback (most recent call last):<br clear="none" class="" style="">> > >   File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner<br clear="none" class="" style="">> > >     self.run()<br clear="none" class="" style="">> > >   File "/usr/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 113, in run<br clear="none" class="" style="">> > >     self._testComputeFunction(101)<br clear="none" class="" style="">> > >   File "/usr/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 103, in<br
 clear="none" class="" style="">> > > _testComputeFunction<br clear="none" class="" style="">> > >     raise ValueError("Test-vector does not result in correct PMK.")<br clear="none" class="" style="">> > > ValueError: Test-vector does not result in correct PMK.<br clear="none" class="" style="">> > ><br clear="none" class="" style="">> > > Exception in thread CPU-Core (SSE2):<br clear="none" class="" style="">> > > Traceback (most recent call last):<br clear="none" class="" style="">> > >   File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner<br clear="none" class="" style="">> > >     self.run()<br clear="none" class="" style="">> > >   File "/usr/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 110, in run<br clear="none" class="" style="">> > >     essid, pwlist = self.queue._gather(self.buffersize,
 timeout=0.5)<br clear="none" class="" style="">> > >   File "/usr/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 632, in<br clear="none" class="" style="">> > > _gather<br clear="none" class="" style="">> > >     self._check_cores()<br clear="none" class="" style="">> > >   File "/usr/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 490, in<br clear="none" class="" style="">> > > _check_cores<br clear="none" class="" style="">> > >     raise SystemError("The core '%s' has died unexpectedly" % core)<br clear="none" class="" style="">> > > SystemError: The core 'OpenCL-Device 'Intel(R) HD Graphics Haswell M'' has<br clear="none" class="" style="">> > > died unexpectedly<br clear="none" class="" style="">> > >>>>>>>>>>>>>>>>><br clear="none" class="" style="">> > ><br clear="none"
 class="" style="">> > > The following shows up in dmesg:<br clear="none" class="" style="">> > ><br clear="none" class="" style="">> > >>>>>>>>>>>>>>>>><br clear="none" class="" style="">> > > [drm] stuck on render ring<br clear="none" class="" style="">> > > [drm] GPU HANG: ecode 0:0xfdddfffe, in pyrit [4016], reason: Ring hung,<br clear="none" class="" style="">> > > action: reset<br clear="none" class="" style="">> > >>>>>>>>>>>>>>>>><br clear="none" class="" style="">> > <br clear="none" class="" style="">> > How long does the kernel run? The output is slightly different but<br clear="none" class="" style="">> > maybe it is related to the GPU hang check issue[1].<br clear="none" class="" style="">> > <br clear="none" class="" style="">> > [1] <a shape="rect"
 href="http://www.freedesktop.org/wiki/Software/Beignet/#knownissues" target="_blank" class="" style="">http://www.freedesktop.org/wiki/Software/Beignet/#knownissues</a><br clear="none" class="" style="">> > <br clear="none" class="" style="">> > <br clear="none" class="" style="">> > ><br clear="none" class="" style="">> > > Without Beignet pyrit works fine.<br clear="none" class="" style="">> > ><br clear="none" class="" style="">> > > _______________________________________________<br clear="none" class="" style="">> > > Beignet mailing list<br clear="none" class="" style="">> > > <a shape="rect" ymailto="mailto:Beignet@lists.freedesktop.org" href="mailto:Beignet@lists.freedesktop.org" class="" style="">Beignet@lists.freedesktop.org</a><br clear="none" class="" style="">> > > <a shape="rect" href="http://lists.freedesktop.org/mailman/listinfo/beignet" target="_blank" class=""
 style="">http://lists.freedesktop.org/mailman/listinfo/beignet</a><div class="" id="yqtfd96053" style=""><br clear="none" class="" style="">> > ><br clear="none" class="" style="">> > _______________________________________________<br clear="none" class="" style="">> > Beignet mailing list<br clear="none" class="" style="">> > <a shape="rect" ymailto="mailto:Beignet@lists.freedesktop.org" href="mailto:Beignet@lists.freedesktop.org" class="" style="">Beignet@lists.freedesktop.org</a><br clear="none" class="" style="">> > <a shape="rect" href="http://lists.freedesktop.org/mailman/listinfo/beignet" target="_blank" class="" style="">http://lists.freedesktop.org/mailman/listinfo/beignet</a><br clear="none" class="" style="">> <br clear="none" class="" style="">> > _______________________________________________<br clear="none" class="" style="">> > Beignet mailing list<br clear="none" class="" style="">>
 > <a shape="rect" ymailto="mailto:Beignet@lists.freedesktop.org" href="mailto:Beignet@lists.freedesktop.org" class="" style="">Beignet@lists.freedesktop.org</a><br clear="none" class="" style="">> > <a shape="rect" href="http://lists.freedesktop.org/mailman/listinfo/beignet" target="_blank" class="" style="">http://lists.freedesktop.org/mailman/listinfo/beignet</a><br clear="none" class="" style="">> <br clear="none" class="" style="">> _______________________________________________<br clear="none" class="" style="">> Beignet mailing list<br clear="none" class="" style="">> <a shape="rect" ymailto="mailto:Beignet@lists.freedesktop.org" href="mailto:Beignet@lists.freedesktop.org" class="" style="">Beignet@lists.freedesktop.org</a><br clear="none" class="" style="">> <a shape="rect" href="http://lists.freedesktop.org/mailman/listinfo/beignet" target="_blank" class=""
 style="">http://lists.freedesktop.org/mailman/listinfo/beignet</a><br clear="none" class="" style="">_______________________________________________<br clear="none" class="" style="">Beignet mailing list<br clear="none" class="" style=""><a shape="rect" ymailto="mailto:Beignet@lists.freedesktop.org" href="mailto:Beignet@lists.freedesktop.org" class="" style="">Beignet@lists.freedesktop.org</a><br clear="none" class="" style=""><a shape="rect" href="http://lists.freedesktop.org/mailman/listinfo/beignet" target="_blank" class="" style="">http://lists.freedesktop.org/mailman/listinfo/beignet</a><br clear="none" class="" style=""></div><br class="" style=""><br class="" style=""></div>  </div> </div>  </div> </div></body></html>