From d3b676cb37771740c57d974404df42aa213cad93 Mon Sep 17 00:00:00 2001 From: Tom Lin Date: Thu, 27 May 2021 10:47:46 +0100 Subject: [PATCH] Include CL_MEM_CHANNEL_INTEL directly to avoid header precedence issues --- src/sycl/SYCLStream.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/sycl/SYCLStream.h b/src/sycl/SYCLStream.h index f312009..dd13387 100644 --- a/src/sycl/SYCLStream.h +++ b/src/sycl/SYCLStream.h @@ -11,6 +11,15 @@ #include "Stream.h" +#include "CL/opencl.h" + +// XXX Intel's SYCL impl. needs CL_MEM_CHANNEL_INTEL which is provided in dpcpp's include dir +// however, depending the system configuration, the system CL header sometimes takes precedence +// we only really need this macro to refer to the extension so this is probably OK +#ifndef CL_MEM_CHANNEL_INTEL +#define CL_MEM_CHANNEL_INTEL 0x4213 +#endif + #include "CL/sycl.hpp" #define IMPLEMENTATION_STRING "SYCL"