diff options
author | Luke Iwanski <luke@codeplay.com> | 2016-12-20 16:18:15 +0000 |
---|---|---|
committer | Luke Iwanski <luke@codeplay.com> | 2016-12-20 16:18:15 +0000 |
commit | 8245851d1b08886bb395471ba3ba8ab8a29f4c58 (patch) | |
tree | 8e3531a208c49bcfa4325c05d616c290067ae6e5 | |
parent | 548ed30a1cd2d6a92fac270c647069cc3e34e0e0 (diff) |
Matching parameters order between lambda and the functor.
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorSyclRun.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorSyclRun.h b/unsupported/Eigen/CXX11/src/Tensor/TensorSyclRun.h index 5862c9795..481635fd5 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorSyclRun.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorSyclRun.h @@ -31,16 +31,11 @@ namespace TensorSycl { typedef typename internal::createPlaceHolderExpression<Expr>::Type PlaceHolderExpr; typedef typename Expr::Index Index; - Index range; FunctorExpr functors; TupleType tuple_of_accessors; - ExecExprFunctorKernel(Index range_ - , - FunctorExpr functors_, TupleType tuple_of_accessors_ - ) - :range(range_) - , functors(functors_), tuple_of_accessors(tuple_of_accessors_) - {} + Index range; + ExecExprFunctorKernel(Index range_, FunctorExpr functors_, TupleType tuple_of_accessors_) + :range(range_), functors(functors_), tuple_of_accessors(tuple_of_accessors_){} void operator()(cl::sycl::nd_item<1> itemID) { typedef typename internal::ConvertToDeviceExpression<Expr>::Type DevExpr; auto device_expr =internal::createDeviceExpression<DevExpr, PlaceHolderExpr>(functors, tuple_of_accessors); |