Commit Graph
7 Commits
Author SHA1 Message Date
Jonathan Peyton fa45385094 Fix memory error in case of reinit using kmp_set_defaults() for lock code.
The lock tables were being reallocated if kmp_set_defaults() was called.
In the env_init code it says that the user should be able to switch between
different KMP_CONSISTENCY_CHECK values which is what this change enables.


git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@292349 91177308-0d34-0410-b5e6-96231b3b80d8
2017-01-18 07:02:21 +00:00
Jonathan Peyton fcef12cd45 Remove trailing whitespace from tests
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@269841 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-17 21:08:52 +00:00
Jonathan Peyton 700a1a0f37 Adding new kmp_aligned_malloc() entry point
This change adds a new entry point,
kmp_aligned_malloc(size_t size, size_t alignment), an entry point corresponding
to kmp_malloc() but with the capability to return aligned memory as well.
Other allocator routines have been adjusted so that kmp_free() can be used for
freeing memory blocks allocated by any kmp_*alloc() routine, including the new
kmp_aligned_malloc() routine.

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


git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@269365 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-12 22:00:37 +00:00
Alexey Bataev 5fedb90a30 [OPENMP] Fixed tests for gcc build.
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@253200 91177308-0d34-0410-b5e6-96231b3b80d8
2015-11-16 11:35:57 +00:00
Alexey Bataev e73ff632d5 [OPENMP] Add dependency to clang/clang-headers etc. for in-tree build of libomp.
Add additional dependency to clang/clang-headers/FileCheck to avoid possible troubles with in-tree build/test of libomp + allow parallel testing of libomp. Also includes bugfixes for tests + improvements to avoid possible race conditions.
Differential Revision: http://reviews.llvm.org/D14055


git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@251797 91177308-0d34-0410-b5e6-96231b3b80d8
2015-11-02 13:43:32 +00:00
Jonathan Peyton a2b144ab95 [OpenMP Testsuite] Change omp_get_wtime.c timer resolution to 3 percent
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@248501 91177308-0d34-0410-b5e6-96231b3b80d8
2015-09-24 15:10:57 +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