Commit Graph

66 Commits

Author SHA1 Message Date
Andrey Churbanov f42e83cf72 Removed all header files for OpenMP 2.5
llvm-svn: 230521
2015-02-25 18:38:08 +00:00
Andrey Churbanov 2638298646 Export the common header files to exports/ with CMake
llvm-svn: 230520
2015-02-25 18:32:30 +00:00
Andrey Churbanov 6d313413a8 Set the Intel compiler as default when building for the MIC without CMake
llvm-svn: 230519
2015-02-25 18:30:50 +00:00
Andrey Churbanov e8595de647 Two warning messages fixed.
llvm-svn: 230035
2015-02-20 18:19:41 +00:00
Andrey Churbanov fda00d095f Misprint in comment fixed
llvm-svn: 230034
2015-02-20 18:17:03 +00:00
Andrey Churbanov 613edeb89b Detect Intel MIC architecture and set some defaults at run time instead of build time.
llvm-svn: 230033
2015-02-20 18:14:43 +00:00
Andrey Churbanov 723a6b64bb Removed unused varargs from __kmpc_flush function.
llvm-svn: 230032
2015-02-20 18:09:27 +00:00
Andrey Churbanov 5c56fb55b0 Added new user-guided lock api, currently disabled. Use KMP_USE_DYNAMIC_LOCK=1 to enable it.
llvm-svn: 230030
2015-02-20 18:05:17 +00:00
Andrey Churbanov a5547bce79 Changed default stack offset for threads on non-Mac architectures to a CACHE_LINE.
llvm-svn: 230029
2015-02-20 17:57:58 +00:00
Andrey Churbanov f790286c33 Added some compiler flags for security on Linux and Mac link stages.
llvm-svn: 230027
2015-02-20 17:55:48 +00:00
Andrey Churbanov b41e62b713 Fixed memory corruption problem.
llvm-svn: 228736
2015-02-10 20:10:21 +00:00
Andrey Churbanov 440af7eccc Updated the kmp_omp_struct_info_t structure used by debuggers.
llvm-svn: 228734
2015-02-10 19:53:13 +00:00
Andrey Churbanov 851563f9c3 OpenMP 4.0 standard function omp_is_initial_device() implemented.
llvm-svn: 228730
2015-02-10 19:47:09 +00:00
Andrey Churbanov c5bccf94eb Added comment on format of local labels in asm code
llvm-svn: 228727
2015-02-10 19:31:17 +00:00
Andrey Churbanov 054c50bf4f Added CFI directives to asm code in order to have correct backtraces in gdb.
llvm-svn: 228721
2015-02-10 18:51:52 +00:00
Andrey Churbanov 6d224dbda7 The usage of tt_state flag is replaced by an array of two task_team pointers.
llvm-svn: 228718
2015-02-10 18:37:43 +00:00
Andrey Churbanov 9bf5328f97 Pin the libiomp5.dll for the lifetime of application, Windows-specific
llvm-svn: 227469
2015-01-29 17:18:20 +00:00
Andrey Churbanov 5cd50e3c0a enable environment variable KMP_PLACE_THREADS also for non-MIC architectures
llvm-svn: 227467
2015-01-29 17:14:58 +00:00
Andrey Churbanov 78bfb7c3a7 fix that sets proc-bind-var to proc_bind_false if affinity is not supported
llvm-svn: 227454
2015-01-29 15:52:20 +00:00
Andrey Churbanov 4b2f17a1d3 fixing typo in error message
llvm-svn: 227451
2015-01-29 15:49:22 +00:00
Andrey Churbanov 9ffc098fb5 fixing mistake in kmp_get_affinity_max_proc() api function
llvm-svn: 227450
2015-01-29 15:48:21 +00:00
Andrey Churbanov 571fd8acca fixing the Fortran modules dependencies
llvm-svn: 227449
2015-01-29 15:43:48 +00:00
Andrey Churbanov 898a56eb27 adding the jobs variable for parallel build
llvm-svn: 227447
2015-01-29 15:37:15 +00:00
Andrey Churbanov d9e775edfc Comments only: removing the Revision and Date svn variables from the top of all the source files.
llvm-svn: 227207
2015-01-27 17:13:53 +00:00
Andrey Churbanov 7a3467ab9d minor formatting change
llvm-svn: 227205
2015-01-27 17:06:18 +00:00
Andrey Churbanov 1c33129956 Enables a cpuid leaf 4 check for non-MIC x86 architectures.
llvm-svn: 227204
2015-01-27 17:03:42 +00:00
Andrey Churbanov df6555b6ef Adds some new Windows processor groups trace messages
llvm-svn: 227203
2015-01-27 17:00:03 +00:00
Andrey Churbanov a36de4339b Fixes error where proc-bind-var is not set when there is a parsing error of GOMP_AFFINITY environment variable.
llvm-svn: 227202
2015-01-27 16:58:08 +00:00
Andrey Churbanov f696c820cd Removes some unused variables (__kmp_ht_*) and changes__kmp_ncores and __kmp_nThreadsPerCore to static globals within kmp_affinity.cpp.
llvm-svn: 227201
2015-01-27 16:55:43 +00:00
Andrey Churbanov 7daf9803f5 Replaces KMP_OS_WINDOWS && KMP_ARCH_X86_64 or any combination of those two options with the feature macro KMP_GROUP_AFFINITY.
llvm-svn: 227199
2015-01-27 16:52:57 +00:00
Andrey Churbanov 42a79217a8 Fixed implementation of the teams construct in case it contains parallel regions with different number of threads.
llvm-svn: 227198
2015-01-27 16:50:31 +00:00
Andrey Churbanov d1c5504097 added support for PPC architectures (version 3): initial patch provided by Carlo Bertolli, latest version from Johnny Peyton
llvm-svn: 226479
2015-01-19 18:29:35 +00:00
Andrey Churbanov b8039074d0 Two fixes sent by C.Bergstrom: MB() does real synch for ARM; _Quad is not used when not available.
llvm-svn: 226464
2015-01-19 14:00:00 +00:00
Andrey Churbanov f6451d90d6 few fixes for ittnotify iterface (used by Intel(R) VTune Amplifier)
llvm-svn: 226283
2015-01-16 15:58:03 +00:00
Andrey Churbanov 19be978ecf cleanup changes of cmake-building for Intel(R) Many Integrated Core Architecture
llvm-svn: 226272
2015-01-16 13:05:23 +00:00
Andrey Churbanov d315ceac18 cleanup changes of building for Intel(R) Many Integrated Core Architecture
llvm-svn: 226271
2015-01-16 12:54:51 +00:00
Andrey Churbanov 169d02f832 fixed the missed bracket introduced by checkin rev 225792
llvm-svn: 225796
2015-01-13 15:16:49 +00:00
Andrey Churbanov f28f613eda This patch enables the use of KMP_AFFINITY=balanced on non-MIC Architectures. The restriction for using balanced affinity on non-MIC architectures is it only works for one-package machines.
llvm-svn: 225794
2015-01-13 14:54:00 +00:00
Andrey Churbanov 3984da5608 small fixes to the hierarchical barrier
llvm-svn: 225793
2015-01-13 14:47:02 +00:00
Andrey Churbanov cbda868206 aarch64 port sent by C. Bergstrom
llvm-svn: 225792
2015-01-13 14:43:35 +00:00
Andrey Churbanov 17cce42f4b Return the architecture by probing predefined compiler macros
llvm-svn: 225789
2015-01-13 14:35:23 +00:00
Jim Cownie 4cc4bb4c60 I apologise in advance for the size of this check-in. At Intel we do
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-10-07 16:25:50 +00:00
Jim Cownie 77c2a634b0 Fix a crash that occurred under obscure circumstances during library shutdown
llvm-svn: 217027
2014-09-03 11:34:33 +00:00
Jim Cownie 07ea89f637 Fix a bug where the library slept for up to KMP_BLOCKTIME before exiting
llvm-svn: 217026
2014-09-03 11:10:54 +00:00
Jim Cownie 12ad3b1911 Fix a problem on Windows machines with >32 processors
llvm-svn: 217024
2014-09-03 10:51:02 +00:00
Jim Cownie 3051f9761e Commit PowerPC64 support from Carlo Bertolli at IBM.
llvm-svn: 215093
2014-08-07 10:12:54 +00:00
Jim Cownie 3b81ce6b15 After three iterations of community review, we believe that this new
CMAKE buld system should meet everyone's requirements.

Enhanced CMake Build System Commit 

* Supports Linux, Mac, Windows, and Intel® Xeon Phi builds
* Supports building with gcc, icc, clang, and Visual Studio compilers
* Supports bulding "fat" libraries on OS/X with clang
* Details and documentation on how to use build system 
  are in Build_With_CMake.txt
* To use the old CMake build system (corresponds to 
  CMakeLists.txt.old), just rename CMakeLists.txt to
  CMakeLists.txt.other and rename CMakeLists.txt.old to
  CMakeLists.txt

llvm-svn: 214850
2014-08-05 09:32:28 +00:00
Alp Toker 1d1c4fb81c CMake: remove duplicated source file from list
Patch by Jack Howarth!

llvm-svn: 210025
2014-06-02 13:09:24 +00:00
Alp Toker c2d5e61177 Fix typos
llvm-svn: 209995
2014-06-01 18:28:36 +00:00
Alp Toker 7198f529ad Add initial CMake build system
This is not yet supported for production builds but can already produce working
binaries on OS X and Linux with clang and gcc.

The intention is to improve support to the point where it can integrate with
the LLVM runtime platform, cover all platforms, runtime/release build
configurations and run the tests.

Patch by Jack Howarth!

llvm-svn: 209994
2014-06-01 18:01:33 +00:00