diff options
author | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2016-12-14 08:29:00 +0000 |
---|---|---|
committer | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2016-12-14 08:29:00 +0000 |
commit | 5dee8c43da578307cf3de40ab808e7f15ffeaac8 (patch) | |
tree | 67d6267e701c21a64486a1cdb4a40fdbcd0418ae /openmp | |
parent | aeaa52cc119664597ebe9cc133ddcc5ba68a5b22 (diff) | |
download | bcm5719-llvm-5dee8c43da578307cf3de40ab808e7f15ffeaac8.tar.gz bcm5719-llvm-5dee8c43da578307cf3de40ab808e7f15ffeaac8.zip |
Cleanup: debug print fixed and moved inside critical section.
Patch by Victor Campos.
Differential Revision: https://reviews.llvm.org/D27647
llvm-svn: 289640
Diffstat (limited to 'openmp')
-rw-r--r-- | openmp/runtime/src/kmp_tasking.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/openmp/runtime/src/kmp_tasking.c b/openmp/runtime/src/kmp_tasking.c index 5bed7fdab81..07557890c4d 100644 --- a/openmp/runtime/src/kmp_tasking.c +++ b/openmp/runtime/src/kmp_tasking.c @@ -336,12 +336,12 @@ __kmp_push_task(kmp_int32 gtid, kmp_task_t * task ) thread_data -> td.td_deque_tail = ( thread_data -> td.td_deque_tail + 1 ) & TASK_DEQUE_MASK(thread_data->td); TCW_4(thread_data -> td.td_deque_ntasks, TCR_4(thread_data -> td.td_deque_ntasks) + 1); // Adjust task count - __kmp_release_bootstrap_lock( & thread_data -> td.td_deque_lock ); - KA_TRACE(20, ("__kmp_push_task: T#%d returning TASK_SUCCESSFULLY_PUSHED: " - "task=%p ntasks=%d head=%u tail=%u\n", - gtid, taskdata, thread_data->td.td_deque_ntasks, - thread_data->td.td_deque_tail, thread_data->td.td_deque_head) ); + "task=%p ntasks=%d head=%u tail=%u\n", + gtid, taskdata, thread_data->td.td_deque_ntasks, + thread_data->td.td_deque_head, thread_data->td.td_deque_tail) ); + + __kmp_release_bootstrap_lock( & thread_data->td.td_deque_lock ); return TASK_SUCCESSFULLY_PUSHED; } |