diff options
author | 2017-02-15 16:28:12 +0000 | |
---|---|---|
committer | 2017-02-15 16:28:12 +0000 | |
commit | 91982b91c02deb5e1ce557bbc5c96fee19c636ed (patch) | |
tree | f2face079780ae5b385d2fbb63a308ec12bb1051 /unsupported/Eigen/CXX11/src/Tensor/TensorSyclExtractAccessor.h | |
parent | b1e312edd607bcfa99192d53f55b2ac974644c44 (diff) |
Adding TensorLayoutSwapOp for sycl.
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorSyclExtractAccessor.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorSyclExtractAccessor.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorSyclExtractAccessor.h b/unsupported/Eigen/CXX11/src/Tensor/TensorSyclExtractAccessor.h index b512d43f6..213dd25ea 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorSyclExtractAccessor.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorSyclExtractAccessor.h @@ -226,6 +226,21 @@ SYCLTENSORCHIPPINGOPEXTACC() #undef SYCLTENSORCHIPPINGOPEXTACC +// specialisation of the \ref ExtractAccessor struct when the node type is +/// TensorLayoutSwapOp. +#define SYCLTENSORLAYOUTSWAPOPEXTACC(CVQual)\ +template<typename XprType, typename Dev>\ +struct ExtractAccessor<TensorEvaluator<CVQual TensorLayoutSwapOp<XprType>, Dev> >{\ + static inline auto getTuple(cl::sycl::handler& cgh, const TensorEvaluator<CVQual TensorLayoutSwapOp<XprType>, Dev>& eval)\ + RETURN_CPP11(AccessorConstructor::getTuple(cgh, eval.impl()))\ +}; + +SYCLTENSORLAYOUTSWAPOPEXTACC(const) +SYCLTENSORLAYOUTSWAPOPEXTACC() +#undef SYCLTENSORLAYOUTSWAPOPEXTACC + + + /// template deduction for \ref ExtractAccessor template <typename Evaluator> auto createTupleOfAccessors(cl::sycl::handler& cgh, const Evaluator& eval) |