From c7bb1e8ea8dfc984788d0cb77b82a90468393c2e Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 18 Feb 2015 15:19:23 +0100 Subject: Fix a regression when using OpenMP, and fix bug #714: the number of threads might be lower than the number of requested ones --- test/product_large.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/product_large.cpp') 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(internal::random(1,EIGEN_TEST_MAX_SIZE), internal::random(1,EIGEN_TEST_MAX_SIZE))) ); -- cgit v1.2.3