diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h index b70b2ff79..9858d0560 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h @@ -287,7 +287,7 @@ struct SyclDevice { /// the memcpy function template EIGEN_STRONG_INLINE void memcpy(void *dst, const Index *src, size_t n) const { - auto it1 = m_queue_stream->find_buffer((void*)src); + auto it1 = m_queue_stream->find_buffer(static_cast(src)); auto it2 = m_queue_stream->find_buffer(dst); auto offset= (static_cast(static_cast(src))) - it1->first; auto i= (static_cast(dst)) - it2->first; @@ -297,7 +297,7 @@ struct SyclDevice { parallel_for_setup(n/sizeof(Index), tileSize, rng, GRange); sycl_queue().submit([&](cl::sycl::handler &cgh) { auto src_acc =it1->second.template get_access(cgh); - auto dst_acc =it2->second.template get_access(cgh); + auto dst_acc =it2->second.template get_access(cgh); typedef decltype(src_acc) read_accessor; typedef decltype(dst_acc) write_accessor; cgh.parallel_for(cl::sycl::nd_range<1>(cl::sycl::range<1>(GRange), cl::sycl::range<1>(tileSize)), MemCopyFunctor(src_acc, dst_acc, rng, i, offset));