Merged in mehdi_goli/upstr_benoit/ComputeCppNewReleaseFix (pull request PR-16)

Changes required for new ComputeCpp CE version.
This commit is contained in:
Benoit Steiner 2017-10-13 20:56:01 +00:00
commit 688451409d

View File

@ -46,8 +46,8 @@ struct SyclAllocator {
namespace Eigen {
#define ConvertToActualTypeSycl(Scalar, buf_acc) reinterpret_cast<typename cl::sycl::global_ptr<Scalar>::pointer_t>((&(*buf_acc.get_pointer())))
#define ConvertToActualSyclOffset(Scalar, offset) offset/sizeof(Scalar)
#define ConvertToActualTypeSycl(Scalar, buf_acc) static_cast<Scalar*>(static_cast<void*>(((buf_acc.get_pointer().get()))))
#define ConvertToActualSyclOffset(Scalar, offset) offset/sizeof(Scalar)
template <typename Scalar, typename read_accessor, typename write_accessor> class MemCopyFunctor {