diff options
| author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2019-01-16 20:07:39 +0000 |
|---|---|---|
| committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2019-01-16 20:07:39 +0000 |
| commit | 9b8bb323c94768ae788d77fc597f057d97b9eb17 (patch) | |
| tree | 12c14373815b1a903478b5feebb041ca5f1af3c6 /openmp/runtime/src/kmp_tasking.cpp | |
| parent | 837da5d3ecdda47cc8cbc08420eea6d1327117e5 (diff) | |
| download | bcm5719-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_tasking.cpp')
| -rw-r--r-- | openmp/runtime/src/kmp_tasking.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/runtime/src/kmp_tasking.cpp b/openmp/runtime/src/kmp_tasking.cpp index 7292ed1452d..084583e4db9 100644 --- a/openmp/runtime/src/kmp_tasking.cpp +++ b/openmp/runtime/src/kmp_tasking.cpp @@ -2839,7 +2839,7 @@ static void __kmp_enable_tasking(kmp_task_team_t *task_team, threads_data = (kmp_thread_data_t *)TCR_PTR(task_team->tt.tt_threads_data); KMP_DEBUG_ASSERT(threads_data != NULL); - if ((__kmp_tasking_mode == tskm_task_teams) && + if (__kmp_tasking_mode == tskm_task_teams && (__kmp_dflt_blocktime != KMP_MAX_BLOCKTIME)) { // Release any threads sleeping at the barrier, so that they can steal // tasks and execute them. In extra barrier mode, tasks do not sleep |

