[eigen] EIGEN_DONT_PARALLELIZE

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Here it goes the diff to add the EIGEN_DONT_PARALLELIZE control over Eigen support for OpenMP.
# HG changeset patch
# User Carlos Becker <carlosbecker@xxxxxxxxx>
# Date 1272294534 -7200
# Node ID d9a8f3d03d729f39187f166ce62c8f314b88e4c0
# Parent  daf8286ac93e06485d01a540075eea65bfe90fc9
Added EIGEN_DONT_PARALLELIZE preprocessor directive

diff -r daf8286ac93e -r d9a8f3d03d72 Eigen/Core
--- a/Eigen/Core	Mon Apr 26 00:20:20 2010 +0200
+++ b/Eigen/Core	Mon Apr 26 17:08:54 2010 +0200
@@ -125,7 +125,7 @@
   #endif
 #endif
 
-#ifdef _OPENMP
+#if (defined _OPENMP) && (!defined EIGEN_DONT_PARALLELIZE)
   #define EIGEN_HAS_OPENMP
 #endif
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/