From b33dbb57659fd475d77b111df984329b3db639ac Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Mon, 13 Nov 2023 21:30:39 +0000 Subject: [PATCH] Fix implicit narrowing warning in Parallelizer.h. --- Eigen/src/Core/products/Parallelizer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Core/products/Parallelizer.h b/Eigen/src/Core/products/Parallelizer.h index 68ae78a85..c3172aa49 100644 --- a/Eigen/src/Core/products/Parallelizer.h +++ b/Eigen/src/Core/products/Parallelizer.h @@ -212,7 +212,7 @@ EIGEN_STRONG_INLINE void parallelize_gemm(const Functor& func, Index rows, Index // Note that the actual number of threads might be lower than the number of // requested ones Index actual_threads = omp_get_num_threads(); - GemmParallelInfo info(i, actual_threads, task_info); + GemmParallelInfo info(i, int(actual_threads), task_info); Index blockCols = (cols / actual_threads) & ~Index(0x3); Index blockRows = (rows / actual_threads); @@ -237,7 +237,7 @@ EIGEN_STRONG_INLINE void parallelize_gemm(const Functor& func, Index rows, Index auto task = [=, &func, &barrier, &task_info](int i) { Index actual_threads = threads; - GemmParallelInfo info(i, actual_threads, task_info); + GemmParallelInfo info(i, int(actual_threads), task_info); Index blockCols = (cols / actual_threads) & ~Index(0x3); Index blockRows = (rows / actual_threads); blockRows = (blockRows/Functor::Traits::mr)*Functor::Traits::mr;