summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/tools
Commit message (Collapse)AuthorAgeFilesLines
* [OpenMP] NFC: Fix trivial typos in commentsKazuaki Ishizaki2020-01-075-10/+10
| | | | | | | | | | | | Reviewers: jdoerfert, Jim Reviewed By: Jim Subscribers: Jim, mgorny, guansong, jfb, openmp-commits Tags: #openmp Differential Revision: https://reviews.llvm.org/D72285
* [OpenMP] NFC: Fix trivial typos in commentsKelvin Li2020-01-033-4/+4
| | | | | | Submitted by: kiszk Differential Revision: https://reviews.llvm.org/D72171
* Don't assume Type from `readelf -d` has parenthesesAndrey Churbanov2019-10-081-1/+1
| | | | | | | | Patch by jbeich (Jan Beich) Differential Revision: https://reviews.llvm.org/D68053 llvm-svn: 374038
* [OpenMP] RISCV64 portJonas Hahnfeld2019-07-252-1/+8
| | | | | | | | | | | | | | This is a port of libomp for the RISC-V 64-bit Linux target. We have tested this port on a HiFive Unleashed development board using a downstream LLVM that has support for the missing bits in upstream. As of now, all tests are passing, including OMPT. Patch by Ferran Pallarès! Differential Revision: https://reviews.llvm.org/D59880 llvm-svn: 367021
* [OpenMP] Implement 5.0 memory managementJonathan Peyton2019-04-081-1/+2
| | | | | | | | | | | | | | | | | | * Replace HBWMALLOC API with more general MEMKIND API, new functions and variables added. * Have libmemkind.so loaded when accessible. * Redirect memspaces to default one except for high bandwidth which is processed separately. * Ignore some allocator traits e.g., sync_hint, access, pinned, while others are processed normally e.g., alignment, pool_size, fallback, fb_data, partition. * Add tests for memory management Patch by Andrey Churbanov Differential Revision: https://reviews.llvm.org/D59783 llvm-svn: 357929
* [OpenMP] Add missing parenthesis in Perl moduleJonathan Peyton2019-03-151-1/+1
| | | | llvm-svn: 356289
* Update more file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-1910-40/+30
| | | | | | | | | | | | | | | | | | to reflect the new license. These used slightly different spellings that defeated my regular expressions. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351648
* [OpenMP] Initial implementation of OMP 5.0 Memory Management routinesJonathan Peyton2018-09-071-2/+4
| | | | | | | | | | | | | | | | | | | | | | | Implemented omp_alloc, omp_free, omp_{set,get}_default_allocator entries, and OMP_ALLOCATOR environment variable. Added support for HBW memory on Linux if libmemkind.so library is accessible (dynamic library only, no support for static libraries). Only used stable API (hbwmalloc) of the memkind library though we may consider using experimental API in future. The ICV def-allocator-var is implemented per implicit task similar to place-partition-var. In the absence of a requested allocator, the uses the default allocator. Predefined allocators (the only ones currently available) are made similar for C and Fortran, - pointers (long integers) with values 1 to 8. Patch by Andrey Churbanov Differential Revision: https://reviews.llvm.org/D51232 llvm-svn: 341687
* Add summarizeStats.py to tools directoryJonathan Peyton2018-03-261-0/+323
| | | | | | | | | | | | | | | | | | | | | | | | The summarizeStats.py script processes raw data provided by the instrumented (stats-gathering) OpenMP* runtime library. It provides: 1) A radar chart which plots counters as frequency (per GigaTick) of use within the program. The frequencies are plotted as log10, however values less than one are kept as it is and represented in red color. This was done to help visualize the differences better. 2) Pie charts separating total time as compute and non-compute. The compute and non-compute times have their own pie charts showing the constructs that contributed to them. The percentages listed are with respect to the total time. 3) '.csv' file with percentage of time spent within the different constructs. The script can be used as: $ python $PATH_TO_SCRIPT/summarizeStats.py instrumented1.csv instrumented2.csv Patch by Taru Doodi Differential Revision: https://reviews.llvm.org/D41838 llvm-svn: 328568
* Support of mips & mips64 for openmprtlSylvestre Ledru2016-12-082-2/+17
| | | | | | | | | | | | | | Summary: Implemented by Dejan Latinovic See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=790735 for more more information Reviewers: AndreyChurbanov, jlpeyton Subscribers: openmp-commits, mgorny Differential Revision: https://reviews.llvm.org/D26576 llvm-svn: 289032
* D22135: formatting changeAndrey Churbanov2016-07-081-1/+1
| | | | llvm-svn: 274849
* Remove trailing whitespace in files in tools/ directoryJonathan Peyton2016-05-171-4/+4
| | | | llvm-svn: 269837
* Have Mac builds use @rpath when supported in CMakeJonathan Peyton2016-02-091-0/+2
| | | | | | | The -install_name linker flag will use "@rpath/" when supported in CMake which is the recommended usage for dynamic libraries on Mac OSX. llvm-svn: 260300
* Bypass Perl modules in build systemJonathan Peyton2016-01-264-9/+16
| | | | | | | | | This change fixes the bug: https://llvm.org/bugs/show_bug.cgi?id=25975 by bypassing the perl module files which try to deduce system information. These perl modules files don't offer useful information and are from the original build system. They can be removed after this change. llvm-svn: 258843
* Teach the Perl modules about NetBSD.Joerg Sonnenberger2015-09-212-1/+6
| | | | llvm-svn: 248203
* Force the readelf call to be in EnglishSylvestre Ledru2015-09-161-0/+5
| | | | | | | | | | | | Summary: For example, when readelf is called on a french localization, it will find "Librairie partagées" instead of "shared library" Reviewers: AndreyChurbanov, jcownie Differential Revision: http://reviews.llvm.org/D12902 llvm-svn: 247787
* Removing the Makefile/Perl build system.Jonathan Peyton2015-09-1419-4774/+0
| | | | | | | | | | | | This change deletes the Makefile+Perl build system and all files used by it which aren't used by the CMake build system. This included many Perl files, *.mk files, iomp* files. This change also updates the README's and index.html to instruct the user to use the CMake build system. All mentioning of the Perl+Makefile based system are removed. Differential Revision: http://reviews.llvm.org/D12331 llvm-svn: 247583
* Enable debugger supportJonathan Peyton2015-07-091-0/+2
| | | | | | | | | | | | These changes enable external debuggers to conveniently interface with the LLVM OpenMP Library. Structures are added which describe the important internal structures of the OpenMP Library e.g., teams, threads, etc. This feature is turned on by default (CMake variable LIBOMP_USE_DEBUGGER) and can be turned off with -DLIBOMP_USE_DEBUGGER=off. Differential Revision: http://reviews.llvm.org/D10038 llvm-svn: 241832
* Apply name change to tools/* files.Jonathan Peyton2015-06-014-12/+12
| | | | | | | These changes are all in comments. Change libiomp references to libomp. llvm-svn: 238713
* Fix spelling errorsJonathan Peyton2015-05-221-1/+1
| | | | | | These spelling errors are in comments and some debug messages. llvm-svn: 238060
* D9306 omp 4.1 async offload support (partial): build changes for version 4.1Andrey Churbanov2015-05-071-1/+1
| | | | llvm-svn: 236746
* This patch contains the new files for OMPT and the needed changes to the ↵Andrey Churbanov2015-04-291-1/+7
| | | | | | build infrastructure llvm-svn: 236117
* UH OpenMP testsuite updateAndrey Churbanov2015-04-292-0/+36
| | | | llvm-svn: 236105
* Removed all header files for OpenMP 2.5Andrey Churbanov2015-02-251-1/+1
| | | | llvm-svn: 230521
* Set the Intel compiler as default when building for the MIC without CMakeAndrey Churbanov2015-02-251-3/+3
| | | | llvm-svn: 230519
* Misprint in comment fixedAndrey Churbanov2015-02-201-1/+1
| | | | llvm-svn: 230034
* Added some compiler flags for security on Linux and Mac link stages.Andrey Churbanov2015-02-201-5/+30
| | | | llvm-svn: 230027
* adding the jobs variable for parallel buildAndrey Churbanov2015-01-292-0/+7
| | | | llvm-svn: 227447
* Comments only: removing the Revision and Date svn variables from the top of ↵Andrey Churbanov2015-01-271-2/+0
| | | | | | all the source files. llvm-svn: 227207
* added support for PPC architectures (version 3): initial patch provided by ↵Andrey Churbanov2015-01-193-4/+10
| | | | | | Carlo Bertolli, latest version from Johnny Peyton llvm-svn: 226479
* cleanup changes of building for Intel(R) Many Integrated Core ArchitectureAndrey Churbanov2015-01-1613-106/+175
| | | | llvm-svn: 226271
* fixed the missed bracket introduced by checkin rev 225792Andrey Churbanov2015-01-131-1/+1
| | | | llvm-svn: 225796
* aarch64 port sent by C. BergstromAndrey Churbanov2015-01-133-3/+11
| | | | llvm-svn: 225792
* I apologise in advance for the size of this check-in. At Intel we doJim Cownie2014-10-077-8/+269
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | understand that this is not friendly, and are working to change our internal code-development to make it easier to make development features available more frequently and in finer (more functional) chunks. Unfortunately we haven't got that in place yet, and unpicking this into multiple separate check-ins would be non-trivial, so please bear with me on this one. We should be better in the future. Apologies over, what do we have here? GGC 4.9 compatibility -------------------- * We have implemented the new entrypoints used by code compiled by GCC 4.9 to implement the same functionality in gcc 4.8. Therefore code compiled with gcc 4.9 that used to work will continue to do so. However, there are some other new entrypoints (associated with task cancellation) which are not implemented. Therefore user code compiled by gcc 4.9 that uses these new features will not link against the LLVM runtime. (It remains unclear how to handle those entrypoints, since the GCC interface has potentially unpleasant performance implications for join barriers even when cancellation is not used) --- new parallel entry points --- new entry points that aren't OpenMP 4.0 related These are implemented fully :- GOMP_parallel_loop_dynamic() GOMP_parallel_loop_guided() GOMP_parallel_loop_runtime() GOMP_parallel_loop_static() GOMP_parallel_sections() GOMP_parallel() --- cancellation entry points --- Currently, these only give a runtime error if OMP_CANCELLATION is true because our plain barriers don't check for cancellation while waiting GOMP_barrier_cancel() GOMP_cancel() GOMP_cancellation_point() GOMP_loop_end_cancel() GOMP_sections_end_cancel() --- taskgroup entry points --- These are implemented fully. GOMP_taskgroup_start() GOMP_taskgroup_end() --- target entry points --- These are empty (as they are in libgomp) GOMP_target() GOMP_target_data() GOMP_target_end_data() GOMP_target_update() GOMP_teams() Improvements in Barriers and Fork/Join -------------------------------------- * Barrier and fork/join code is now in its own file (which makes it easier to understand and modify). * Wait/release code is now templated and in its own file; suspend/resume code is also templated * There's a new, hierarchical, barrier, which exploits the cache-hierarchy of the Intel(r) Xeon Phi(tm) coprocessor to improve fork/join and barrier performance. ***BEWARE*** the new source files have *not* been added to the legacy Cmake build system. If you want to use that fixes wil be required. Statistics Collection Code -------------------------- * New code has been added to collect application statistics (if this is enabled at library compile time; by default it is not). The statistics code itself is generally useful, the lightweight timing code uses the X86 rdtsc instruction, so will require changes for other architectures. The intent of this code is not for users to tune their codes but rather 1) For timing code-paths inside the runtime 2) For gathering general properties of OpenMP codes to focus attention on which OpenMP features are most used. Nested Hot Teams ---------------- * The runtime now maintains more state to reduce the overhead of creating and destroying inner parallel teams. This improves the performance of code that repeatedly uses nested parallelism with the same resource allocation. Set the new KMP_HOT_TEAMS_MAX_LEVEL envirable to a depth to enable this (and, of course, OMP_NESTED=true to enable nested parallelism at all). Improved Intel(r) VTune(Tm) Amplifier support --------------------------------------------- * The runtime provides additional information to Vtune via the itt_notify interface to allow it to display better OpenMP specific analyses of load-imbalance. Support for OpenMP Composite Statements --------------------------------------- * Implement new entrypoints required by some of the OpenMP 4.1 composite statements. Improved ifdefs --------------- * More separation of concepts ("Does this platform do X?") from platforms ("Are we compiling for platform Y?"), which should simplify future porting. ScaleMP* contribution --------------------- Stack padding to improve the performance in their environment where cross-node coherency is managed at the page level. Redesign of wait and release code --------------------------------- The code is simplified and performance improved. Bug Fixes --------- *Fixes for Windows multiple processor groups. *Fix Fortran module build on Linux: offload attribute added. *Fix entry names for distribute-parallel-loop construct to be consistent with the compiler codegen. *Fix an inconsistent error message for KMP_PLACE_THREADS environment variable. llvm-svn: 219214
* Commit PowerPC64 support from Carlo Bertolli at IBM.Jim Cownie2014-08-073-3/+9
| | | | llvm-svn: 215093
* Add support for FreeBSDAlp Toker2014-02-284-3/+24
| | | | | | | | | | | | | | | Port the OpenMP runtime to FreeBSD along with associated build system changes. Also begin to generalize affinity capabilities so they aren't tied explicitly to Windows and Linux. The port builds with stock clang and gmake and has no additional runtime dependencies. All but a handful of the validation suite tests are now passing on FreeBSD 10 x86_64. llvm-svn: 202478
* Fix clang compiler detection on OS XAlp Toker2014-02-241-4/+3
| | | | | | | | | | check-tools.pl was hard-wired to expect the Apple compiler version string which doesn't make much sense, especially for a LLVM project. The correctness and value of these compiler version checks still isn't clear following this build fix but they are retained for now. llvm-svn: 202029
* clang build fix: don't check for gnu tools by defaultAlp Toker2014-02-241-4/+4
| | | | | | | | | | gcc/g++ don't exist on modern OS X development environments so the failed checks for gcc were causing the build to break even with 'make compiler=clang'. (The rationale for the check refers to a file 'touch-test.c' which no longer exists in the codebase.) llvm-svn: 202027
* Fix typosAlp Toker2014-02-246-16/+16
| | | | llvm-svn: 202018
* For your Christmas hacking pleasure.Jim Cownie2013-12-237-31/+136
| | | | | | | | | | | | | | | | | This release use aligns with Intel(r) Composer XE 2013 SP1 Product Update 2 New features * The library can now be built with clang (though wiht some limitations since clang does not support 128 bit floats) * Support for Vtune analysis of load imbalance * Code contribution from Steven Noonan to build the runtime for ARM* architecture processors * First implementation of runtime API for OpenMP cancellation Bug Fixes * Fixed hang on Windows (only) when using KMP_BLOCKTIME=0 llvm-svn: 197914
* First attempt to import OpenMP runtimeJim Cownie2013-09-2725-0/+9713
llvm-svn: 191506
OpenPOWER on IntegriCloud