Skip to content

Commit

Permalink
Fix possible case
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitriy Sobolev <[email protected]>
  • Loading branch information
dmitriy-sobolev committed Oct 22, 2024
1 parent 420269e commit 41aec8c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/oneapi/dpl/pstl/hetero_backend_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@
# endif
#endif

// If DPCPP backend is not explicitly turned off and SYCL is definitely available, enable it
#if (ONEDPL_USE_DPCPP_BACKEND || !defined(ONEDPL_USE_DPCPP_BACKEND)) && _ONEDPL_SYCL_AVAILABLE
# define _ONEDPL_BACKEND_SYCL 1
#endif

// Include SYCL headers for "possible" case with reliable configurations only
// Even if the headers are available, their inclusion may be dangerous if the compiler does not support SYCL
#if defined(__ADAPTIVECPP__)
Expand All @@ -65,7 +60,7 @@
# include <CL/sycl.hpp>
# endif
# if defined(CL_SYCL_LANGUAGE_VERSION) || defined(SYCL_LANGUAGE_VERSION)
# define _ONEDPL_BACKEND_SYCL 1
# define _ONEDPL_SYCL_AVAILABLE 1
# endif
#endif // _ONEDPL_SYCL_POSSIBLY_AVAILABLE

Expand All @@ -75,6 +70,11 @@
but SYCL* headers are not found or the SYCL implementation does not define SYCL_LANGUAGE_VERSION macro"
#endif
// If DPCPP backend is not explicitly turned off and SYCL is available, enable it
#if (ONEDPL_USE_DPCPP_BACKEND || !defined(ONEDPL_USE_DPCPP_BACKEND)) && _ONEDPL_SYCL_AVAILABLE
# define _ONEDPL_BACKEND_SYCL 1
#endif
// If at least one heterogeneous backend is available, enable them
#if _ONEDPL_BACKEND_SYCL
# if _ONEDPL_HETERO_BACKEND
Expand Down

0 comments on commit 41aec8c

Please sign in to comment.