Skip to content

Commit

Permalink
Small fix
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 21, 2024
1 parent 6e6e985 commit 4d8dd57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/oneapi/dpl/pstl/hetero_backend_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
# if _ONEDPL_SYCL_LANGUAGE_VERSION_PRESENT
# define _ONEDPL_SYCL_AVAILABLE 1
// DPC++/C++ Compiler pre-defines SYCL_LANGUAGE_VERSION with -fsycl option
# elif _ONEDPL_DPCPP_COMPILER
# elif !_ONEDPL_DPCPP_COMPILER
// Other implementations might define the macro in the SYCL header
# define _ONEDPL_SYCL_POSSIBLY_AVAILABLE 1
# endif
Expand Down
6 changes: 3 additions & 3 deletions test/support/test_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@
// If DPCPP is requested, enable its testing
#if ONEDPL_USE_DPCPP_BACKEND
# define TEST_DPCPP_BACKEND_PRESENT 1
#elif !defined(ONEDPL_USE_DPCPP_BACKEND)
# define TEST_DPCPP_BACKEND_PRESENT 0
#else
// Hack: delayed expansion based on _ONEDPL_HETERO_BACKEND, defined in oneDPL
// TODO: avoid the hack by moving TEST_DPCPP_BACKEND_PRESENT into separate header and including after oneDPL headers
// this will require to update all tests to include the new header
#elif !defined(ONEDPL_USE_DPCPP_BACKEND)
# define TEST_DPCPP_BACKEND_PRESENT (_ONEDPL_HETERO_BACKEND)
#else
# define TEST_DPCPP_BACKEND_PRESENT 0
#endif

#ifdef __SYCL_UNNAMED_LAMBDA__
Expand Down

0 comments on commit 4d8dd57

Please sign in to comment.