27#include "ompt-specific.h"
33char const *traits_t<int>::spec =
"d";
34char const *traits_t<unsigned int>::spec =
"u";
35char const *traits_t<long long>::spec =
"lld";
36char const *traits_t<unsigned long long>::spec =
"llu";
37char const *traits_t<long>::spec =
"ld";
42#define KMP_STATS_LOOP_END(stat) \
45 kmp_int64 u = (kmp_int64)(*pupper); \
46 kmp_int64 l = (kmp_int64)(*plower); \
47 kmp_int64 i = (kmp_int64)incr; \
50 } else if (i == -1) { \
53 t = (u - l) / i + 1; \
55 KMP_DEBUG_ASSERT(i != 0); \
56 t = (l - u) / (-i) + 1; \
58 KMP_COUNT_VALUE(stat, t); \
59 KMP_POP_PARTITIONED_TIMER(); \
62#define KMP_STATS_LOOP_END(stat)
65#if USE_ITT_BUILD || defined KMP_DEBUG
67static inline void check_loc(
ident_t *&loc) {
74static void __kmp_for_static_init(
ident_t *loc, kmp_int32 global_tid,
75 kmp_int32 schedtype, kmp_int32 *plastiter,
77 typename traits_t<T>::signed_t *pstride,
78 typename traits_t<T>::signed_t incr,
79 typename traits_t<T>::signed_t chunk
80#
if OMPT_SUPPORT && OMPT_OPTIONAL
86 KMP_PUSH_PARTITIONED_TIMER(OMP_loop_static);
87 KMP_PUSH_PARTITIONED_TIMER(OMP_loop_static_scheduling);
90 schedtype = SCHEDULE_WITHOUT_MODIFIERS(schedtype);
92 typedef typename traits_t<T>::unsigned_t UT;
93 typedef typename traits_t<T>::signed_t ST;
95 kmp_int32 gtid = global_tid;
100 __kmp_assert_valid_gtid(gtid);
101 kmp_info_t *th = __kmp_threads[gtid];
103#if OMPT_SUPPORT && OMPT_OPTIONAL
104 ompt_team_info_t *team_info = NULL;
105 ompt_task_info_t *task_info = NULL;
106 ompt_work_t ompt_work_type = ompt_work_loop_static;
108 static kmp_int8 warn = 0;
110 if (ompt_enabled.ompt_callback_work || ompt_enabled.ompt_callback_dispatch) {
112 team_info = __ompt_get_teaminfo(0, NULL);
113 task_info = __ompt_get_task_info_object(0);
117 ompt_work_type = ompt_work_loop_static;
119 ompt_work_type = ompt_work_sections;
121 ompt_work_type = ompt_work_distribute;
124 KMP_COMPARE_AND_STORE_ACQ8(&warn, (kmp_int8)0, (kmp_int8)1);
126 KMP_WARNING(OmptOutdatedWorkshare);
128 KMP_DEBUG_ASSERT(ompt_work_type);
131#define OMPT_LOOP_BEGIN(count) \
132 if (ompt_enabled.ompt_callback_work) { \
133 ompt_callbacks.ompt_callback(ompt_callback_work)( \
134 ompt_work_type, ompt_scope_begin, &(team_info->parallel_data), \
135 &(task_info->task_data), count, codeptr); \
138#define OMPT_LOOP_BEGIN(count)
141 KMP_DEBUG_ASSERT(plastiter && plower && pupper && pstride);
142 KE_TRACE(10, (
"__kmpc_for_static_init called (%d)\n", global_tid));
147 buff = __kmp_str_format(
148 "__kmpc_for_static_init: T#%%d sched=%%d liter=%%d iter=(%%%s,"
149 " %%%s, %%%s) incr=%%%s chunk=%%%s signed?<%s>\n",
150 traits_t<T>::spec, traits_t<T>::spec, traits_t<ST>::spec,
151 traits_t<ST>::spec, traits_t<ST>::spec, traits_t<T>::spec);
152 KD_TRACE(100, (buff, global_tid, schedtype, *plastiter, *plower, *pupper,
153 *pstride, incr, chunk));
154 __kmp_str_free(&buff);
158 if (__kmp_env_consistency_check) {
159 __kmp_push_workshare(global_tid, ct_pdo, loc);
161 __kmp_error_construct(kmp_i18n_msg_CnsLoopIncrZeroProhibited, ct_pdo,
166 if (incr > 0 ? (*pupper < *plower) : (*plower < *pupper)) {
167 if (plastiter != NULL)
179 buff = __kmp_str_format(
"__kmpc_for_static_init:(ZERO TRIP) liter=%%d "
180 "lower=%%%s upper=%%%s stride = %%%s "
181 "signed?<%s>, loc = %%s\n",
182 traits_t<T>::spec, traits_t<T>::spec,
183 traits_t<ST>::spec, traits_t<T>::spec);
186 (buff, *plastiter, *plower, *pupper, *pstride, loc->
psource));
187 __kmp_str_free(&buff);
190 KE_TRACE(10, (
"__kmpc_for_static_init: T#%d return\n", global_tid));
193 KMP_STATS_LOOP_END(OMP_loop_static_iterations);
205 if (th->th.th_team->t.t_serialized > 1) {
207 team = th->th.th_team;
209 tid = th->th.th_team->t.t_master_tid;
210 team = th->th.th_team->t.t_parent;
213 tid = __kmp_tid_from_gtid(global_tid);
214 team = th->th.th_team;
218 if (team->t.t_serialized) {
220 if (plastiter != NULL)
224 (incr > 0) ? (*pupper - *plower + 1) : (-(*plower - *pupper + 1));
230 buff = __kmp_str_format(
"__kmpc_for_static_init: (serial) liter=%%d "
231 "lower=%%%s upper=%%%s stride = %%%s\n",
232 traits_t<T>::spec, traits_t<T>::spec,
234 KD_TRACE(100, (buff, *plastiter, *plower, *pupper, *pstride));
235 __kmp_str_free(&buff);
238 KE_TRACE(10, (
"__kmpc_for_static_init: T#%d return\n", global_tid));
240 OMPT_LOOP_BEGIN(*pstride);
241 KMP_STATS_LOOP_END(OMP_loop_static_iterations);
244 nth = team->t.t_nproc;
246 if (plastiter != NULL)
249 (incr > 0) ? (*pupper - *plower + 1) : (-(*plower - *pupper + 1));
254 buff = __kmp_str_format(
"__kmpc_for_static_init: (serial) liter=%%d "
255 "lower=%%%s upper=%%%s stride = %%%s\n",
256 traits_t<T>::spec, traits_t<T>::spec,
258 KD_TRACE(100, (buff, *plastiter, *plower, *pupper, *pstride));
259 __kmp_str_free(&buff);
262 KE_TRACE(10, (
"__kmpc_for_static_init: T#%d return\n", global_tid));
264 OMPT_LOOP_BEGIN(*pstride);
265 KMP_STATS_LOOP_END(OMP_loop_static_iterations);
271 trip_count = *pupper - *plower + 1;
272 }
else if (incr == -1) {
273 trip_count = *plower - *pupper + 1;
274 }
else if (incr > 0) {
276 trip_count = (UT)(*pupper - *plower) / incr + 1;
278 KMP_DEBUG_ASSERT(incr != 0);
279 trip_count = (UT)(*plower - *pupper) / (-incr) + 1;
283 if (KMP_MASTER_GTID(gtid)) {
288 if (__kmp_env_consistency_check) {
290 if (trip_count == 0 && *pupper != *plower) {
291 __kmp_error_construct(kmp_i18n_msg_CnsIterationRangeTooLarge, ct_pdo,
299 if (trip_count < nth) {
301 __kmp_static == kmp_sch_static_greedy ||
303 kmp_sch_static_balanced);
304 if (tid < trip_count) {
305 *pupper = *plower = *plower + tid * incr;
308 *plower = *pupper + (incr > 0 ? 1 : -1);
310 if (plastiter != NULL)
311 *plastiter = (tid == trip_count - 1);
313 KMP_DEBUG_ASSERT(nth != 0);
314 if (__kmp_static == kmp_sch_static_balanced) {
315 UT small_chunk = trip_count / nth;
316 UT extras = trip_count % nth;
317 *plower += incr * (tid * small_chunk + (tid < extras ? tid : extras));
318 *pupper = *plower + small_chunk * incr - (tid < extras ? 0 : incr);
319 if (plastiter != NULL)
320 *plastiter = (tid == nth - 1);
322 T big_chunk_inc_count =
323 (trip_count / nth + ((trip_count % nth) ? 1 : 0)) * incr;
324 T old_upper = *pupper;
326 KMP_DEBUG_ASSERT(__kmp_static == kmp_sch_static_greedy);
329 *plower += tid * big_chunk_inc_count;
330 *pupper = *plower + big_chunk_inc_count - incr;
332 if (*pupper < *plower)
333 *pupper = traits_t<T>::max_value;
334 if (plastiter != NULL)
335 *plastiter = *plower <= old_upper && *pupper > old_upper - incr;
336 if (*pupper > old_upper)
339 if (*pupper > *plower)
340 *pupper = traits_t<T>::min_value;
341 if (plastiter != NULL)
342 *plastiter = *plower >= old_upper && *pupper < old_upper - incr;
343 if (*pupper < old_upper)
348 *pstride = trip_count;
351 case kmp_sch_static_chunked: {
354 KMP_DEBUG_ASSERT(chunk != 0);
357 else if ((UT)chunk > trip_count)
359 nchunks = (trip_count) / (UT)chunk + (trip_count % (UT)chunk ? 1 : 0);
362 *pstride = span * nchunks;
364 *plower = *plower + (span * tid);
365 *pupper = *plower + span - incr;
367 *plower = *pupper + (incr > 0 ? 1 : -1);
370 *pstride = span * nth;
371 *plower = *plower + (span * tid);
372 *pupper = *plower + span - incr;
374 if (plastiter != NULL)
375 *plastiter = (tid == (nchunks - 1) % nth);
378 case kmp_sch_static_balanced_chunked: {
379 T old_upper = *pupper;
380 KMP_DEBUG_ASSERT(nth != 0);
382 UT span = (trip_count + nth - 1) / nth;
385 chunk = (span + chunk - 1) & ~(chunk - 1);
388 *plower = *plower + (span * tid);
389 *pupper = *plower + span - incr;
391 if (*pupper > old_upper)
393 }
else if (*pupper < old_upper)
396 if (plastiter != NULL) {
397 KMP_DEBUG_ASSERT(chunk != 0);
398 *plastiter = (tid == ((trip_count - 1) / (UT)chunk));
403 KMP_ASSERT2(0,
"__kmpc_for_static_init: unknown scheduling type");
409 if (KMP_MASTER_TID(tid) && __itt_metadata_add_ptr &&
410 __kmp_forkjoin_frames_mode == 3 && th->th.th_teams_microtask == NULL &&
411 team->t.t_active_level == 1) {
412 kmp_uint64 cur_chunk = chunk;
417 KMP_DEBUG_ASSERT(nth != 0);
418 cur_chunk = trip_count / nth + ((trip_count % nth) ? 1 : 0);
421 __kmp_itt_metadata_loop(loc, 0, trip_count, cur_chunk);
428 buff = __kmp_str_format(
"__kmpc_for_static_init: liter=%%d lower=%%%s "
429 "upper=%%%s stride = %%%s signed?<%s>\n",
430 traits_t<T>::spec, traits_t<T>::spec,
431 traits_t<ST>::spec, traits_t<T>::spec);
432 KD_TRACE(100, (buff, *plastiter, *plower, *pupper, *pstride));
433 __kmp_str_free(&buff);
436 KE_TRACE(10, (
"__kmpc_for_static_init: T#%d return\n", global_tid));
438 OMPT_LOOP_BEGIN(trip_count);
439#if OMPT_SUPPORT && OMPT_OPTIONAL
440 if (ompt_enabled.ompt_callback_dispatch) {
441 ompt_dispatch_t dispatch_type;
442 ompt_data_t instance = ompt_data_none;
443 ompt_dispatch_chunk_t dispatch_chunk;
444 if (ompt_work_type == ompt_work_sections) {
445 dispatch_type = ompt_dispatch_section;
446 instance.ptr = codeptr;
448 OMPT_GET_DISPATCH_CHUNK(dispatch_chunk, *plower, *pupper, incr);
449 dispatch_type = (ompt_work_type == ompt_work_distribute)
450 ? ompt_dispatch_distribute_chunk
451 : ompt_dispatch_ws_loop_chunk;
452 instance.ptr = &dispatch_chunk;
454 ompt_callbacks.ompt_callback(ompt_callback_dispatch)(
455 &(team_info->parallel_data), &(task_info->task_data), dispatch_type,
460 KMP_STATS_LOOP_END(OMP_loop_static_iterations);
465static void __kmp_dist_for_static_init(
ident_t *loc, kmp_int32 gtid,
466 kmp_int32 schedule, kmp_int32 *plastiter,
467 T *plower, T *pupper, T *pupperDist,
468 typename traits_t<T>::signed_t *pstride,
469 typename traits_t<T>::signed_t incr,
470 typename traits_t<T>::signed_t chunk
471#
if OMPT_SUPPORT && OMPT_OPTIONAL
477 KMP_PUSH_PARTITIONED_TIMER(OMP_distribute);
478 KMP_PUSH_PARTITIONED_TIMER(OMP_distribute_scheduling);
479 typedef typename traits_t<T>::unsigned_t UT;
480 typedef typename traits_t<T>::signed_t ST;
489 KMP_DEBUG_ASSERT(plastiter && plower && pupper && pupperDist && pstride);
490 KE_TRACE(10, (
"__kmpc_dist_for_static_init called (%d)\n", gtid));
491 __kmp_assert_valid_gtid(gtid);
496 buff = __kmp_str_format(
497 "__kmpc_dist_for_static_init: T#%%d schedLoop=%%d liter=%%d "
498 "iter=(%%%s, %%%s, %%%s) chunk=%%%s signed?<%s>\n",
499 traits_t<T>::spec, traits_t<T>::spec, traits_t<ST>::spec,
500 traits_t<ST>::spec, traits_t<T>::spec);
502 (buff, gtid, schedule, *plastiter, *plower, *pupper, incr, chunk));
503 __kmp_str_free(&buff);
507 if (__kmp_env_consistency_check) {
508 __kmp_push_workshare(gtid, ct_pdo, loc);
510 __kmp_error_construct(kmp_i18n_msg_CnsLoopIncrZeroProhibited, ct_pdo,
513 if (incr > 0 ? (*pupper < *plower) : (*plower < *pupper)) {
523 __kmp_error_construct(kmp_i18n_msg_CnsLoopIncrIllegal, ct_pdo, loc);
526 tid = __kmp_tid_from_gtid(gtid);
527 th = __kmp_threads[gtid];
528 nth = th->th.th_team_nproc;
529 team = th->th.th_team;
530 KMP_DEBUG_ASSERT(th->th.th_teams_microtask);
535 while (team->t.t_parent && team->t.t_serialized)
536 team = team->t.t_parent;
537 nteams = th->th.th_teams_size.nteams;
538 team_id = team->t.t_master_tid;
539 KMP_DEBUG_ASSERT(nteams == (kmp_uint32)team->t.t_parent->t.t_nproc);
543 trip_count = *pupper - *plower + 1;
544 }
else if (incr == -1) {
545 trip_count = *plower - *pupper + 1;
546 }
else if (incr > 0) {
548 trip_count = (UT)(*pupper - *plower) / incr + 1;
550 KMP_DEBUG_ASSERT(incr != 0);
551 trip_count = (UT)(*plower - *pupper) / (-incr) + 1;
554 *pstride = *pupper - *plower;
555 if (trip_count <= nteams) {
557 __kmp_static == kmp_sch_static_greedy ||
559 kmp_sch_static_balanced);
562 if (team_id < trip_count && tid == 0) {
563 *pupper = *pupperDist = *plower = *plower + team_id * incr;
565 *pupperDist = *pupper;
566 *plower = *pupper + incr;
568 if (plastiter != NULL)
569 *plastiter = (tid == 0 && team_id == trip_count - 1);
572 KMP_DEBUG_ASSERT(nteams != 0);
573 if (__kmp_static == kmp_sch_static_balanced) {
574 UT chunkD = trip_count / nteams;
575 UT extras = trip_count % nteams;
577 incr * (team_id * chunkD + (team_id < extras ? team_id : extras));
578 *pupperDist = *plower + chunkD * incr - (team_id < extras ? 0 : incr);
579 if (plastiter != NULL)
580 *plastiter = (team_id == nteams - 1);
583 (trip_count / nteams + ((trip_count % nteams) ? 1 : 0)) * incr;
585 KMP_DEBUG_ASSERT(__kmp_static == kmp_sch_static_greedy);
587 *plower += team_id * chunk_inc_count;
588 *pupperDist = *plower + chunk_inc_count - incr;
591 if (*pupperDist < *plower)
592 *pupperDist = traits_t<T>::max_value;
593 if (plastiter != NULL)
594 *plastiter = *plower <= upper && *pupperDist > upper - incr;
595 if (*pupperDist > upper)
597 if (*plower > *pupperDist) {
598 *pupper = *pupperDist;
602 if (*pupperDist > *plower)
603 *pupperDist = traits_t<T>::min_value;
604 if (plastiter != NULL)
605 *plastiter = *plower >= upper && *pupperDist < upper - incr;
606 if (*pupperDist < upper)
608 if (*plower < *pupperDist) {
609 *pupper = *pupperDist;
617 trip_count = *pupperDist - *plower + 1;
618 }
else if (incr == -1) {
619 trip_count = *plower - *pupperDist + 1;
620 }
else if (incr > 1) {
622 trip_count = (UT)(*pupperDist - *plower) / incr + 1;
624 KMP_DEBUG_ASSERT(incr != 0);
625 trip_count = (UT)(*plower - *pupperDist) / (-incr) + 1;
627 KMP_DEBUG_ASSERT(trip_count);
630 if (trip_count <= nth) {
632 __kmp_static == kmp_sch_static_greedy ||
634 kmp_sch_static_balanced);
635 if (tid < trip_count)
636 *pupper = *plower = *plower + tid * incr;
638 *plower = *pupper + incr;
639 if (plastiter != NULL)
640 if (*plastiter != 0 && !(tid == trip_count - 1))
643 KMP_DEBUG_ASSERT(nth != 0);
644 if (__kmp_static == kmp_sch_static_balanced) {
645 UT chunkL = trip_count / nth;
646 UT extras = trip_count % nth;
647 *plower += incr * (tid * chunkL + (tid < extras ? tid : extras));
648 *pupper = *plower + chunkL * incr - (tid < extras ? 0 : incr);
649 if (plastiter != NULL)
650 if (*plastiter != 0 && !(tid == nth - 1))
654 (trip_count / nth + ((trip_count % nth) ? 1 : 0)) * incr;
655 T upper = *pupperDist;
656 KMP_DEBUG_ASSERT(__kmp_static == kmp_sch_static_greedy);
658 *plower += tid * chunk_inc_count;
659 *pupper = *plower + chunk_inc_count - incr;
661 if (*pupper < *plower)
662 *pupper = traits_t<T>::max_value;
663 if (plastiter != NULL)
664 if (*plastiter != 0 &&
665 !(*plower <= upper && *pupper > upper - incr))
670 if (*pupper > *plower)
671 *pupper = traits_t<T>::min_value;
672 if (plastiter != NULL)
673 if (*plastiter != 0 &&
674 !(*plower >= upper && *pupper < upper - incr))
683 case kmp_sch_static_chunked: {
688 *pstride = span * nth;
689 *plower = *plower + (span * tid);
690 *pupper = *plower + span - incr;
691 if (plastiter != NULL) {
692 KMP_DEBUG_ASSERT(chunk != 0);
693 if (*plastiter != 0 && !(tid == ((trip_count - 1) / (UT)chunk) % nth))
700 "__kmpc_dist_for_static_init: unknown loop scheduling type");
709 buff = __kmp_str_format(
710 "__kmpc_dist_for_static_init: last=%%d lo=%%%s up=%%%s upDist=%%%s "
711 "stride=%%%s signed?<%s>\n",
712 traits_t<T>::spec, traits_t<T>::spec, traits_t<T>::spec,
713 traits_t<ST>::spec, traits_t<T>::spec);
714 KD_TRACE(100, (buff, *plastiter, *plower, *pupper, *pupperDist, *pstride));
715 __kmp_str_free(&buff);
718 KE_TRACE(10, (
"__kmpc_dist_for_static_init: T#%d return\n", gtid));
719#if OMPT_SUPPORT && OMPT_OPTIONAL
720 if (ompt_enabled.ompt_callback_work || ompt_enabled.ompt_callback_dispatch) {
721 ompt_team_info_t *team_info = __ompt_get_teaminfo(0, NULL);
722 ompt_task_info_t *task_info = __ompt_get_task_info_object(0);
723 if (ompt_enabled.ompt_callback_work) {
724 ompt_callbacks.ompt_callback(ompt_callback_work)(
725 ompt_work_distribute, ompt_scope_begin, &(team_info->parallel_data),
726 &(task_info->task_data), 0, codeptr);
728 if (ompt_enabled.ompt_callback_dispatch) {
729 ompt_data_t instance = ompt_data_none;
730 ompt_dispatch_chunk_t dispatch_chunk;
731 OMPT_GET_DISPATCH_CHUNK(dispatch_chunk, *plower, *pupperDist, incr);
732 instance.ptr = &dispatch_chunk;
733 ompt_callbacks.ompt_callback(ompt_callback_dispatch)(
734 &(team_info->parallel_data), &(task_info->task_data),
735 ompt_dispatch_distribute_chunk, instance);
739 KMP_STATS_LOOP_END(OMP_distribute_iterations);
744static void __kmp_team_static_init(
ident_t *loc, kmp_int32 gtid,
745 kmp_int32 *p_last, T *p_lb, T *p_ub,
746 typename traits_t<T>::signed_t *p_st,
747 typename traits_t<T>::signed_t incr,
748 typename traits_t<T>::signed_t chunk) {
754 typedef typename traits_t<T>::unsigned_t UT;
755 typedef typename traits_t<T>::signed_t ST;
765 KMP_DEBUG_ASSERT(p_last && p_lb && p_ub && p_st);
766 KE_TRACE(10, (
"__kmp_team_static_init called (%d)\n", gtid));
767 __kmp_assert_valid_gtid(gtid);
772 buff = __kmp_str_format(
"__kmp_team_static_init enter: T#%%d liter=%%d "
773 "iter=(%%%s, %%%s, %%%s) chunk %%%s; signed?<%s>\n",
774 traits_t<T>::spec, traits_t<T>::spec,
775 traits_t<ST>::spec, traits_t<ST>::spec,
777 KD_TRACE(100, (buff, gtid, *p_last, *p_lb, *p_ub, *p_st, chunk));
778 __kmp_str_free(&buff);
784 if (__kmp_env_consistency_check) {
786 __kmp_error_construct(kmp_i18n_msg_CnsLoopIncrZeroProhibited, ct_pdo,
789 if (incr > 0 ? (upper < lower) : (lower < upper)) {
799 __kmp_error_construct(kmp_i18n_msg_CnsLoopIncrIllegal, ct_pdo, loc);
802 th = __kmp_threads[gtid];
803 team = th->th.th_team;
804 KMP_DEBUG_ASSERT(th->th.th_teams_microtask);
805 nteams = th->th.th_teams_size.nteams;
806 team_id = team->t.t_master_tid;
807 KMP_DEBUG_ASSERT(nteams == (kmp_uint32)team->t.t_parent->t.t_nproc);
811 trip_count = upper - lower + 1;
812 }
else if (incr == -1) {
813 trip_count = lower - upper + 1;
814 }
else if (incr > 0) {
816 trip_count = (UT)(upper - lower) / incr + 1;
818 KMP_DEBUG_ASSERT(incr != 0);
819 trip_count = (UT)(lower - upper) / (-incr) + 1;
824 *p_st = span * nteams;
825 *p_lb = lower + (span * team_id);
826 *p_ub = *p_lb + span - incr;
827 if (p_last != NULL) {
828 KMP_DEBUG_ASSERT(chunk != 0);
829 *p_last = (team_id == ((trip_count - 1) / (UT)chunk) % nteams);
834 *p_ub = traits_t<T>::max_value;
839 *p_ub = traits_t<T>::min_value;
848 __kmp_str_format(
"__kmp_team_static_init exit: T#%%d team%%u liter=%%d "
849 "iter=(%%%s, %%%s, %%%s) chunk %%%s\n",
850 traits_t<T>::spec, traits_t<T>::spec,
851 traits_t<ST>::spec, traits_t<ST>::spec);
852 KD_TRACE(100, (buff, gtid, team_id, *p_last, *p_lb, *p_ub, *p_st, chunk));
853 __kmp_str_free(&buff);
882 kmp_int32 *plastiter, kmp_int32 *plower,
883 kmp_int32 *pupper, kmp_int32 *pstride,
884 kmp_int32 incr, kmp_int32 chunk) {
885 __kmp_for_static_init<kmp_int32>(loc, gtid, schedtype, plastiter, plower,
886 pupper, pstride, incr, chunk
887#
if OMPT_SUPPORT && OMPT_OPTIONAL
889 OMPT_GET_RETURN_ADDRESS(0)
898 kmp_int32 schedtype, kmp_int32 *plastiter,
899 kmp_uint32 *plower, kmp_uint32 *pupper,
900 kmp_int32 *pstride, kmp_int32 incr,
902 __kmp_for_static_init<kmp_uint32>(loc, gtid, schedtype, plastiter, plower,
903 pupper, pstride, incr, chunk
904#
if OMPT_SUPPORT && OMPT_OPTIONAL
906 OMPT_GET_RETURN_ADDRESS(0)
915 kmp_int32 *plastiter, kmp_int64 *plower,
916 kmp_int64 *pupper, kmp_int64 *pstride,
917 kmp_int64 incr, kmp_int64 chunk) {
918 __kmp_for_static_init<kmp_int64>(loc, gtid, schedtype, plastiter, plower,
919 pupper, pstride, incr, chunk
920#
if OMPT_SUPPORT && OMPT_OPTIONAL
922 OMPT_GET_RETURN_ADDRESS(0)
931 kmp_int32 schedtype, kmp_int32 *plastiter,
932 kmp_uint64 *plower, kmp_uint64 *pupper,
933 kmp_int64 *pstride, kmp_int64 incr,
935 __kmp_for_static_init<kmp_uint64>(loc, gtid, schedtype, plastiter, plower,
936 pupper, pstride, incr, chunk
937#
if OMPT_SUPPORT && OMPT_OPTIONAL
939 OMPT_GET_RETURN_ADDRESS(0)
947#if OMPT_SUPPORT && OMPT_OPTIONAL
948#define OMPT_CODEPTR_ARG , OMPT_GET_RETURN_ADDRESS(0)
950#define OMPT_CODEPTR_ARG
976 kmp_int32 schedule, kmp_int32 *plastiter,
977 kmp_int32 *plower, kmp_int32 *pupper,
978 kmp_int32 *pupperD, kmp_int32 *pstride,
979 kmp_int32 incr, kmp_int32 chunk) {
980 __kmp_dist_for_static_init<kmp_int32>(loc, gtid, schedule, plastiter, plower,
981 pupper, pupperD, pstride, incr,
982 chunk OMPT_CODEPTR_ARG);
989 kmp_int32 schedule, kmp_int32 *plastiter,
990 kmp_uint32 *plower, kmp_uint32 *pupper,
991 kmp_uint32 *pupperD, kmp_int32 *pstride,
992 kmp_int32 incr, kmp_int32 chunk) {
993 __kmp_dist_for_static_init<kmp_uint32>(loc, gtid, schedule, plastiter, plower,
994 pupper, pupperD, pstride, incr,
995 chunk OMPT_CODEPTR_ARG);
1002 kmp_int32 schedule, kmp_int32 *plastiter,
1003 kmp_int64 *plower, kmp_int64 *pupper,
1004 kmp_int64 *pupperD, kmp_int64 *pstride,
1005 kmp_int64 incr, kmp_int64 chunk) {
1006 __kmp_dist_for_static_init<kmp_int64>(loc, gtid, schedule, plastiter, plower,
1007 pupper, pupperD, pstride, incr,
1008 chunk OMPT_CODEPTR_ARG);
1015 kmp_int32 schedule, kmp_int32 *plastiter,
1016 kmp_uint64 *plower, kmp_uint64 *pupper,
1017 kmp_uint64 *pupperD, kmp_int64 *pstride,
1018 kmp_int64 incr, kmp_int64 chunk) {
1019 __kmp_dist_for_static_init<kmp_uint64>(loc, gtid, schedule, plastiter, plower,
1020 pupper, pupperD, pstride, incr,
1021 chunk OMPT_CODEPTR_ARG);
1054 kmp_int32 *p_lb, kmp_int32 *p_ub,
1055 kmp_int32 *p_st, kmp_int32 incr,
1057 KMP_DEBUG_ASSERT(__kmp_init_serial);
1058 __kmp_team_static_init<kmp_int32>(loc, gtid, p_last, p_lb, p_ub, p_st, incr,
1066 kmp_uint32 *p_lb, kmp_uint32 *p_ub,
1067 kmp_int32 *p_st, kmp_int32 incr,
1069 KMP_DEBUG_ASSERT(__kmp_init_serial);
1070 __kmp_team_static_init<kmp_uint32>(loc, gtid, p_last, p_lb, p_ub, p_st, incr,
1078 kmp_int64 *p_lb, kmp_int64 *p_ub,
1079 kmp_int64 *p_st, kmp_int64 incr,
1081 KMP_DEBUG_ASSERT(__kmp_init_serial);
1082 __kmp_team_static_init<kmp_int64>(loc, gtid, p_last, p_lb, p_ub, p_st, incr,
1090 kmp_uint64 *p_lb, kmp_uint64 *p_ub,
1091 kmp_int64 *p_st, kmp_int64 incr,
1093 KMP_DEBUG_ASSERT(__kmp_init_serial);
1094 __kmp_team_static_init<kmp_uint64>(loc, gtid, p_last, p_lb, p_ub, p_st, incr,
@ KMP_IDENT_WORK_SECTIONS
@ KMP_IDENT_WORK_DISTRIBUTE
#define KMP_COUNT_VALUE(name, value)
Adds value to specified timer (name).
#define KMP_COUNT_BLOCK(name)
Increments specified counter (name).
void __kmpc_for_static_init_8(ident_t *loc, kmp_int32 gtid, kmp_int32 schedtype, kmp_int32 *plastiter, kmp_int64 *plower, kmp_int64 *pupper, kmp_int64 *pstride, kmp_int64 incr, kmp_int64 chunk)
void __kmpc_dist_for_static_init_8(ident_t *loc, kmp_int32 gtid, kmp_int32 schedule, kmp_int32 *plastiter, kmp_int64 *plower, kmp_int64 *pupper, kmp_int64 *pupperD, kmp_int64 *pstride, kmp_int64 incr, kmp_int64 chunk)
void __kmpc_for_static_init_4u(ident_t *loc, kmp_int32 gtid, kmp_int32 schedtype, kmp_int32 *plastiter, kmp_uint32 *plower, kmp_uint32 *pupper, kmp_int32 *pstride, kmp_int32 incr, kmp_int32 chunk)
void __kmpc_team_static_init_8(ident_t *loc, kmp_int32 gtid, kmp_int32 *p_last, kmp_int64 *p_lb, kmp_int64 *p_ub, kmp_int64 *p_st, kmp_int64 incr, kmp_int64 chunk)
void __kmpc_dist_for_static_init_4u(ident_t *loc, kmp_int32 gtid, kmp_int32 schedule, kmp_int32 *plastiter, kmp_uint32 *plower, kmp_uint32 *pupper, kmp_uint32 *pupperD, kmp_int32 *pstride, kmp_int32 incr, kmp_int32 chunk)
void __kmpc_team_static_init_8u(ident_t *loc, kmp_int32 gtid, kmp_int32 *p_last, kmp_uint64 *p_lb, kmp_uint64 *p_ub, kmp_int64 *p_st, kmp_int64 incr, kmp_int64 chunk)
void __kmpc_for_static_init_8u(ident_t *loc, kmp_int32 gtid, kmp_int32 schedtype, kmp_int32 *plastiter, kmp_uint64 *plower, kmp_uint64 *pupper, kmp_int64 *pstride, kmp_int64 incr, kmp_int64 chunk)
void __kmpc_team_static_init_4u(ident_t *loc, kmp_int32 gtid, kmp_int32 *p_last, kmp_uint32 *p_lb, kmp_uint32 *p_ub, kmp_int32 *p_st, kmp_int32 incr, kmp_int32 chunk)
void __kmpc_dist_for_static_init_4(ident_t *loc, kmp_int32 gtid, kmp_int32 schedule, kmp_int32 *plastiter, kmp_int32 *plower, kmp_int32 *pupper, kmp_int32 *pupperD, kmp_int32 *pstride, kmp_int32 incr, kmp_int32 chunk)
void __kmpc_for_static_init_4(ident_t *loc, kmp_int32 gtid, kmp_int32 schedtype, kmp_int32 *plastiter, kmp_int32 *plower, kmp_int32 *pupper, kmp_int32 *pstride, kmp_int32 incr, kmp_int32 chunk)
void __kmpc_team_static_init_4(ident_t *loc, kmp_int32 gtid, kmp_int32 *p_last, kmp_int32 *p_lb, kmp_int32 *p_ub, kmp_int32 *p_st, kmp_int32 incr, kmp_int32 chunk)
void __kmpc_dist_for_static_init_8u(ident_t *loc, kmp_int32 gtid, kmp_int32 schedule, kmp_int32 *plastiter, kmp_uint64 *plower, kmp_uint64 *pupper, kmp_uint64 *pupperD, kmp_int64 *pstride, kmp_int64 incr, kmp_int64 chunk)