Created attachment 131786 [details] utest_run output for INTEL_DEVID_OVERRIDE=0x1906 Beignet: 1.3.1 Kernel: 4.9.6-1 Acer Aspire E 15 laptop CPU: Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz GPU: VGA compatible controller [0300]: Intel Corporation Iris Graphics 550 [8086:1927] (rev 0a) Mesa works properly on this system (both OpenGL and Vulkan) clinfo fails: $ ./clinfo cl_get_gt_device(): error, unknown device: 1927 cl_get_gt_device(): error, unknown device: 1927 Platform #0 Name: Intel(R) OpenCL Version: OpenCL 2.0 LINUX Device #0 Name: Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz Type: CPU Version: OpenCL 2.0 (Build 400) Global memory size: 7 GB 756 MB 708 kB Local memory size: 32 kB Max work group size: 8192 Max work item sizes: (8192, 8192, 8192) Platform #1 Name: Intel Gen OCL Driver Version: OpenCL 2.0 beignet 1.3 cl_get_gt_device(): error, unknown device: 1927 ./clinfo: Cannot get the number of OpenCL devices available on this platform. I tried $INTEL_DEVID_OVERRIDE (with different values) with no luck: $ INTEL_DEVID_OVERRIDE=0x1906 ./clinfo Beignet: self-test failed: (3, 7, 5) + (5, 7, 3) returned (3, 7, 5) See README.md or http://www.freedesktop.org/wiki/Software/Beignet/ Beignet: disabling non-working device Beignet: disabling non-working device utests: $ ./utest_run platform number 1 platform_profile "FULL_PROFILE" platform_name "Intel Gen OCL Driver" platform_vendor "Intel" platform_version "OpenCL 2.0 beignet 1.3" platform_extensions "cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_3d_image_writes cl_khr_image2d_from_buffer cl_khr_depth_images cl_khr_spir cl_khr_icd cl_intel_accelerator cl_intel_subgroups cl_intel_subgroups_short cl_khr_gl_sharing" cl_get_gt_device(): error, unknown device: 1927 error calling clGetDeviceIDs Failed to initialize cl device. summary: ---------- total: 1000 run: 0 pass: 0 fail: 0 pass rate: 0.000000 $ INTEL_DEVID_OVERRIDE=0x1906 ./utest_run [...full log attached...] summary: ---------- total: 1000 run: 959 pass: 51 fail: 908 pass rate: 0.053180 The same Beignet binaries work on another Skylake system (i5-6400)
Hi Jacek, It seems we did not update the supported PCIID as there are some new skylake device. I will send a patch to update these PCIIDs. We do not have devices with ALL of the PCIIDs,so could you have a try with utest to see if the patch works fine? Thanks Xiuli
The patch is here, could you try it and give me some feedback. https://patchwork.freedesktop.org/patch/161569/ Thanks Xiuli
Created attachment 131955 [details] utest_run output after the patch applied
Much better now: [...] compiler_fill_gl_image() [FAILED] Error: error calling clBuildProgram with error CL_BUILD_PROGRAM_FAILURE at file [...]/utests/utest_helper.cpp, function cl_kernel_init, line 269 summary: ---------- total: 1000 run: 959 pass: 958 fail: 1 pass rate: 0.998957
What the LLVM version you are using? That's a known issue with LLVM 3.8+ and it has been fixed by https://cgit.freedesktop.org/beignet/commit/?id=8e119eb32e01066c23c3d96bd2b42032e03f7628 Thanks Xiuli
I use LLVM 39.1 and the patch fixed the last test for me. Thank you, Xiuli. Jacek
OK, I will close this bug report after my patch is merged in. And you can try our master branch then. Thanks Xiuli
-- 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/40.
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.