aboutsummaryrefslogtreecommitdiff
path: root/runtime/tools
AgeCommit message (Collapse)Author
2019-07-25[OpenMP] RISCV64 portJonas Hahnfeld
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 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@367021 91177308-0d34-0410-b5e6-96231b3b80d8
2019-04-08[OpenMP] Implement 5.0 memory managementJonathan Peyton
* 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 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@357929 91177308-0d34-0410-b5e6-96231b3b80d8
2019-03-15[OpenMP] Add missing parenthesis in Perl moduleJonathan Peyton
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@356289 91177308-0d34-0410-b5e6-96231b3b80d8
2019-01-19Update more file headers across all of the LLVM projects in the monorepoChandler Carruth
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. git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@351648 91177308-0d34-0410-b5e6-96231b3b80d8
2018-09-07[OpenMP] Initial implementation of OMP 5.0 Memory Management routinesJonathan Peyton
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 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@341687 91177308-0d34-0410-b5e6-96231b3b80d8
2018-03-26Add summarizeStats.py to tools directoryJonathan Peyton
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 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@328568 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-08Support of mips & mips64 for openmprtlSylvestre Ledru
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 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@289032 91177308-0d34-0410-b5e6-96231b3b80d8
2016-07-08D22135: formatting changeAndrey Churbanov
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@274849 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-17Remove trailing whitespace in files in tools/ directoryJonathan Peyton
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@269837 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-09Have Mac builds use @rpath when supported in CMakeJonathan Peyton
The -install_name linker flag will use "@rpath/" when supported in CMake which is the recommended usage for dynamic libraries on Mac OSX. git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@260300 91177308-0d34-0410-b5e6-96231b3b80d8
2016-01-26Bypass Perl modules in build systemJonathan Peyton
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. git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@258843 91177308-0d34-0410-b5e6-96231b3b80d8
2015-09-21Teach the Perl modules about NetBSD.Joerg Sonnenberger
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@248203 91177308-0d34-0410-b5e6-96231b3b80d8
2015-09-16Force the readelf call to be in EnglishSylvestre Ledru
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 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@247787 91177308-0d34-0410-b5e6-96231b3b80d8
2015-09-14Removing the Makefile/Perl build system.Jonathan Peyton
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 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@247583 91177308-0d34-0410-b5e6-96231b3b80d8
2015-07-09Enable debugger supportJonathan Peyton
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 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@241832 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-01Apply name change to tools/* files.Jonathan Peyton
These changes are all in comments. Change libiomp references to libomp. git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@238713 91177308-0d34-0410-b5e6-96231b3b80d8
2015-05-22Fix spelling errorsJonathan Peyton
These spelling errors are in comments and some debug messages. git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@238060 91177308-0d34-0410-b5e6-96231b3b80d8
2015-05-07D9306 omp 4.1 async offload support (partial): build changes for version 4.1Andrey Churbanov
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@236746 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-29This patch contains the new files for OMPT and the needed changes to the ↵Andrey Churbanov
build infrastructure git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@236117 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-29UH OpenMP testsuite updateAndrey Churbanov
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@236105 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-25Removed all header files for OpenMP 2.5Andrey Churbanov
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@230521 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-25Set the Intel compiler as default when building for the MIC without CMakeAndrey Churbanov
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@230519 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-20Misprint in comment fixedAndrey Churbanov
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@230034 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-20Added some compiler flags for security on Linux and Mac link stages.Andrey Churbanov
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@230027 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29adding the jobs variable for parallel buildAndrey Churbanov
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@227447 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-27Comments only: removing the Revision and Date svn variables from the top of ↵Andrey Churbanov
all the source files. git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@227207 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-19added support for PPC architectures (version 3): initial patch provided by ↵Andrey Churbanov
Carlo Bertolli, latest version from Johnny Peyton git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@226479 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-16cleanup changes of building for Intel(R) Many Integrated Core ArchitectureAndrey Churbanov
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@226271 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-13fixed the missed bracket introduced by checkin rev 225792Andrey Churbanov
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@225796 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-13aarch64 port sent by C. BergstromAndrey Churbanov
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@225792 91177308-0d34-0410-b5e6-96231b3b80d8
2014-10-07I apologise in advance for the size of this check-in. At Intel we doJim Cownie
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. git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@219214 91177308-0d34-0410-b5e6-96231b3b80d8
2014-08-07Commit PowerPC64 support from Carlo Bertolli at IBM.Jim Cownie
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@215093 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-28Add support for FreeBSDAlp Toker
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. git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@202478 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-24Fix clang compiler detection on OS XAlp Toker
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. git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@202029 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-24clang build fix: don't check for gnu tools by defaultAlp Toker
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.) git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@202027 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-24Fix typosAlp Toker
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@202018 91177308-0d34-0410-b5e6-96231b3b80d8
2013-12-23For your Christmas hacking pleasure.Jim Cownie
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 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@197914 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-27First attempt to import OpenMP runtimeJim Cownie
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@191506 91177308-0d34-0410-b5e6-96231b3b80d8