4 Commits
Author SHA1 Message Date
Jonathan Peyton 85df023bba [OpenMP 5.0] Add omp_get_supported_active_levels()
This patch adds the new 5.0 API function omp_get_supported_active_levels().

Patch by Terry Wilmarth

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


git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@354368 91177308-0d34-0410-b5e6-96231b3b80d8
2019-02-19 18:51:11 +00:00
Andrey Churbanov 12258aa8d9 Fix for bugzilla https://bugs.llvm.org/show_bug.cgi?id=39970
Broken tests fixed

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


git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@349017 91177308-0d34-0410-b5e6-96231b3b80d8
2018-12-13 10:04:10 +00:00
Hal Finkel 5e8afb8077 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

git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@306357 91177308-0d34-0410-b5e6-96231b3b80d8
2017-06-27 03:04:25 +00:00
Jonathan Peyton 9e321cbfc5 OpenMP Initial testsuite change to purely llvm-lit based testing
This change introduces a check-libomp target which is based upon llvm's lit
test infrastructure. Each test (generated from the University of Houston's
OpenMP testsuite) is compiled and then run. For each test, an exit status of 0
indicates success and non-zero indicates failure. This way, FileCheck is not
needed. I've added a bit of logic to generate symlinks (libiomp5 and libgomp)
in the build tree so that gcc can be tested as well.  When building out-of-
tree builds, the user will have to provide llvm-lit either by specifying
-DLIBOMP_LLVM_LIT_EXECUTABLE or having llvm-lit in their PATH.

Differential Revision: http://reviews.llvm.org/D11821


git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@248211 91177308-0d34-0410-b5e6-96231b3b80d8
2015-09-21 20:41:31 +00:00