aboutsummaryrefslogtreecommitdiff
path: root/openmp/runtime/tools
AgeCommit message (Collapse)AuthorFilesLines
2023-11-03Add openmp support to System z (#66081)Neale Ferguson2-1/+7
* openmp/README.rst - Add s390x to those platforms supported * openmp/libomptarget/plugins-nextgen/CMakeLists.txt - Add s390x subdirectory * openmp/libomptarget/plugins-nextgen/s390x/CMakeLists.txt - Add s390x definitions * openmp/runtime/CMakeLists.txt - Add s390x to those platforms supported * openmp/runtime/cmake/LibompGetArchitecture.cmake - Define s390x ARCHITECTURE * openmp/runtime/cmake/LibompMicroTests.cmake - Add dependencies for System z (aka s390x) * openmp/runtime/cmake/LibompUtils.cmake - Add S390X to the mix * openmp/runtime/cmake/config-ix.cmake - Add s390x as a supported LIPOMP_ARCH * openmp/runtime/src/kmp_affinity.h - Define __NR_sched_[get|set]addinity for s390x * openmp/runtime/src/kmp_config.h.cmake - Define CACHE_LINE for s390x * openmp/runtime/src/kmp_os.h - Add KMP_ARCH_S390X to support checks * openmp/runtime/src/kmp_platform.h - Define KMP_ARCH_S390X * openmp/runtime/src/kmp_runtime.cpp - Generate code when KMP_ARCH_S390X is defined * openmp/runtime/src/kmp_tasking.cpp - Generate code when KMP_ARCH_S390X is defined * openmp/runtime/src/thirdparty/ittnotify/ittnotify_config.h - Define ITT_ARCH_S390X * openmp/runtime/src/z_Linux_asm.S - Instantiate __kmp_invoke_microtask for s390x * openmp/runtime/src/z_Linux_util.cpp - Generate code when KMP_ARCH_S390X is defined * openmp/runtime/test/ompt/callback.h - Define print_possible_return_addresses for s390x * openmp/runtime/tools/lib/Platform.pm - Return s390x as platform and host architecture * openmp/runtime/tools/lib/Uname.pm - Set hardware platform value for s390x
2023-02-13[OpenMP] generate the Windows import library that imports by name ratherVadim Paretsky (Intel Americas Inc)1-5/+11
than ordinal This check-in changes the OpenMP build script to generate the Windows import library that imports by name rather than ordinal to reduce ordinals order dependency and promote runtime flavors compatibility going forward. The existing ordinals ordering is preserved to maintain backward compatibility. Differential Revision: https://reviews.llvm.org/D143431
2022-09-19[OpenMP] Add LoongArch64 supportSignKirigami2-1/+8
GCC, glibc, binutils, and LLVM have added support for LoongArch64. This patch adds support for LLVM OpenMP following D59880 for RISCV64. Reviewed By: MaskRay, SixWeining Differential Revision: https://reviews.llvm.org/D132925
2021-10-11[OpenMP] libomp: add OpenMP 5.1 memory allocation routines.AndreyChurbanov1-3/+4
Aligned allocation routines added. Fortran interfaces added for all allocation routines. Differential Revision: https://reviews.llvm.org/D110923
2021-06-04[OpenMP] fix spelling error in message-converter.plPeyton, Jonathan L1-1/+1
2021-04-30Correct tiny misspelling (readlef -> readelf).Kevin Athey1-1/+1
Getting my feet wet here as a new committer. Correct misspelling in check-depends.pl. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D101552
2021-02-25Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awkHarmen Stoppels3-3/+3
Allow users to use a non-system version of perl, python and awk, which is useful in certain package managers. Reviewed By: JDevlieghere, MaskRay Differential Revision: https://reviews.llvm.org/D95119
2020-11-17[OpenMP] Add omp_realloc implementationNawrin Sultana1-2/+3
This patch adds omp_realloc function implementation according to OpenMP 5.1 specification. Differential Revision: https://reviews.llvm.org/D90971
2020-11-15[OpenMP] Fix building for windows after adding omp_callocMartin Storsjö1-2/+2
Differential Revision: https://reviews.llvm.org/D91478
2020-11-09[OpenMP] Remove obsolete Fortran module fileHansang Bae1-4/+0
Modern Fortran compilers support Fortran 90, so we do not need to use the source code for Fortran compilers that do not support Fortran 90. Differential Revision: https://reviews.llvm.org/D90077
2020-08-03OpenMP: Fix typo variabls -> variablesDavid Blaikie1-1/+1
2020-07-16Harmonize Python shebangserge-sans-paille1-1/+1
Differential Revision: https://reviews.llvm.org/D83857
2020-04-04[OpenMP] NFC: Fix trivial typoKazuaki Ishizaki6-15/+15
Differential Revision: https://reviews.llvm.org/D77430
2020-01-07[OpenMP] NFC: Fix trivial typos in commentsKazuaki Ishizaki5-10/+10
Reviewers: jdoerfert, Jim Reviewed By: Jim Subscribers: Jim, mgorny, guansong, jfb, openmp-commits Tags: #openmp Differential Revision: https://reviews.llvm.org/D72285
2020-01-03[OpenMP] NFC: Fix trivial typos in commentsKelvin Li3-4/+4
Submitted by: kiszk Differential Revision: https://reviews.llvm.org/D72171
2019-10-08Don't assume Type from `readelf -d` has parenthesesAndrey Churbanov1-1/+1
Patch by jbeich (Jan Beich) Differential Revision: https://reviews.llvm.org/D68053 llvm-svn: 374038
2019-07-25[OpenMP] RISCV64 portJonas Hahnfeld2-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
2019-04-08[OpenMP] Implement 5.0 memory managementJonathan Peyton1-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
2019-03-15[OpenMP] Add missing parenthesis in Perl moduleJonathan Peyton1-1/+1
llvm-svn: 356289
2019-01-19Update more file headers across all of the LLVM projects in the monorepoChandler Carruth10-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
2018-09-07[OpenMP] Initial implementation of OMP 5.0 Memory Management routinesJonathan Peyton1-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
2018-03-26Add summarizeStats.py to tools directoryJonathan Peyton1-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
2016-12-08Support of mips & mips64 for openmprtlSylvestre Ledru2-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
2016-07-08D22135: formatting changeAndrey Churbanov1-1/+1
llvm-svn: 274849
2016-05-17Remove trailing whitespace in files in tools/ directoryJonathan Peyton1-4/+4
llvm-svn: 269837
2016-02-09Have Mac builds use @rpath when supported in CMakeJonathan Peyton1-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
2016-01-26Bypass Perl modules in build systemJonathan Peyton4-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
2015-09-21Teach the Perl modules about NetBSD.Joerg Sonnenberger2-1/+6
llvm-svn: 248203
2015-09-16Force the readelf call to be in EnglishSylvestre Ledru1-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
2015-09-14Removing the Makefile/Perl build system.Jonathan Peyton19-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
2015-07-09Enable debugger supportJonathan Peyton1-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
2015-06-01Apply name change to tools/* files.Jonathan Peyton4-12/+12
These changes are all in comments. Change libiomp references to libomp. llvm-svn: 238713
2015-05-22Fix spelling errorsJonathan Peyton1-1/+1
These spelling errors are in comments and some debug messages. llvm-svn: 238060
2015-05-07D9306 omp 4.1 async offload support (partial): build changes for version 4.1Andrey Churbanov1-1/+1
llvm-svn: 236746
2015-04-29This patch contains the new files for OMPT and the needed changes to the ↵Andrey Churbanov1-1/+7
build infrastructure llvm-svn: 236117
2015-04-29UH OpenMP testsuite updateAndrey Churbanov2-0/+36
llvm-svn: 236105
2015-02-25Removed all header files for OpenMP 2.5Andrey Churbanov1-1/+1
llvm-svn: 230521
2015-02-25Set the Intel compiler as default when building for the MIC without CMakeAndrey Churbanov1-3/+3
llvm-svn: 230519
2015-02-20Misprint in comment fixedAndrey Churbanov1-1/+1
llvm-svn: 230034
2015-02-20Added some compiler flags for security on Linux and Mac link stages.Andrey Churbanov1-5/+30
llvm-svn: 230027
2015-01-29adding the jobs variable for parallel buildAndrey Churbanov2-0/+7
llvm-svn: 227447
2015-01-27Comments only: removing the Revision and Date svn variables from the top of ↵Andrey Churbanov1-2/+0
all the source files. llvm-svn: 227207
2015-01-19added support for PPC architectures (version 3): initial patch provided by ↵Andrey Churbanov3-4/+10
Carlo Bertolli, latest version from Johnny Peyton llvm-svn: 226479
2015-01-16cleanup changes of building for Intel(R) Many Integrated Core ArchitectureAndrey Churbanov13-106/+175
llvm-svn: 226271
2015-01-13fixed the missed bracket introduced by checkin rev 225792Andrey Churbanov1-1/+1
llvm-svn: 225796
2015-01-13aarch64 port sent by C. BergstromAndrey Churbanov3-3/+11
llvm-svn: 225792
2014-10-07I apologise in advance for the size of this check-in. At Intel we doJim Cownie7-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
2014-08-07Commit PowerPC64 support from Carlo Bertolli at IBM.Jim Cownie3-3/+9
llvm-svn: 215093
2014-02-28Add support for FreeBSDAlp Toker4-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
2014-02-24Fix clang compiler detection on OS XAlp Toker1-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