From 8d4a0e6753117cbabf80e4b6fa13d3d3b6ba0327 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 26 Feb 2010 14:57:22 +0100 Subject: [PATCH] fix compilation without openmp --- Eigen/src/Core/products/GeneralMatrixMatrix.h | 2 ++ Eigen/src/Core/products/Parallelizer.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Eigen/src/Core/products/GeneralMatrixMatrix.h b/Eigen/src/Core/products/GeneralMatrixMatrix.h index ca3d1d200..6f7dee743 100644 --- a/Eigen/src/Core/products/GeneralMatrixMatrix.h +++ b/Eigen/src/Core/products/GeneralMatrixMatrix.h @@ -87,6 +87,7 @@ static void run(int rows, int cols, int depth, ei_gemm_pack_lhs pack_lhs; ei_gebp_kernel > gebp; + #ifdef EIGEN_HAS_OPENMP if(info) { // this is the parallel version! @@ -145,6 +146,7 @@ static void run(int rows, int cols, int depth, ei_aligned_stack_delete(Scalar, w, sizeW); } else + #endif { // this is the sequential version! Scalar* blockA = ei_aligned_stack_new(Scalar, kc*mc); diff --git a/Eigen/src/Core/products/Parallelizer.h b/Eigen/src/Core/products/Parallelizer.h index e7a940992..ad998572b 100644 --- a/Eigen/src/Core/products/Parallelizer.h +++ b/Eigen/src/Core/products/Parallelizer.h @@ -101,7 +101,7 @@ template void ei_run_parallel_gemm(const Functor& func, int rows, int cols) { #ifndef EIGEN_HAS_OPENMP - func(0,size1, 0,size2); + func(0,rows, 0,cols); #else int threads = omp_get_max_threads();