From 6a8d0af65c05cd4cc29767afd68288498264bf67 Mon Sep 17 00:00:00 2001 From: Sergey Kopienko Date: Mon, 8 Jul 2024 13:09:31 +0200 Subject: [PATCH] include/oneapi/dpl/pstl/hetero/dpcpp/sycl_defs.h - add minimal compiler version check to _ONEDPL_LIBSYCL_VERSION >= 57000 Signed-off-by: Sergey Kopienko --- include/oneapi/dpl/pstl/hetero/dpcpp/sycl_defs.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/oneapi/dpl/pstl/hetero/dpcpp/sycl_defs.h b/include/oneapi/dpl/pstl/hetero/dpcpp/sycl_defs.h index e5f6b29eed0..82c4df7cac0 100644 --- a/include/oneapi/dpl/pstl/hetero/dpcpp/sycl_defs.h +++ b/include/oneapi/dpl/pstl/hetero/dpcpp/sycl_defs.h @@ -32,6 +32,9 @@ #if defined(__LIBSYCL_MAJOR_VERSION) && defined(__LIBSYCL_MINOR_VERSION) && defined(__LIBSYCL_PATCH_VERSION) # define _ONEDPL_LIBSYCL_VERSION \ (__LIBSYCL_MAJOR_VERSION * 10000 + __LIBSYCL_MINOR_VERSION * 100 + __LIBSYCL_PATCH_VERSION) +# if _ONEDPL_LIBSYCL_VERSION < 57000 +# error "oneDPL requires Intel(R) oneAPI DPC++/C++ Compiler 2022.2.0 or newer" +# endif #else # define _ONEDPL_LIBSYCL_VERSION 0 #endif