[SYCL-2020]- null placeholder accessor issue in Reduction SYCL test

This commit is contained in:
Mehdi Goli
2023-02-22 17:44:53 +00:00
committed by Rasmus Munk Larsen
parent 6bcd941ee3
commit c3f67063ed
3 changed files with 45 additions and 6 deletions

View File

@@ -26,8 +26,10 @@
#ifdef SYCL_COMPILER_IS_DPCPP
template <typename T>
struct cl::sycl::is_device_copyable<
const OffByOneScalar<T>,
std::enable_if_t<!std::is_trivially_copyable<const OffByOneScalar<T>>::value>> : std::true_type {};
OffByOneScalar<T>,
std::enable_if_t<!(!std::is_trivially_copyable<OffByOneScalar<T>>::value &&
(std::is_const_v<OffByOneScalar<T>> || std::is_volatile_v<OffByOneScalar<T>>))>>
: std::true_type {};
#endif
template <typename DataType, int DataLayout, typename IndexType>