mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix a regression when using OpenMP, and fix bug #714: the number of threads might be lower than the number of requested ones
This commit is contained in:
@@ -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))) );
|
||||
|
||||
Reference in New Issue
Block a user