Skip to content

Commit

Permalink
include/oneapi/dpl/pstl/hetero/dpcpp/sycl_defs.h - add minimal compil…
Browse files Browse the repository at this point in the history
…er version check to _ONEDPL_LIBSYCL_VERSION >= 57000

Signed-off-by: Sergey Kopienko <sergey.kopienko@intel.com>
  • Loading branch information
SergeyKopienko committed Sep 16, 2024
1 parent 37683ee commit c77f09c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/oneapi/dpl/pstl/hetero/dpcpp/sycl_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c77f09c

Please sign in to comment.