summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src/kmp_global.cpp
diff options
context:
space:
mode:
authorJonathan Peyton <jonathan.l.peyton@intel.com>2019-01-16 20:07:39 +0000
committerJonathan Peyton <jonathan.l.peyton@intel.com>2019-01-16 20:07:39 +0000
commit9b8bb323c94768ae788d77fc597f057d97b9eb17 (patch)
tree12c14373815b1a903478b5feebb041ca5f1af3c6 /openmp/runtime/src/kmp_global.cpp
parent837da5d3ecdda47cc8cbc08420eea6d1327117e5 (diff)
downloadbcm5719-llvm-9b8bb323c94768ae788d77fc597f057d97b9eb17.tar.gz
bcm5719-llvm-9b8bb323c94768ae788d77fc597f057d97b9eb17.zip
[OpenMP] Add omp_pause_resource* API
Add omp_pause_resource and omp_pause_resource_all API and enum, plus stub for internal implementation. Implemented callable helper function to do local pause, and added basic functionality for hard and soft pause. Patch by Terry Wilmarth Differential Revision: https://reviews.llvm.org/D55078 llvm-svn: 351372
Diffstat (limited to 'openmp/runtime/src/kmp_global.cpp')
-rw-r--r--openmp/runtime/src/kmp_global.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/openmp/runtime/src/kmp_global.cpp b/openmp/runtime/src/kmp_global.cpp
index 5f38009af8f..37903a661b2 100644
--- a/openmp/runtime/src/kmp_global.cpp
+++ b/openmp/runtime/src/kmp_global.cpp
@@ -533,5 +533,9 @@ int _You_must_link_with_Microsoft_OpenMP_library = 1;
#if OMP_50_ENABLED
kmp_target_offload_kind_t __kmp_target_offload = tgt_default;
-#endif
+
+// OMP Pause Resources
+kmp_pause_status_t __kmp_pause_status = kmp_not_paused;
+#endif // OMP_50_ENABLED
+
// end of file //
OpenPOWER on IntegriCloud