From b4ef323e90789fb30cd3bb43d564cd25817eaf73 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sat, 3 Jul 2010 12:20:13 +0200 Subject: fix bug with openmp --- Eigen/src/Core/products/Parallelizer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Eigen/src/Core/products/Parallelizer.h') diff --git a/Eigen/src/Core/products/Parallelizer.h b/Eigen/src/Core/products/Parallelizer.h index b7fe4151b..e27c8edab 100644 --- a/Eigen/src/Core/products/Parallelizer.h +++ b/Eigen/src/Core/products/Parallelizer.h @@ -108,6 +108,8 @@ void ei_parallelize_gemm(const Functor& func, Index rows, Index cols) if(threads==1) return func(0,rows, 0,cols); + func.initParallelSession(); + Index blockCols = (cols / threads) & ~Index(0x3); Index blockRows = (rows / threads) & ~Index(0x7); -- cgit v1.2.3