diff options
Diffstat (limited to 'openmp/runtime/src/kmp_tasking.cpp')
-rw-r--r-- | openmp/runtime/src/kmp_tasking.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/openmp/runtime/src/kmp_tasking.cpp b/openmp/runtime/src/kmp_tasking.cpp index d037299f1477..15ffc1454fe9 100644 --- a/openmp/runtime/src/kmp_tasking.cpp +++ b/openmp/runtime/src/kmp_tasking.cpp @@ -933,7 +933,7 @@ static void __kmp_task_finish(kmp_int32 gtid, kmp_task_t *task, } } else { KMP_DEBUG_ASSERT(resumed_task != - NULL); // verify that resumed task is passed as arguemnt + NULL); // verify that resumed task is passed as argument } // Free this task and then ancestor tasks if they have no children. @@ -3090,7 +3090,7 @@ static void __kmp_enable_tasking(kmp_task_team_t *task_team, * master thread may exit the barrier code and free the team data structure, * and return the threads to the thread pool). * - * This does not work with the the tasking code, as the thread is still + * This does not work with the tasking code, as the thread is still * expected to participate in the execution of any tasks that may have been * spawned my a member of the team, and the thread still needs access to all * to each thread in the team, so that it can steal work from it. @@ -3169,7 +3169,7 @@ static void __kmp_free_task_deque(kmp_thread_data_t *thread_data) { // __kmp_realloc_task_threads_data: // Allocates a threads_data array for a task team, either by allocating an // initial array or enlarging an existing array. Only the first thread to get -// the lock allocs or enlarges the array and re-initializes the array eleemnts. +// the lock allocs or enlarges the array and re-initializes the array elements. // That thread returns "TRUE", the rest return "FALSE". // Assumes that the new array size is given by task_team -> tt.tt_nproc. // The current size is given by task_team -> tt.tt_max_threads. @@ -3757,7 +3757,7 @@ static void __kmp_bottom_half_finish_proxy(kmp_int32 gtid, kmp_task_t *ptask) { @param gtid Global Thread ID of encountering thread @param ptask Task which execution is completed -Execute the completation of a proxy task from a thread of that is part of the +Execute the completion of a proxy task from a thread of that is part of the team. Run first and bottom halves directly. */ void __kmpc_proxy_task_completed(kmp_int32 gtid, kmp_task_t *ptask) { @@ -3782,7 +3782,7 @@ void __kmpc_proxy_task_completed(kmp_int32 gtid, kmp_task_t *ptask) { @ingroup TASKING @param ptask Task which execution is completed -Execute the completation of a proxy task from a thread that could not belong to +Execute the completion of a proxy task from a thread that could not belong to the team. */ void __kmpc_proxy_task_completed_ooo(kmp_task_t *ptask) { @@ -4144,7 +4144,8 @@ void __kmp_taskloop_linear(ident_t *loc, int gtid, kmp_task_t *task, } else { next_task_bounds.set_ub(upper); } - if (ptask_dup != NULL) // set lastprivate flag, construct fistprivates, etc. + if (ptask_dup != NULL) // set lastprivate flag, construct firstprivates, + // etc. ptask_dup(next_task, task, lastpriv); KA_TRACE(40, ("__kmp_taskloop_linear: T#%d; task #%llu: task %p: lower %lld, " @@ -4193,7 +4194,7 @@ void __kmp_taskloop_recur(ident_t *, int, kmp_task_t *, kmp_uint64 *, #endif void *); -// Execute part of the the taskloop submitted as a task. +// Execute part of the taskloop submitted as a task. int __kmp_taskloop_task(int gtid, void *ptask) { __taskloop_params_t *p = (__taskloop_params_t *)((kmp_task_t *)ptask)->shareds; @@ -4240,8 +4241,8 @@ int __kmp_taskloop_task(int gtid, void *ptask) { return 0; } -// Schedule part of the the taskloop as a task, -// execute the rest of the the taskloop. +// Schedule part of the taskloop as a task, +// execute the rest of the taskloop. // // loc Source location information // gtid Global thread ID @@ -4313,7 +4314,7 @@ void __kmp_taskloop_recur(ident_t *loc, int gtid, kmp_task_t *task, next_task = __kmp_task_dup_alloc(thread, task); // duplicate the task // adjust lower bound (upper bound is not changed) for the 2nd half *(kmp_uint64 *)((char *)next_task + lower_offset) = lb1; - if (ptask_dup != NULL) // construct fistprivates, etc. + if (ptask_dup != NULL) // construct firstprivates, etc. ptask_dup(next_task, task, 0); *ub = ub0; // adjust upper bound for the 1st half |