[Openmp-commits] [openmp] r272560 - [STATS] Add stats gathering for taskloop construct
Jonathan Peyton via Openmp-commits
openmp-commits at lists.llvm.org
Mon Jun 13 09:56:41 PDT 2016
Author: jlpeyton
Date: Mon Jun 13 11:56:41 2016
New Revision: 272560
URL: http://llvm.org/viewvc/llvm-project?rev=272560&view=rev
Log:
[STATS] Add stats gathering for taskloop construct
Modified:
openmp/trunk/runtime/src/kmp_stats.h
openmp/trunk/runtime/src/kmp_tasking.c
Modified: openmp/trunk/runtime/src/kmp_stats.h
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_stats.h?rev=272560&r1=272559&r2=272560&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_stats.h (original)
+++ openmp/trunk/runtime/src/kmp_stats.h Mon Jun 13 11:56:41 2016
@@ -101,6 +101,7 @@ enum stats_state_e {
macro (REDUCE_wait, 0, arg) \
macro (REDUCE_nowait, 0, arg) \
macro (OMP_TASKYIELD, 0, arg) \
+ macro (OMP_TASKLOOP, 0, arg) \
macro (TASK_executed, 0, arg) \
macro (TASK_cancelled, 0, arg) \
macro (TASK_stolen, 0, arg) \
@@ -140,6 +141,7 @@ enum stats_state_e {
macro (OMP_task_join_bar, 0, arg) \
macro (OMP_task_plain_bar, 0, arg) \
macro (OMP_serial, 0, arg) \
+ macro (OMP_taskloop_scheduling, 0, arg) \
macro (OMP_set_numthreads, stats_flags_e::noUnits | stats_flags_e::noTotal, arg) \
macro (OMP_PARALLEL_args, stats_flags_e::noUnits | stats_flags_e::noTotal, arg) \
macro (FOR_static_iterations, stats_flags_e::noUnits | stats_flags_e::noTotal, arg) \
@@ -250,6 +252,7 @@ enum stats_state_e {
macro(OMP_task_join_bar, 0, arg) \
macro(OMP_task_plain_bar, 0, arg) \
macro(OMP_serial, 0, arg) \
+ macro(OMP_taskloop_scheduling, 0, arg) \
KMP_FOREACH_EXPLICIT_DEVELOPER_TIMER(macro,arg) \
macro(LAST, 0, arg)
Modified: openmp/trunk/runtime/src/kmp_tasking.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_tasking.c?rev=272560&r1=272559&r2=272560&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_tasking.c (original)
+++ openmp/trunk/runtime/src/kmp_tasking.c Mon Jun 13 11:56:41 2016
@@ -2944,6 +2944,8 @@ __kmp_taskloop_linear(ident_t *loc, int
kmp_uint64 *lb, kmp_uint64 *ub, kmp_int64 st,
int sched, kmp_uint64 grainsize, void *task_dup )
{
+ KMP_COUNT_BLOCK(OMP_TASKLOOP);
+ KMP_TIME_PARTITIONED_BLOCK(OMP_taskloop_scheduling);
p_task_dup_t ptask_dup = (p_task_dup_t)task_dup;
kmp_uint64 tc;
kmp_uint64 lower = *lb; // compiler provides global bounds here
More information about the Openmp-commits
mailing list