Skip to content

Commit

Permalink
Bump up placeholder host accessor condition to the original value
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriy-sobolev committed Dec 10, 2024
1 parent 737747a commit 888038b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/oneapi/dpl/pstl/hetero/dpcpp/sycl_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@
#define _ONEDPL_SYCL2020_KERNEL_DEVICE_API_ABSENT \
(__SYCL_COMPILER_VERSION <= 20201214) || (_ONEDPL_LIBSYCL_VERSION < 50700)
#define _ONEDPL_SYCL2020_SUB_GROUP_ABSENT (_ONEDPL_LIBSYCL_VERSION < 50700)
#define _ONEDPL_SYCL2020_HOST_ACCESSOR_ABSENT (_ONEDPL_LIBSYCL_VERSION < 50700)
#define _ONEDPL_SYCL2020_SUBGROUP_BARRIER_ABSENT (_ONEDPL_LIBSYCL_VERSION < 50700)
// The unified future supporting USM memory and buffers is only supported after DPC++ 2023.1 but not by 2023.2.
#define _ONEDPL_SYCL2020_BUFFER_ALLOCATOR_ABSENT (_ONEDPL_LIBSYCL_VERSION < 60000)
#define _ONEDPL_SYCL2020_LOCAL_ACCESSOR_ABSENT (_ONEDPL_LIBSYCL_VERSION < 60000)
#define _ONEDPL_SYCL2020_UNIFIED_USM_BUFFER_ABSENT (_ONEDPL_LIBSYCL_VERSION < 60100 || _ONEDPL_LIBSYCL_VERSION == 60200)
#define _ONEDPL_SYCL2020_HOST_TARGET_ABSENT (_ONEDPL_LIBSYCL_VERSION < 60200)
#define _ONEDPL_SYCL2020_HOST_ACCESSOR_ABSENT (_ONEDPL_LIBSYCL_VERSION < 60200)
#define _ONEDPL_SYCL2020_GET_HOST_ACCESS_ABSENT (_ONEDPL_LIBSYCL_VERSION < 60200)
#define _ONEDPL_SYCL2020_LOCAL_ACC_GET_MULTI_PTR_ABSENT (_ONEDPL_LIBSYCL_VERSION < 70000)
Expand Down
2 changes: 1 addition & 1 deletion include/oneapi/dpl/pstl/hetero/dpcpp/utils_ranges_sycl.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ inline constexpr all_view_fn<sycl::access::mode::write, __dpl_sycl::__target_dev

#if !_ONEDPL_SYCL2020_HOST_ACCESSOR_ABSENT
inline constexpr all_host_view_fn
#elif _ONEDPL_LIBSYCL_VERSION < 50700
#elif _ONEDPL_LIBSYCL_VERSION < 60200
inline constexpr all_view_fn<sycl::access::mode::read_write, __dpl_sycl::__host_target,
sycl::access::placeholder::false_t>
#endif
Expand Down

0 comments on commit 888038b

Please sign in to comment.