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 <[email protected]>
  • Loading branch information
SergeyKopienko committed Jul 8, 2024
1 parent 566a9a8 commit 6a8d0af
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 6a8d0af

Please sign in to comment.