From 79c402e40e80b670eb6bbaae631d0a5694d720b8 Mon Sep 17 00:00:00 2001 From: Eugene Zhulenev Date: Fri, 30 Aug 2019 15:38:31 -0700 Subject: [PATCH] Fix shadow warnings in TensorContractionThreadPool --- .../src/Tensor/TensorContractionThreadPool.h | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h b/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h index f9d9d6d31..4adfeb560 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h @@ -920,19 +920,19 @@ struct TensorEvaluator struct EvalShardedByInnerDimContext { - EvalShardedByInnerDimContext(const Self* evaluator, int num_threads, - Scalar* result, Index m, Index n, Index k, - DoneCallback done) - : evaluator(evaluator), + EvalShardedByInnerDimContext(const Self* self, int num_threads, + Scalar* result_buffer, + Index m_size, Index n_size, Index k_size, + DoneCallback done_callback) + : evaluator(self), m_lhs_inner_dim_contiguous(evaluator->m_lhs_inner_dim_contiguous), m_rhs_inner_dim_contiguous(evaluator->m_rhs_inner_dim_contiguous), m_rhs_inner_dim_reordered(evaluator->m_rhs_inner_dim_reordered), - num_threads(num_threads), - result(result), - m(m), - n(n), - k(k), - done(std::move(done)), + result(result_buffer), + m(m_size), + n(n_size), + k(k_size), + done(std::move(done_callback)), buffer_size_bytes(m * n * sizeof(Scalar)), block_size(blockSize(k, num_threads)), num_blocks(divup(k, block_size)), @@ -1032,7 +1032,6 @@ struct TensorEvaluator