[Beignet] [QA 2014/02/13] Status of Piglit test cases

He Junyan junyan.he at inbox.com
Thu Feb 13 09:35:24 CET 2014


hi yi:

I find this cause by your ICD version.
In you ICD version, the clCreateContext failed to check

  cl_context_properties invalid_platform_context_properties[] = {
                    CL_CONTEXT_PLATFORM, (cl_context_properties)NULL,
            };
 

casues this crash.
And new version ICD has fixed this version.
Please update the ICD to at least 2.1.3



On Thu, 2014-02-13 at 12:44 +0800, He Junyan wrote:
> hi Yi:
> 
> I login to your PC and find that it should be the problem of ICD lib.
> I notice the when the program crash, the clCreateContext API in our
> beignet lib is not really be called. So the dl_open address of
> clCreateContext in ICD lib seems change to wrong address. 
> 
> I try to delete the /lib64/libOpenCL.so.1 in your PC and link it to
> /usr/local/lib/beignet/libcl.so
> This case can pass successfully.
> I can not find the ICD source code on your machine so I can not locate
> where the problem is in ICD now.
> 
> 
> 
> On Thu, 2014-02-13 at 03:01 +0000, Sun, Yi wrote:
> > Reproduce step:
> > 
> > cd  piglit && cmake . && make
> > 
> > bin/cl-api-create-context
> > 
> >  
> > 
> > Output:
> > 
> > ## Test: clCreateContext
> > (/home/OpenCL/piglit/tests/cl/api/create-context.c) ##
> > 
> >  
> > 
> > # Running on:
> > 
> > #   Platform: Experiment Intel Gen OCL Driver
> > 
> > #   OpenCL version: 1.1
> > 
> > X server found. dri2 connection failed!
> > 
> > Trying to open directly...
> > 
> > Success at /dev/dri/card0.
> > 
> > X server found. dri2 connection failed!
> > 
> > Trying to open directly...
> > 
> > Success at /dev/dri/card0.
> > 
> > X server found. dri2 connection failed!
> > 
> > Trying to open directly...
> > 
> > Success at /dev/dri/card0.
> > 
> > X server found. dri2 connection failed!
> > 
> > Trying to open directly...
> > 
> > Success at /dev/dri/card0.
> > 
> > X server found. dri2 connection failed!
> > 
> > Trying to open directly...
> > 
> > Success at /dev/dri/card0.
> > 
> > X server found. dri2 connection failed!
> > 
> > Trying to open directly...
> > 
> > Success at /dev/dri/card0.
> > 
> > Segmentation fault (core dumped)
> > 
> >  
> > 
> >  
> > 
> > I’m using Fedora 20 with kernel version 3.12.10-300.fc20.x86_64.
> > 
> > I run piglit with X server and desktop environment. 
> > 
> > And I ran piglit remotely by ssh login.
> > 
> >  
> > 
> > Back trace from gdb:
> > 
> > #0  0x00007ffff7bc00dc in clCreateContext ()
> > from /lib64/libOpenCL.so.1
> > 
> > #1  0x00000000004020b3 in piglit_cl_test (argc=1, argv=0x7fffffffe4a8,
> > config=0x6030e0 <config>, env=0x7fffffffe240)
> > 
> >     at /home/OpenCL/piglit/tests/cl/api/create-context.c:207
> > 
> > #2  0x00007ffff7df57ba in piglit_cl_api_test_run (argc=1,
> > argv=0x7fffffffe4a8, void_config=0x6030e0 <config>, version=11,
> > 
> >     platform_id=0x7ffff79a3a20 <intel_platform_data>, device_id=0x0)
> > at /home/OpenCL/piglit/tests/util/piglit-framework-cl-api.c:198
> > 
> > #3  0x00007ffff7df4883 in piglit_cl_framework_run (argc=1,
> > argv=0x7fffffffe4a8)
> > at /home/OpenCL/piglit/tests/util/piglit-framework-cl.c:264
> > 
> > #4  0x0000000000401ce8 in main (argc=1, argv=0x7fffffffe4a8)
> > at /home/OpenCL/piglit/tests/cl/api/create-context.c:52
> > 
> >  
> > 
> > Thanks
> > 
> >   --Sun, Yi
> > 
> > 
> >  
> > 
> > From: Zhigang Gong [mailto:zhigang.gong at linux.intel.com] 
> > Sent: Thursday, February 13, 2014 10:40 AM
> > To: Sun, Yi; beignet at lists.freedesktop.org
> > Cc: Zou, Nanhai; Jin, Gordon
> > Subject: RE: [Beignet] [QA 2014/02/13] Status of Piglit test cases
> > 
> > 
> >  
> > 
> > Yi,
> > 
> >  
> > 
> > Thanks for the testing result report. But I can’t reproduce the crash
> > case? Could you tell a little bit more about the crash?
> > 
> >  
> > 
> > Whether  you run piglit with a X server or without xserver?
> > 
> > If the Xserver is running, what’s the xserver’s version. Did you build
> > beignet with the same version xserver?
> > 
> > What’s the OS version, including The distro and kernel version.
> > 
> >  
> > 
> > And could you provide a gdb style back trace for the crash?
> > 
> >  
> > 
> > Thanks.
> > 
> >  
> > 
> > From:beignet-bounces at lists.freedesktop.org
> > [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of Sun, Yi
> > Sent: Thursday, February 13, 2014 9:29 AM
> > To: beignet at lists.freedesktop.org
> > Cc: Zou, Nanhai; Jin, Gordon
> > Subject: [Beignet] [QA 2014/02/13] Status of Piglit test cases
> > 
> > 
> >  
> > 
> > Changing compared with last test report:
> > 
> > 1, One failed case ‘scalar-logical-float’ changed from failed to skip.
> > 
> >  
> > 
> > summary:
> > 
> >        pass: 1498
> > 
> >        fail: 2
> > 
> >       crash: 1
> > 
> >        skip: 12
> > 
> >        warn: 0
> > 
> > dmesg-warn: 0
> > 
> > dmesg-fail: 0
> > 
> >       total: 1513
> > 
> > fail:
> > 
> > Program/Build/vector-operators         (Can be fixed by LLVM3.4)
> > 
> > Program/Execute/vector-arithmetic-int4  (Can be fixed by LLVM3.4)
> > 
> >  
> > 
> > Crash:
> > 
> > API/clCreateContext       bug VIZ-3512
> > 
> >  
> > 
> > Environment:
> > 
> > OS: Fedora 20
> > 
> > LLVM: 3.3
> > 
> >  
> > 
> > Beignet commit:
> > 
> > commit f206e982278af8c7d4aa8e9ac88a6ab19a9da1b0
> > 
> > Author: Zhigang Gong <zhigang.gong at intel.com>
> > 
> > Date:   Mon Feb 10 16:28:37 2014 +0800
> > 
> >  
> > 
> >     Bump to version 0.8.0.
> > 
> >  
> > 
> >     This version brings many improvments compare to the last released
> > version 0.3,
> > 
> >     so that we decide to bump the version to 0.8.0 directly. Before
> > the 1.0.0, we
> > 
> >     have two steps left. One is the performance optimization and the
> > other is to
> > 
> >     support OpenCL 1.2 by default.
> > 
> >  
> > 
> > Piglit commit:
> > 
> > commit f9489f1a653895ba59f23c53a95859ca39dc169c
> > 
> > Author: Dave Airlie <airlied at redhat.com>
> > 
> > Date:   Fri Feb 7 17:34:12 2014 +1000
> > 
> >  
> > 
> >     textureGather: add textureGatherOffsets to execution test (v2.1)
> > 
> >  
> > 
> >     Test for checking textureGatherOffsets from ARB_gpu_shader5 works,
> > this
> > 
> >     is tested on the nvidia binary driver and passes.
> > 
> >  
> > 
> > Thanks
> > 
> >   --Sun, Yi
> > 
> >  
> > 
> > 
> > _______________________________________________
> > Beignet mailing list
> > Beignet at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/beignet
> 
> 
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet





More information about the Beignet mailing list