From 144ca333219a043b2de87bca383f24b89308ba6f Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Wed, 24 Apr 2019 08:50:07 -0700 Subject: [PATCH] Remove deprecation annotation from typedef Eigen::Index Index, as it would generate too many build warnings. --- Eigen/src/Core/EigenBase.h | 2 +- .../Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Eigen/src/Core/EigenBase.h b/Eigen/src/Core/EigenBase.h index a197d2694..b195506a9 100644 --- a/Eigen/src/Core/EigenBase.h +++ b/Eigen/src/Core/EigenBase.h @@ -35,7 +35,7 @@ template struct EigenBase * \deprecated Since Eigen 3.3, its usage is deprecated. Use Eigen::Index instead. * \sa StorageIndex, \ref TopicPreprocessorDirectives. */ - EIGEN_DEPRECATED typedef Eigen::Index Index; + typedef Eigen::Index Index; // FIXME is it needed? typedef typename internal::traits::StorageKind StorageKind; diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h b/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h index 500f63e60..22db6f01b 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h @@ -1191,8 +1191,8 @@ struct TensorEvaluatorm_device.numThreads(); nt += 2) { double sequential_cost = kFixedOverHead + nt * (reduction_cost + kPerThreadOverHead);