[OpenMP][Tests] Fix compiler warnings in OpenMP runtime testsThis patch allows to pass the OpenMP runtime tests after configuring with`cmake . -DOPENMP_TEST_FLAGS:STRING="-Werror"`.The warnings f
[OpenMP][Tests] Fix compiler warnings in OpenMP runtime testsThis patch allows to pass the OpenMP runtime tests after configuring with`cmake . -DOPENMP_TEST_FLAGS:STRING="-Werror"`.The warnings for OMPT tests are addressed in D90752.Differential Revision: https://reviews.llvm.org/D91280
show more ...
Added propagation of not big initial stack size of master thread to workers.Currently implemented only for non-Windows 64-bit platforms.Differential Revision: https://reviews.llvm.org/D62488llv
Added propagation of not big initial stack size of master thread to workers.Currently implemented only for non-Windows 64-bit platforms.Differential Revision: https://reviews.llvm.org/D62488llvm-svn: 362618
Ensure correct pthread flags and libraries are usedOn most platforms, certain compiler and linker flags have to be passedwhen using pthreads, otherwise linking against libomp.so might fail withun
Ensure correct pthread flags and libraries are usedOn most platforms, certain compiler and linker flags have to be passedwhen using pthreads, otherwise linking against libomp.so might fail withundefined references to several pthread functions.Use CMake's `find_package(Threads)` to determine these for standalonebuilds, or take them (and optionally modify them) from the top-levelLLVM cmake files.Also, On FreeBSD, ensure that libomp.so is linked against libm.so,similar to NetBSD.Adjust test cases with hardcoded `-lpthread` flag to use the commonbuild flags, which should now have the required pthread flags.Reviewers: emaste, jlpeyton, krytarowski, mgorny, protze.joachim, HahnfeldReviewed By: HahnfeldSubscribers: AndreyChurbanov, tra, EricWF, Hahnfeld, jfb, jdoerfert, openmp-commitsTags: #openmpDifferential Revision: https://reviews.llvm.org/D59451llvm-svn: 357618
[OpenMP] Remove XFAIL for cancellation tests using gccllvm-svn: 354370
Fix alignment in teams-reduction.c testThe runtime will use the global kmp_critical_name as a lock andtries to atomically store a pointer in there. This will failif the global is only aligned by
Fix alignment in teams-reduction.c testThe runtime will use the global kmp_critical_name as a lock andtries to atomically store a pointer in there. This will failif the global is only aligned by 4 bytes, the size of one int32_telement. Use a union to ensure the global is aligned to the sizeof a pointer on the current platform.llvm-svn: 319811
Fix PR30890: Reduction across teams hangs__kmpc_reduce_nowait() correctly swapped the teams for reductionsin a teams construct. Apply the same logic to __kmpc_reduce() and__kmpc_reduce_end().Di
Fix PR30890: Reduction across teams hangs__kmpc_reduce_nowait() correctly swapped the teams for reductionsin a teams construct. Apply the same logic to __kmpc_reduce() and__kmpc_reduce_end().Differential Revision: https://reviews.llvm.org/D40753llvm-svn: 319788
[CMake] Detect information about test compilerPerform a nested CMake invocation to avoid writing our own parserfor compiler versions when we are not testing the in-tree compiler.Use the extracted
[CMake] Detect information about test compilerPerform a nested CMake invocation to avoid writing our own parserfor compiler versions when we are not testing the in-tree compiler.Use the extracted information to mark a test as unsupported thathangs with Clang prior to version 4.0.1 and restrict tests forlibomptarget to Clang version 6.0.0 and later.Differential Revision: https://reviews.llvm.org/D40083llvm-svn: 319448
Test cancellation_for_sections.c expectedly fails on GCCllvm-svn: 299437
Reset cancellation status for 'parallel', 'sections' and 'for' constracts.Without this fix cancellation status for parallel, sections and for persists across construct boundaries.Differential Re
Reset cancellation status for 'parallel', 'sections' and 'for' constracts.Without this fix cancellation status for parallel, sections and for persists across construct boundaries.Differential Revision: https://reviews.llvm.org/D31419llvm-svn: 299434
Fixed intermittent hang on tests with "target teams if(0)" construct with no parallel inside.Differential Revision: https://reviews.llvm.org/D29597llvm-svn: 298373
Appease older gcc compilers for the many-microtask-args.c testOlder gcc compilers error out with the C99 syntax of: for (int i =...)so this change just moves the int i; declaration up above.llvm
Appease older gcc compilers for the many-microtask-args.c testOlder gcc compilers error out with the C99 syntax of: for (int i =...)so this change just moves the int i; declaration up above.llvm-svn: 280138
Fix linking of omp_foreign_thread_team_reuse test on FreeBSDSummary:On FreeBSD, linking the misc_bugs/omp_foreign_thread_team_reuse.c testcase fails with: /usr/local/bin/ld: /tmp/omp_foreign_
Fix linking of omp_foreign_thread_team_reuse test on FreeBSDSummary:On FreeBSD, linking the misc_bugs/omp_foreign_thread_team_reuse.c testcase fails with: /usr/local/bin/ld: /tmp/omp_foreign_thread_team_reuse-c5e71b.o: undefined reference to symbol 'pthread_create@@FBSD_1.0'This is because the program is linked without `-lpthread`. Since the%libomp-compile-and-run macro does not allow that option to be added tothe compile command line, split it up and add the required `-lpthread`between %libomp-compile and %libomp-run.Reviewers: jlpeyton, hfinkel, HahnfeldSubscribers: Hahnfeld, emaste, openmp-commitsDifferential Revision: https://reviews.llvm.org/D23084llvm-svn: 278036
Add a test case for microtask dispatch with many argumentsThis is a cleaned-up version of the test case posted in the D19879 review.llvm-svn: 270867
Allow unit testing on WindowsThese changes allow testing on Windows using clang.exe.There are two main changes:1. Only link to -lm when it actually exists on the system2. Create basic versions o
Allow unit testing on WindowsThese changes allow testing on Windows using clang.exe.There are two main changes:1. Only link to -lm when it actually exists on the system2. Create basic versions of pthread_create() and pthread_join() for windows. They are not POSIX compliant by any stretch but will allow any existing and future tests to use pthread_create() and pthread_join() for testing interactions of libomp with os threads.Differential Revision: http://reviews.llvm.org/D20391llvm-svn: 270464
Fix team reuse with foreign threadsAfter hot teams were enabled by default, the library started using levels keptin the team structure. The levels are broken in case foreign thread exits andputs
Fix team reuse with foreign threadsAfter hot teams were enabled by default, the library started using levels keptin the team structure. The levels are broken in case foreign thread exits andputs its team into the pool which is then re-used by another foreign thread.The broken behavior observed is when printing the levels for each new team, onegets 1, 2, 1, 2, 1, 2, etc. This makes the library believe that every otherteam is nested which is incorrect. What is wanted is for the levels to be1, 1, 1, etc.Differential Revision: http://reviews.llvm.org/D19980llvm-svn: 269363