From 13c3327f5cf829fd9d04a2ab46861e722cd74ca0 Mon Sep 17 00:00:00 2001 From: Eugene Zhulenev Date: Tue, 12 Nov 2019 10:12:28 -0800 Subject: Remove legacy block evaluation support --- unsupported/Eigen/CXX11/src/Tensor/TensorEvalTo.h | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorEvalTo.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorEvalTo.h b/unsupported/Eigen/CXX11/src/Tensor/TensorEvalTo.h index cd1338c66..722032a3a 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorEvalTo.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorEvalTo.h @@ -110,7 +110,6 @@ struct TensorEvaluator, Device> enum { IsAligned = TensorEvaluator::IsAligned, PacketAccess = TensorEvaluator::PacketAccess, - BlockAccess = true, BlockAccessV2 = true, PreferBlockAccess = false, Layout = TensorEvaluator::Layout, @@ -120,9 +119,6 @@ struct TensorEvaluator, Device> static const int NumDims = internal::traits::NumDimensions; - typedef typename internal::TensorBlock TensorBlock; - typedef typename internal::TensorBlockReader TensorBlockReader; - //===- Tensor block evaluation strategy (see TensorBlock.h) -------------===// typedef internal::TensorBlockDescriptor TensorBlockDesc; typedef internal::TensorBlockScratchAllocator TensorBlockScratch; @@ -173,13 +169,6 @@ struct TensorEvaluator, Device> m_impl.getResourceRequirements(resources); } - EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void evalBlock(TensorBlock* block) { - TensorBlock eval_to_block(block->first_coeff_index(), block->block_sizes(), - block->tensor_strides(), block->tensor_strides(), - m_buffer + block->first_coeff_index()); - m_impl.block(&eval_to_block); - } - EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void evalBlockV2( TensorBlockDesc& desc, TensorBlockScratch& scratch) { // Add `m_buffer` as destination buffer to the block descriptor. @@ -216,11 +205,6 @@ struct TensorEvaluator, Device> return internal::ploadt(m_buffer + index); } - EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void block(TensorBlock* block) const { - assert(m_buffer != NULL); - TensorBlockReader::Run(block, m_buffer); - } - EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorOpCost costPerCoeff(bool vectorized) const { // We assume that evalPacket or evalScalar is called to perform the // assignment and account for the cost of the write here. -- cgit v1.2.3