NUC5i7RYX Intel Iris Graphics 6100 support

Submitted by Joseph Duchesne on July 9, 2015, 9:47 p.m.

Details

Message ID CAG_ARvbYxWSh4qCa8ZRyhtsZ_ORCmq4K3yTCmzyA4DHb3Uoi4Q@mail.gmail.com
State New
Headers show

Not browsing as part of any series.

Commit Message

Joseph Duchesne July 9, 2015, 9:47 p.m.
I have a new Intel NUC model NUC5i7RYX that has a core i7 with "Iris
graphics 6100". Trying to use beignet opencl installed from the latest
source checkout, I got an "clinfo error, unknown device: 162b".

I poked around the source code and found that the device definition is
missing for this GPU, so I added it. The patch is at the end of this
message. The string contents and comments are entirely guesswork on my
part, but make sense to me in any case. The patch appears to work fine.

utest results are the same as I get on an NUC5i5RYK which has the Intel HD
Graphics 6000:
summary:
----------
  total: 762
  run: 761
  pass: 758
  fail: 3
  pass rate: 0.996058

Failed tests are:
compiler_half_math_sin()    [FAILED]
compiler_half_math_fmod()    [FAILED]
test_load_program_from_spir()    [FAILED]

I'm pretty sure I put things in the right place, and this allows me to use
OpenCL for my purposes.

Patch file:
From e40baf3b4e175ed2cbfc996a14455c939d0bcaff Mon Sep 17 00:00:00 2001
From: robot <joseph@avidbots.com>
Date: Thu, 9 Jul 2015 17:44:07 -0400
Subject: [PATCH] added intel 6100 support

---
 src/cl_device_data.h | 2 ++
 src/cl_device_id.c   | 2 ++
 2 files changed, 4 insertions(+)

     case PCI_CHIP_BROADWLL_W_GT3:
       DECL_INFO_STRING(brw_gt3_break, intel_brw_gt3_device, name,
"Intel(R) HD Graphics BroadWell Workstation GT2");
     case PCI_CHIP_BROADWLL_U_GT3:

Patch hide | download patch | download mbox

diff --git a/src/cl_device_data.h b/src/cl_device_data.h
index b7b64c0..43b0110 100644
--- a/src/cl_device_data.h
+++ b/src/cl_device_data.h
@@ -203,6 +203,7 @@ 
 #define PCI_CHIP_BROADWLL_M_GT3       0x1622 /* Intel(R) Broadwell Mobile
- Halo (EDRAM) - GT3 */
 #define PCI_CHIP_BROADWLL_D_GT3       0x1626 /* Intel(R) Broadwell
U-Processor - GT3 */
 #define PCI_CHIP_BROADWLL_S_GT3       0x162A /* Intel(R) Broadwell Server
- GT3 */
+#define PCI_CHIP_BROADWLL_N_GT3       0x162B /* Intel(R) Broadwell NUC
6100 - GT3 */
 #define PCI_CHIP_BROADWLL_W_GT3       0x162D /* Intel(R) Broadwell
Workstation - GT3 */
 #define PCI_CHIP_BROADWLL_U_GT3       0x162E /* Intel(R) Broadwell ULX -
GT3 */

@@ -224,6 +225,7 @@ 
   (devid == PCI_CHIP_BROADWLL_M_GT3 ||   \
    devid == PCI_CHIP_BROADWLL_D_GT3 || \
    devid == PCI_CHIP_BROADWLL_S_GT3 || \
+   devid == PCI_CHIP_BROADWLL_N_GT3 || \
    devid == PCI_CHIP_BROADWLL_W_GT3 || \
    devid == PCI_CHIP_BROADWLL_U_GT3)

diff --git a/src/cl_device_id.c b/src/cl_device_id.c
index f995550..8dae683 100644
--- a/src/cl_device_id.c
+++ b/src/cl_device_id.c
@@ -428,6 +428,8 @@  brw_gt2_break:
       DECL_INFO_STRING(brw_gt3_break, intel_brw_gt3_device, name,
"Intel(R) HD Graphics BroadWell U-Processor GT2");
     case PCI_CHIP_BROADWLL_S_GT3:
       DECL_INFO_STRING(brw_gt3_break, intel_brw_gt3_device, name,
"Intel(R) HD Graphics BroadWell Server GT2");
+    case PCI_CHIP_BROADWLL_N_GT3:
+      DECL_INFO_STRING(brw_gt3_break, intel_brw_gt3_device, name,
"Intel(R) HD Graphics BroadWell NUC GT3");