Commit Graph
79 Commits
Author SHA1 Message Date
Andrey Churbanov 00a59d4327 ittnotify: change default notification mode to 3, which includes parallel regions, barriers + imbalance, loops, single regions reporting.
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@236616 91177308-0d34-0410-b5e6-96231b3b80d8
2015-05-06 17:41:58 +00:00
Andrey Churbanov afd2c6c3fd Integrate libiomp CMake into LLVM CMake build system.
This patch integrates the libiomp CMake build system into the LLVM CMake build 
system so that users can checkout libiomp into the projects directory of llvm 
and build llvm,clang, and libiomp all together.  These changes specifically 
introduce a new install target which will put libraries and headers into the 
correct locations when either a standalone build or part of llvm.
The copy_recipe() method has been removed in favor of the POST_BUILD method 
to move headers into the exports subdirectory.  And lastly, the MicroTests.cmake 
file was refactored which led to simpler target dependencies and a new target, 
make libiomp-micro-tests, which performs the 5 small tests (test-relo, 
test-touch, etc.) when called.


git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@236534 91177308-0d34-0410-b5e6-96231b3b80d8
2015-05-05 20:02:52 +00:00
Andrey Churbanov 98270aa879 These are the actual changes in the runtime to issue OMPT-related functions. All of them are surrounded by #if OMPT_SUPPORT and can be disabled (which is the default).
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@236122 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-29 16:42:24 +00:00
Andrey Churbanov 7866075b26 This patch contains the new files for OMPT and the needed changes to the build infrastructure
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@236117 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-29 16:22:07 +00:00
Andrey Churbanov 107fb0e39e This is a preparation patch to get information about the actual release status from nested locks for OMPT.
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@236114 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-29 15:52:19 +00:00
Andrey Churbanov 1d0ad7f8a7 UH OpenMP testsuite update
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@236105 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-29 14:36:38 +00:00
Andrey Churbanov 97f7eb4877 The generation of the hierarchy used by hierarchical barrier improved in how the generation reacts to affinity set to none, or disabled, or no affinity available, or oversubscription. Some cleanup actions based on review comments to follow: need to use meaningful names instead of digital constants, e.g. use enumerators.
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@234775 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-13 18:51:59 +00:00
Andrey Churbanov 8c2806cda5 Replace some unsafe API calls with safe alternatives on Windows, prepare code for similar actions on other platforms - wrap unsafe API calls into macros.
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@233915 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-02 13:27:08 +00:00
Andrey Churbanov 1e585c2e08 Eliminated the write to depth field of the machine_hierarchy data structure in __kmp_get_hierarchy(), thus fixing race condition. Now local variable used by each thread.
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@233914 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-02 13:18:50 +00:00
Andrey Churbanov 03e9d1a623 fix for broken commit 231774
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@231781 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-10 10:14:57 +00:00
Andrey Churbanov de7026a553 issuing of incorrect warning fixed
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@231779 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-10 09:34:38 +00:00
Andrey Churbanov 37d0af3296 cleanup: removed unused function __kmp_change_thread_affinity_mask
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@231778 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-10 09:31:21 +00:00
Andrey Churbanov 890e8fd276 proc_bind_disabled enum value removed, its usage replased with proc_bind_false
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@231776 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-10 09:19:47 +00:00
Andrey Churbanov f2d8bd6591 cleanup: usages of mask size wrapped into macros
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@231775 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-10 09:15:26 +00:00
Andrey Churbanov 24a57ca394 Adding some 8-bit atomic operations for future use
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@231774 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-10 09:03:42 +00:00
Andrey Churbanov 20b8da7236 changed unsigned types to signed - caused by comments of Hal Finkel on one of earlier patches
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@231773 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-10 09:00:36 +00:00
Andrey Churbanov 8b78c4a5dc moved Windows-specific flags under the WINDOWS guard in CMake
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@231384 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-05 17:50:48 +00:00
Andrey Churbanov 3fa7333224 added KMP_NESTED_HOT_TEAMS macro definition
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@231383 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-05 17:48:53 +00:00
Andrey Churbanov 137f02169d minor change: comment improved
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@231381 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-05 17:46:50 +00:00
Andrey Churbanov 1f60457c77 Cleanup provided by Carlo Bertolli
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@231078 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-03 16:19:57 +00:00
Andrey Churbanov f22e087f7c Removed all header files for OpenMP 2.5
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@230521 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-25 18:38:08 +00:00
Andrey Churbanov 893d25d72c Export the common header files to exports/ with CMake
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@230520 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-25 18:32:30 +00:00
Andrey Churbanov 45ed5c3e63 Set the Intel compiler as default when building for the MIC without CMake
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@230519 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-25 18:30:50 +00:00
Andrey Churbanov 6c8cce6f8b Two warning messages fixed.
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@230035 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-20 18:19:41 +00:00
Andrey Churbanov b4d5def747 Misprint in comment fixed
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@230034 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-20 18:17:03 +00:00
Andrey Churbanov 53e806cdc1 Detect Intel MIC architecture and set some defaults at run time instead of build time.
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@230033 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-20 18:14:43 +00:00
Andrey Churbanov 032f90ffc6 Removed unused varargs from __kmpc_flush function.
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@230032 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-20 18:09:27 +00:00
Andrey Churbanov 5356a729f1 Added new user-guided lock api, currently disabled. Use KMP_USE_DYNAMIC_LOCK=1 to enable it.
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@230030 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-20 18:05:17 +00:00
Andrey Churbanov 195acc9c80 Changed default stack offset for threads on non-Mac architectures to a CACHE_LINE.
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@230029 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-20 17:57:58 +00:00
Andrey Churbanov 19b619330a Added some compiler flags for security on Linux and Mac link stages.
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@230027 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-20 17:55:48 +00:00
Andrey Churbanov 0fb8c1581f Fixed memory corruption problem.
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@228736 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-10 20:10:21 +00:00
Andrey Churbanov 65e9157ebc Updated the kmp_omp_struct_info_t structure used by debuggers.
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@228734 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-10 19:53:13 +00:00
Andrey Churbanov 50cba614b0 OpenMP 4.0 standard function omp_is_initial_device() implemented.
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@228730 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-10 19:47:09 +00:00
Andrey Churbanov f23bef7fdc Added comment on format of local labels in asm code
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@228727 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-10 19:31:17 +00:00
Andrey Churbanov 143c590366 Added CFI directives to asm code in order to have correct backtraces in gdb.
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@228721 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-10 18:51:52 +00:00
Andrey Churbanov 2ce31a0c3a The usage of tt_state flag is replaced by an array of two task_team pointers.
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@228718 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-10 18:37:43 +00:00
Andrey Churbanov 8afa9cc53a Pin the libiomp5.dll for the lifetime of application, Windows-specific
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@227469 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29 17:18:20 +00:00
Andrey Churbanov d6f9c6363f enable environment variable KMP_PLACE_THREADS also for non-MIC architectures
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@227467 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29 17:14:58 +00:00
Andrey Churbanov cf569cf54a fix that sets proc-bind-var to proc_bind_false if affinity is not supported
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@227454 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29 15:52:20 +00:00
Andrey Churbanov fe92d4cfd7 fixing typo in error message
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@227451 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29 15:49:22 +00:00
Andrey Churbanov ba07f9b3fe fixing mistake in kmp_get_affinity_max_proc() api function
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@227450 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29 15:48:21 +00:00
Andrey Churbanov 0c9c540c0d fixing the Fortran modules dependencies
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@227449 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29 15:43:48 +00:00
Andrey Churbanov 94f826e819 adding the jobs variable for parallel build
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@227447 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29 15:37:15 +00:00
Andrey Churbanov 9236d9713a Comments only: removing the Revision and Date svn variables from the top of all the source files.
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@227207 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-27 17:13:53 +00:00
Andrey Churbanov 50e77e281c minor formatting change
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@227205 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-27 17:06:18 +00:00
Andrey Churbanov e6f5cf8f18 Enables a cpuid leaf 4 check for non-MIC x86 architectures.
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@227204 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-27 17:03:42 +00:00
Andrey Churbanov fea0d84adf Adds some new Windows processor groups trace messages
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@227203 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-27 17:00:03 +00:00
Andrey Churbanov 75159bfdee Fixes error where proc-bind-var is not set when there is a parsing error of GOMP_AFFINITY environment variable.
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@227202 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-27 16:58:08 +00:00
Andrey Churbanov 7ab6f4b7f9 Removes some unused variables (__kmp_ht_*) and changes__kmp_ncores and __kmp_nThreadsPerCore to static globals within kmp_affinity.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@227201 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-27 16:55:43 +00:00
Andrey Churbanov 79a76a5520 Replaces KMP_OS_WINDOWS && KMP_ARCH_X86_64 or any combination of those two options with the feature macro KMP_GROUP_AFFINITY.
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@227199 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-27 16:52:57 +00:00