diff options
Diffstat (limited to 'runtime/src/kmp_dispatch.cpp')
-rw-r--r-- | runtime/src/kmp_dispatch.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/src/kmp_dispatch.cpp b/runtime/src/kmp_dispatch.cpp index 564e73b..ee786ae 100644 --- a/runtime/src/kmp_dispatch.cpp +++ b/runtime/src/kmp_dispatch.cpp @@ -283,6 +283,12 @@ void __kmp_dispatch_init_algorithm(ident_t *loc, int gtid, } } +#if KMP_STATS_ENABLED + if (KMP_MASTER_GTID(gtid)) { + KMP_COUNT_VALUE(OMP_loop_dynamic_total_iterations, tc); + } +#endif + pr->u.p.lb = lb; pr->u.p.ub = ub; pr->u.p.st = st; |