From 878845cb25c1ba9e56883fd0654eafb55a22fc34 Mon Sep 17 00:00:00 2001 From: Eugene Zhulenev Date: Fri, 28 Jun 2019 11:13:44 -0700 Subject: Add block access to TensorReverseOp and make sure that TensorForcedEval uses block access when preferred --- unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h b/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h index 7b5842571..647c98d4e 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h @@ -346,7 +346,7 @@ class TensorExecutor= -1 && thread_idx < num_threads); - Scalar* thread_buf = reinterpret_cast( + ScalarNoConst* thread_buf = reinterpret_cast( static_cast(buf) + aligned_blocksize * (thread_idx + 1)); for (StorageIndex i = firstIdx; i < lastIdx; ++i) { auto block = block_mapper.GetBlockForIndex(i, thread_buf); -- cgit v1.2.3