<div dir="ltr">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". <div><br></div><div>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.</div><div><br></div><div>utest results are the same as I get on an NUC5i5RYK which has the Intel HD Graphics 6000:</div><div><div>summary:</div><div>----------</div><div>  total: 762</div><div>  run: 761</div><div>  pass: 758</div><div>  fail: 3</div><div>  pass rate: 0.996058</div></div><div><br></div><div>Failed tests are:</div><div><div>compiler_half_math_sin()    [FAILED]</div><div>compiler_half_math_fmod()    [FAILED]</div><div>test_load_program_from_spir()    [FAILED]</div></div><div><br></div><div>I'm pretty sure I put things in the right place, and this allows me to use OpenCL for my purposes.</div><div><br></div><div>Patch file:</div><div><div>From e40baf3b4e175ed2cbfc996a14455c939d0bcaff Mon Sep 17 00:00:00 2001</div><div>From: robot <<a href="mailto:joseph@avidbots.com">joseph@avidbots.com</a>></div><div>Date: Thu, 9 Jul 2015 17:44:07 -0400</div><div>Subject: [PATCH] added intel 6100 support</div><div><br></div><div>---</div><div> src/cl_device_data.h | 2 ++</div><div> src/cl_device_id.c   | 2 ++</div><div> 2 files changed, 4 insertions(+)</div><div><br></div><div>diff --git a/src/cl_device_data.h b/src/cl_device_data.h</div><div>index b7b64c0..43b0110 100644</div><div>--- a/src/cl_device_data.h</div><div>+++ b/src/cl_device_data.h</div><div>@@ -203,6 +203,7 @@</div><div> #define PCI_CHIP_BROADWLL_M_GT3       0x1622 /* Intel(R) Broadwell Mobile - Halo (EDRAM) - GT3 */</div><div> #define PCI_CHIP_BROADWLL_D_GT3       0x1626 /* Intel(R) Broadwell U-Processor - GT3 */</div><div> #define PCI_CHIP_BROADWLL_S_GT3       0x162A /* Intel(R) Broadwell Server - GT3 */</div><div>+#define PCI_CHIP_BROADWLL_N_GT3       0x162B /* Intel(R) Broadwell NUC 6100 - GT3 */</div><div> #define PCI_CHIP_BROADWLL_W_GT3       0x162D /* Intel(R) Broadwell Workstation - GT3 */</div><div> #define PCI_CHIP_BROADWLL_U_GT3       0x162E /* Intel(R) Broadwell ULX - GT3 */</div><div><br></div><div>@@ -224,6 +225,7 @@</div><div>   (devid == PCI_CHIP_BROADWLL_M_GT3 ||   \</div><div>    devid == PCI_CHIP_BROADWLL_D_GT3 || \</div><div>    devid == PCI_CHIP_BROADWLL_S_GT3 || \</div><div>+   devid == PCI_CHIP_BROADWLL_N_GT3 || \</div><div>    devid == PCI_CHIP_BROADWLL_W_GT3 || \</div><div>    devid == PCI_CHIP_BROADWLL_U_GT3)</div><div><br></div><div>diff --git a/src/cl_device_id.c b/src/cl_device_id.c</div><div>index f995550..8dae683 100644</div><div>--- a/src/cl_device_id.c</div><div>+++ b/src/cl_device_id.c</div><div>@@ -428,6 +428,8 @@ brw_gt2_break:</div><div>       DECL_INFO_STRING(brw_gt3_break, intel_brw_gt3_device, name, "Intel(R) HD Graphics BroadWell U-Processor GT2");</div><div>     case PCI_CHIP_BROADWLL_S_GT3:</div><div>       DECL_INFO_STRING(brw_gt3_break, intel_brw_gt3_device, name, "Intel(R) HD Graphics BroadWell Server GT2");</div><div>+    case PCI_CHIP_BROADWLL_N_GT3:</div><div>+      DECL_INFO_STRING(brw_gt3_break, intel_brw_gt3_device, name, "Intel(R) HD Graphics BroadWell NUC GT3");</div><div>     case PCI_CHIP_BROADWLL_W_GT3:</div><div>       DECL_INFO_STRING(brw_gt3_break, intel_brw_gt3_device, name, "Intel(R) HD Graphics BroadWell Workstation GT2");</div><div>     case PCI_CHIP_BROADWLL_U_GT3:</div><div>-- </div><div>1.9.1</div><div><br></div></div></div>