diff options
author | 2010-07-03 12:20:13 +0200 | |
---|---|---|
committer | 2010-07-03 12:20:13 +0200 | |
commit | b4ef323e90789fb30cd3bb43d564cd25817eaf73 (patch) | |
tree | 235eb011f32a187b46dd7944dca0c810caa9e249 /Eigen/src/Core/products/Parallelizer.h | |
parent | d6791e8f3d365f1cffdb4a64ed5b2dd3e897ad38 (diff) |
fix bug with openmp
Diffstat (limited to 'Eigen/src/Core/products/Parallelizer.h')
-rw-r--r-- | Eigen/src/Core/products/Parallelizer.h | 2 |
1 files changed, 2 insertions, 0 deletions
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); |