From 1f57a435c85fc0460a4616a09cd0b467a969dd49 Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk Date: Thu, 21 Oct 2021 07:08:04 -0500 Subject: [PATCH] sycl::program is deprecated and was removed from open source SYCL https://github.com/intel/llvm/pull/4461 It can be turned back on if `__SYCL_INTERNAL_API` preprocessor variable is set loading sycl headers --- dpctl-capi/source/dpctl_sycl_program_interface.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dpctl-capi/source/dpctl_sycl_program_interface.cpp b/dpctl-capi/source/dpctl_sycl_program_interface.cpp index 78945e6aea..46b32c2de0 100644 --- a/dpctl-capi/source/dpctl_sycl_program_interface.cpp +++ b/dpctl-capi/source/dpctl_sycl_program_interface.cpp @@ -24,6 +24,11 @@ /// //===----------------------------------------------------------------------===// +#ifndef __SYCL_INTERNAL_API +// make sure that sycl::program is defined and implemented +#define __SYCL_INTERNAL_API +#endif + #include "dpctl_sycl_program_interface.h" #include "Config/dpctl_config.h" #include "Support/CBindingWrapping.h"