diff options
author | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2014-07-16 15:41:10 +0200 |
---|---|---|
committer | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2014-07-16 15:41:10 +0200 |
commit | cd0b433540cf8722be689d96a915e184c9cbb22b (patch) | |
tree | 1fcdd68f1ad70e96a594a8dfe80ef3bbb598a37b /test/product_large.cpp | |
parent | 338d2ec42b99a17f4fa1759f27bf8735b4aea974 (diff) |
Regression test for bug #714.
Note that the bug only occurs on some compilers and is not fixed yet
Diffstat (limited to 'test/product_large.cpp')
-rw-r--r-- | test/product_large.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/product_large.cpp b/test/product_large.cpp index 03d7bd8ed..11531aa1d 100644 --- a/test/product_large.cpp +++ b/test/product_large.cpp @@ -61,4 +61,13 @@ void test_product_large() VERIFY_IS_APPROX(r2, (mat1.row(2)*mat2).eval()); } #endif + + // Regression test for bug 714: +#ifdef EIGEN_HAS_OPENMP + std::cout << "Testing omp_set_dynamic(1)\n"; + 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))) ); + } +#endif } |