llvm-project/openmp/runtime/test
Hal Finkel 2bc3449d22 Make test/parallel/omp_nested.c not use so many threads
I've found it very difficult to get test/parallel/omp_nested.c to pass
consistently across my build environments. The problem is that it creates N^2
threads (it is testing nested parallel regions), and that often exceeds the
thread limits on systems with many cores. We do raise the process limits in
lit, and that often helps, but if running lit with a smaller number of threads
or on a system where we're otherwise resource constrained, this particular test
tends to fail (because the runtime cannot create a sufficient number of
threads).

This seems to work: if the maximum number of threads is more than some small
number, then cap the number of threads used for the parallel region. The choice
of 4 here is somewhat arbitrary.

Differential Revision: https://reviews.llvm.org/D32033

llvm-svn: 306357
2017-06-27 03:04:25 +00:00
..
api Fix memory error in case of reinit using kmp_set_defaults() for lock code. 2017-01-18 07:02:21 +00:00
atomic Remove trailing whitespace from tests 2016-05-17 21:08:52 +00:00
barrier omp_barrier.c test fixed in order to reliably and faster run on any number of processors 2016-01-25 16:52:10 +00:00
critical
env Fix for KMP_AFFINITY=disabled and KMP_TOPOLOGY_METHOD=hwloc 2017-05-31 20:35:22 +00:00
flush
lock Fix bugs in TAS and futex lock 2016-06-28 19:37:24 +00:00
master Remove trailing whitespace from tests 2016-05-17 21:08:52 +00:00
misc_bugs Test cancellation_for_sections.c expectedly fails on GCC 2017-04-04 14:39:52 +00:00
ompt [OMPT] fix task frame information for gomp interface 2016-09-14 13:59:39 +00:00
parallel Make test/parallel/omp_nested.c not use so many threads 2017-06-27 03:04:25 +00:00
tasking Run-time library part of OpenMP 5.0 task reduction implementation. 2017-02-16 17:49:49 +00:00
threadprivate Remove trailing whitespace from tests 2016-05-17 21:08:52 +00:00
worksharing OpenMP 4.5: implemented support of schedule(simd:guided) and 2017-06-05 17:17:33 +00:00
CMakeLists.txt [test] Try to link -latomic to provide atomics when available 2017-02-24 22:15:24 +00:00
lit.cfg Fix for KMP_AFFINITY=disabled and KMP_TOPOLOGY_METHOD=hwloc 2017-05-31 20:35:22 +00:00
lit.site.cfg.in [test] Try to link -latomic to provide atomics when available 2017-02-24 22:15:24 +00:00
omp_my_sleep.h
omp_testsuite.h Allow unit testing on Windows 2016-05-23 17:50:32 +00:00