aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/product_large.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-02-18 15:19:23 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-02-18 15:19:23 +0100
commitc7bb1e8ea8dfc984788d0cb77b82a90468393c2e (patch)
tree7c215b4e3975cfb9d23df098bf76c0ed9bcb3b89 /test/product_large.cpp
parent548b7813805d9e314f97eb6f731d711df663a46b (diff)
Fix a regression when using OpenMP, and fix bug #714: the number of threads might be lower than the number of requested ones
Diffstat (limited to 'test/product_large.cpp')
-rw-r--r--test/product_large.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/product_large.cpp b/test/product_large.cpp
index ffb8b7bf2..84c489580 100644
--- a/test/product_large.cpp
+++ b/test/product_large.cpp
@@ -64,8 +64,7 @@ void test_product_large()
#endif
// Regression test for bug 714:
-#ifdef EIGEN_HAS_OPENMP
- std::cout << "Testing omp_set_dynamic(1)\n";
+#if defined EIGEN_HAS_OPENMP
omp_set_dynamic(1);
for(int i = 0; i < g_repeat; i++) {
CALL_SUBTEST_6( product(Matrix<float,Dynamic,Dynamic>(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );