From 7d08fa805a38f9ebb9e0e487c4e2d23d32a0fcde Mon Sep 17 00:00:00 2001 From: Mehdi Goli Date: Fri, 28 Jun 2019 10:08:23 +0100 Subject: [SYCL] This PR adds the minimum modifications to the Eigen unsupported module required to run it on devices supporting SYCL. * Abstracting the pointer type so that both SYCL memory and pointer can be captured. * Converting SYCL virtual pointer to SYCL device memory in Eigen evaluator class. * Binding SYCL placeholder accessor to command group handler by using bind method in Eigen evaluator node. * Adding SYCL macro for controlling loop unrolling. * Modifying the TensorDeviceSycl.h and SYCL executor method to adopt the above changes. --- unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h b/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h index 4b6540c07..c9bccfc66 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h @@ -89,7 +89,10 @@ struct traits > typedef typename remove_reference::type _XprTypeNested; static const int NumDimensions = XprTraits::NumDimensions; static const int Layout = XprTraits::Layout; - typedef typename TypeConversion::type PointerType; + typedef typename TypeConversion::type + PointerType; }; template @@ -164,9 +167,10 @@ struct traits > static const int Layout = XprTraits::Layout; typedef typename TypeConversion::val, - typename traits::PointerType, - typename traits::PointerType>::type - >::type PointerType; + typename traits::PointerType, + typename traits::PointerType>::type + >::type + PointerType; enum { Flags = 0 }; @@ -245,9 +249,10 @@ struct traits::val, - typename traits::PointerType, - typename traits::PointerType>::type - >::type PointerType; + typename traits::PointerType, + typename traits::PointerType>::type + >::type + PointerType; enum { Flags = 0 }; -- cgit v1.2.3