diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorForwardDeclarations.h b/unsupported/Eigen/CXX11/src/Tensor/TensorForwardDeclarations.h index e6aa0f334..9a012c176 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorForwardDeclarations.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorForwardDeclarations.h @@ -27,7 +27,7 @@ namespace TensorSycl { namespace internal{ template class ReductionFunctor; template -struct FullReductionKernelFunctor; +class FullReductionKernelFunctor; } } #endif diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorSyclFunctors.h b/unsupported/Eigen/CXX11/src/Tensor/TensorSyclFunctors.h index 85c280588..710e22474 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorSyclFunctors.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorSyclFunctors.h @@ -101,7 +101,8 @@ template < typename HostExpr, typename FunctorExpr, typename Tuple_of_Acc, typen template -struct FullReductionKernelFunctor{ +class FullReductionKernelFunctor{ +public: typedef typename TensorSycl::internal::createPlaceHolderExpression::Type PlaceHolderExpr; OutAccessor tmp_global_accessor; Index rng , remaining, red_factor;