20 #include "kmp_error.h"
23 #include "kmp_stats.h"
27 #include "ompt-specific.h"
33 char const *traits_t<int>::spec =
"d";
34 char const *traits_t<unsigned int>::spec =
"u";
35 char const *traits_t<long long>::spec =
"lld";
36 char const *traits_t<unsigned long long>::spec =
"llu";
37 char 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 t = (l - u) / (-i) + 1; \
57 KMP_COUNT_VALUE(stat, t); \
58 KMP_POP_PARTITIONED_TIMER(); \
61 #define KMP_STATS_LOOP_END(stat)
65 static void __kmp_for_static_init(
ident_t *loc, kmp_int32 global_tid,
66 kmp_int32 schedtype, kmp_int32 *plastiter,
68 typename traits_t<T>::signed_t *pstride,
69 typename traits_t<T>::signed_t incr,
70 typename traits_t<T>::signed_t chunk
71 #
if OMPT_SUPPORT && OMPT_OPTIONAL
77 KMP_PUSH_PARTITIONED_TIMER(OMP_loop_static);
78 KMP_PUSH_PARTITIONED_TIMER(OMP_loop_static_scheduling);
80 typedef typename traits_t<T>::unsigned_t UT;
81 typedef typename traits_t<T>::signed_t ST;
83 kmp_int32 gtid = global_tid;
88 kmp_info_t *th = __kmp_threads[gtid];
90 #if OMPT_SUPPORT && OMPT_OPTIONAL
91 ompt_team_info_t *team_info = NULL;
92 ompt_task_info_t *task_info = NULL;
93 ompt_work_t ompt_work_type = ompt_work_loop;
95 static kmp_int8 warn = 0;
97 if (ompt_enabled.ompt_callback_work) {
99 team_info = __ompt_get_teaminfo(0, NULL);
100 task_info = __ompt_get_task_info_object(0);
104 ompt_work_type = ompt_work_loop;
106 ompt_work_type = ompt_work_sections;
108 ompt_work_type = ompt_work_distribute;
111 KMP_COMPARE_AND_STORE_ACQ8(&warn, (kmp_int8)0, (kmp_int8)1);
113 KMP_WARNING(OmptOutdatedWorkshare);
115 KMP_DEBUG_ASSERT(ompt_work_type);
120 KMP_DEBUG_ASSERT(plastiter && plower && pupper && pstride);
121 KE_TRACE(10, (
"__kmpc_for_static_init called (%d)\n", global_tid));
126 buff = __kmp_str_format(
127 "__kmpc_for_static_init: T#%%d sched=%%d liter=%%d iter=(%%%s,"
128 " %%%s, %%%s) incr=%%%s chunk=%%%s signed?<%s>\n",
129 traits_t<T>::spec, traits_t<T>::spec, traits_t<ST>::spec,
130 traits_t<ST>::spec, traits_t<ST>::spec, traits_t<T>::spec);
131 KD_TRACE(100, (buff, global_tid, schedtype, *plastiter, *plower, *pupper,
132 *pstride, incr, chunk));
133 __kmp_str_free(&buff);
137 if (__kmp_env_consistency_check) {
138 __kmp_push_workshare(global_tid, ct_pdo, loc);
140 __kmp_error_construct(kmp_i18n_msg_CnsLoopIncrZeroProhibited, ct_pdo,
145 if (incr > 0 ? (*pupper < *plower) : (*plower < *pupper)) {
146 if (plastiter != NULL)
158 buff = __kmp_str_format(
"__kmpc_for_static_init:(ZERO TRIP) liter=%%d "
159 "lower=%%%s upper=%%%s stride = %%%s "
160 "signed?<%s>, loc = %%s\n",
161 traits_t<T>::spec, traits_t<T>::spec,
162 traits_t<ST>::spec, traits_t<T>::spec);
164 (buff, *plastiter, *plower, *pupper, *pstride, loc->
psource));
165 __kmp_str_free(&buff);
168 KE_TRACE(10, (
"__kmpc_for_static_init: T#%d return\n", global_tid));
170 #if OMPT_SUPPORT && OMPT_OPTIONAL
171 if (ompt_enabled.ompt_callback_work) {
172 ompt_callbacks.ompt_callback(ompt_callback_work)(
173 ompt_work_type, ompt_scope_begin, &(team_info->parallel_data),
174 &(task_info->task_data), 0, codeptr);
177 KMP_STATS_LOOP_END(OMP_loop_static_iterations);
190 tid = th->th.th_team->t.t_master_tid;
191 team = th->th.th_team->t.t_parent;
195 tid = __kmp_tid_from_gtid(global_tid);
196 team = th->th.th_team;
200 if (team->t.t_serialized) {
202 if (plastiter != NULL)
206 (incr > 0) ? (*pupper - *plower + 1) : (-(*plower - *pupper + 1));
212 buff = __kmp_str_format(
"__kmpc_for_static_init: (serial) liter=%%d "
213 "lower=%%%s upper=%%%s stride = %%%s\n",
214 traits_t<T>::spec, traits_t<T>::spec,
216 KD_TRACE(100, (buff, *plastiter, *plower, *pupper, *pstride));
217 __kmp_str_free(&buff);
220 KE_TRACE(10, (
"__kmpc_for_static_init: T#%d return\n", global_tid));
222 #if OMPT_SUPPORT && OMPT_OPTIONAL
223 if (ompt_enabled.ompt_callback_work) {
224 ompt_callbacks.ompt_callback(ompt_callback_work)(
225 ompt_work_type, ompt_scope_begin, &(team_info->parallel_data),
226 &(task_info->task_data), *pstride, codeptr);
229 KMP_STATS_LOOP_END(OMP_loop_static_iterations);
232 nth = team->t.t_nproc;
234 if (plastiter != NULL)
237 (incr > 0) ? (*pupper - *plower + 1) : (-(*plower - *pupper + 1));
242 buff = __kmp_str_format(
"__kmpc_for_static_init: (serial) liter=%%d "
243 "lower=%%%s upper=%%%s stride = %%%s\n",
244 traits_t<T>::spec, traits_t<T>::spec,
246 KD_TRACE(100, (buff, *plastiter, *plower, *pupper, *pstride));
247 __kmp_str_free(&buff);
250 KE_TRACE(10, (
"__kmpc_for_static_init: T#%d return\n", global_tid));
252 #if OMPT_SUPPORT && OMPT_OPTIONAL
253 if (ompt_enabled.ompt_callback_work) {
254 ompt_callbacks.ompt_callback(ompt_callback_work)(
255 ompt_work_type, ompt_scope_begin, &(team_info->parallel_data),
256 &(task_info->task_data), *pstride, codeptr);
259 KMP_STATS_LOOP_END(OMP_loop_static_iterations);
265 trip_count = *pupper - *plower + 1;
266 }
else if (incr == -1) {
267 trip_count = *plower - *pupper + 1;
268 }
else if (incr > 0) {
270 trip_count = (UT)(*pupper - *plower) / incr + 1;
272 trip_count = (UT)(*plower - *pupper) / (-incr) + 1;
275 #if KMP_STATS_ENABLED
276 if (KMP_MASTER_GTID(gtid)) {
281 if (__kmp_env_consistency_check) {
283 if (trip_count == 0 && *pupper != *plower) {
284 __kmp_error_construct(kmp_i18n_msg_CnsIterationRangeTooLarge, ct_pdo,
292 if (trip_count < nth) {
294 __kmp_static == kmp_sch_static_greedy ||
296 kmp_sch_static_balanced);
297 if (tid < trip_count) {
298 *pupper = *plower = *plower + tid * incr;
300 *plower = *pupper + incr;
302 if (plastiter != NULL)
303 *plastiter = (tid == trip_count - 1);
305 if (__kmp_static == kmp_sch_static_balanced) {
306 UT small_chunk = trip_count / nth;
307 UT extras = trip_count % nth;
308 *plower += incr * (tid * small_chunk + (tid < extras ? tid : extras));
309 *pupper = *plower + small_chunk * incr - (tid < extras ? 0 : incr);
310 if (plastiter != NULL)
311 *plastiter = (tid == nth - 1);
313 T big_chunk_inc_count =
314 (trip_count / nth + ((trip_count % nth) ? 1 : 0)) * incr;
315 T old_upper = *pupper;
317 KMP_DEBUG_ASSERT(__kmp_static == kmp_sch_static_greedy);
320 *plower += tid * big_chunk_inc_count;
321 *pupper = *plower + big_chunk_inc_count - incr;
323 if (*pupper < *plower)
324 *pupper = traits_t<T>::max_value;
325 if (plastiter != NULL)
326 *plastiter = *plower <= old_upper && *pupper > old_upper - incr;
327 if (*pupper > old_upper)
330 if (*pupper > *plower)
331 *pupper = traits_t<T>::min_value;
332 if (plastiter != NULL)
333 *plastiter = *plower >= old_upper && *pupper < old_upper - incr;
334 if (*pupper < old_upper)
339 *pstride = trip_count;
342 case kmp_sch_static_chunked: {
348 *pstride = span * nth;
349 *plower = *plower + (span * tid);
350 *pupper = *plower + span - incr;
351 if (plastiter != NULL)
352 *plastiter = (tid == ((trip_count - 1) / (UT)chunk) % nth);
356 case kmp_sch_static_balanced_chunked: {
357 T old_upper = *pupper;
359 UT span = (trip_count + nth - 1) / nth;
362 chunk = (span + chunk - 1) & ~(chunk - 1);
365 *plower = *plower + (span * tid);
366 *pupper = *plower + span - incr;
368 if (*pupper > old_upper)
370 }
else if (*pupper < old_upper)
373 if (plastiter != NULL)
374 *plastiter = (tid == ((trip_count - 1) / (UT)chunk));
379 KMP_ASSERT2(0,
"__kmpc_for_static_init: unknown scheduling type");
385 if (KMP_MASTER_TID(tid) && __itt_metadata_add_ptr &&
386 __kmp_forkjoin_frames_mode == 3 &&
388 th->th.th_teams_microtask == NULL &&
390 team->t.t_active_level == 1) {
391 kmp_uint64 cur_chunk = chunk;
395 cur_chunk = trip_count / nth + ((trip_count % nth) ? 1 : 0);
398 __kmp_itt_metadata_loop(loc, 0, trip_count, cur_chunk);
405 buff = __kmp_str_format(
"__kmpc_for_static_init: liter=%%d lower=%%%s "
406 "upper=%%%s stride = %%%s signed?<%s>\n",
407 traits_t<T>::spec, traits_t<T>::spec,
408 traits_t<ST>::spec, traits_t<T>::spec);
409 KD_TRACE(100, (buff, *plastiter, *plower, *pupper, *pstride));
410 __kmp_str_free(&buff);
413 KE_TRACE(10, (
"__kmpc_for_static_init: T#%d return\n", global_tid));
415 #if OMPT_SUPPORT && OMPT_OPTIONAL
416 if (ompt_enabled.ompt_callback_work) {
417 ompt_callbacks.ompt_callback(ompt_callback_work)(
418 ompt_work_type, ompt_scope_begin, &(team_info->parallel_data),
419 &(task_info->task_data), trip_count, codeptr);
423 KMP_STATS_LOOP_END(OMP_loop_static_iterations);
427 template <
typename T>
428 static void __kmp_dist_for_static_init(
ident_t *loc, kmp_int32 gtid,
429 kmp_int32 schedule, kmp_int32 *plastiter,
430 T *plower, T *pupper, T *pupperDist,
431 typename traits_t<T>::signed_t *pstride,
432 typename traits_t<T>::signed_t incr,
433 typename traits_t<T>::signed_t chunk) {
435 KMP_PUSH_PARTITIONED_TIMER(OMP_distribute);
436 KMP_PUSH_PARTITIONED_TIMER(OMP_distribute_scheduling);
437 typedef typename traits_t<T>::unsigned_t UT;
438 typedef typename traits_t<T>::signed_t ST;
447 KMP_DEBUG_ASSERT(plastiter && plower && pupper && pupperDist && pstride);
448 KE_TRACE(10, (
"__kmpc_dist_for_static_init called (%d)\n", gtid));
453 buff = __kmp_str_format(
454 "__kmpc_dist_for_static_init: T#%%d schedLoop=%%d liter=%%d "
455 "iter=(%%%s, %%%s, %%%s) chunk=%%%s signed?<%s>\n",
456 traits_t<T>::spec, traits_t<T>::spec, traits_t<ST>::spec,
457 traits_t<ST>::spec, traits_t<T>::spec);
459 (buff, gtid, schedule, *plastiter, *plower, *pupper, incr, chunk));
460 __kmp_str_free(&buff);
464 if (__kmp_env_consistency_check) {
465 __kmp_push_workshare(gtid, ct_pdo, loc);
467 __kmp_error_construct(kmp_i18n_msg_CnsLoopIncrZeroProhibited, ct_pdo,
470 if (incr > 0 ? (*pupper < *plower) : (*plower < *pupper)) {
480 __kmp_error_construct(kmp_i18n_msg_CnsLoopIncrIllegal, ct_pdo, loc);
483 tid = __kmp_tid_from_gtid(gtid);
484 th = __kmp_threads[gtid];
485 nth = th->th.th_team_nproc;
486 team = th->th.th_team;
488 KMP_DEBUG_ASSERT(th->th.th_teams_microtask);
489 nteams = th->th.th_teams_size.nteams;
491 team_id = team->t.t_master_tid;
492 KMP_DEBUG_ASSERT(nteams == (kmp_uint32)team->t.t_parent->t.t_nproc);
496 trip_count = *pupper - *plower + 1;
497 }
else if (incr == -1) {
498 trip_count = *plower - *pupper + 1;
499 }
else if (incr > 0) {
501 trip_count = (UT)(*pupper - *plower) / incr + 1;
503 trip_count = (UT)(*plower - *pupper) / (-incr) + 1;
506 *pstride = *pupper - *plower;
507 if (trip_count <= nteams) {
509 __kmp_static == kmp_sch_static_greedy ||
511 kmp_sch_static_balanced);
514 if (team_id < trip_count && tid == 0) {
515 *pupper = *pupperDist = *plower = *plower + team_id * incr;
517 *pupperDist = *pupper;
518 *plower = *pupper + incr;
520 if (plastiter != NULL)
521 *plastiter = (tid == 0 && team_id == trip_count - 1);
524 if (__kmp_static == kmp_sch_static_balanced) {
525 UT chunkD = trip_count / nteams;
526 UT extras = trip_count % nteams;
528 incr * (team_id * chunkD + (team_id < extras ? team_id : extras));
529 *pupperDist = *plower + chunkD * incr - (team_id < extras ? 0 : incr);
530 if (plastiter != NULL)
531 *plastiter = (team_id == nteams - 1);
534 (trip_count / nteams + ((trip_count % nteams) ? 1 : 0)) * incr;
536 KMP_DEBUG_ASSERT(__kmp_static == kmp_sch_static_greedy);
538 *plower += team_id * chunk_inc_count;
539 *pupperDist = *plower + chunk_inc_count - incr;
542 if (*pupperDist < *plower)
543 *pupperDist = traits_t<T>::max_value;
544 if (plastiter != NULL)
545 *plastiter = *plower <= upper && *pupperDist > upper - incr;
546 if (*pupperDist > upper)
548 if (*plower > *pupperDist) {
549 *pupper = *pupperDist;
553 if (*pupperDist > *plower)
554 *pupperDist = traits_t<T>::min_value;
555 if (plastiter != NULL)
556 *plastiter = *plower >= upper && *pupperDist < upper - incr;
557 if (*pupperDist < upper)
559 if (*plower < *pupperDist) {
560 *pupper = *pupperDist;
568 trip_count = *pupperDist - *plower + 1;
569 }
else if (incr == -1) {
570 trip_count = *plower - *pupperDist + 1;
571 }
else if (incr > 1) {
573 trip_count = (UT)(*pupperDist - *plower) / incr + 1;
575 trip_count = (UT)(*plower - *pupperDist) / (-incr) + 1;
577 KMP_DEBUG_ASSERT(trip_count);
580 if (trip_count <= nth) {
582 __kmp_static == kmp_sch_static_greedy ||
584 kmp_sch_static_balanced);
585 if (tid < trip_count)
586 *pupper = *plower = *plower + tid * incr;
588 *plower = *pupper + incr;
589 if (plastiter != NULL)
590 if (*plastiter != 0 && !(tid == trip_count - 1))
593 if (__kmp_static == kmp_sch_static_balanced) {
594 UT chunkL = trip_count / nth;
595 UT extras = trip_count % nth;
596 *plower += incr * (tid * chunkL + (tid < extras ? tid : extras));
597 *pupper = *plower + chunkL * incr - (tid < extras ? 0 : incr);
598 if (plastiter != NULL)
599 if (*plastiter != 0 && !(tid == nth - 1))
603 (trip_count / nth + ((trip_count % nth) ? 1 : 0)) * incr;
604 T upper = *pupperDist;
605 KMP_DEBUG_ASSERT(__kmp_static == kmp_sch_static_greedy);
607 *plower += tid * chunk_inc_count;
608 *pupper = *plower + chunk_inc_count - incr;
610 if (*pupper < *plower)
611 *pupper = traits_t<T>::max_value;
612 if (plastiter != NULL)
613 if (*plastiter != 0 &&
614 !(*plower <= upper && *pupper > upper - incr))
619 if (*pupper > *plower)
620 *pupper = traits_t<T>::min_value;
621 if (plastiter != NULL)
622 if (*plastiter != 0 &&
623 !(*plower >= upper && *pupper < upper - incr))
632 case kmp_sch_static_chunked: {
637 *pstride = span * nth;
638 *plower = *plower + (span * tid);
639 *pupper = *plower + span - incr;
640 if (plastiter != NULL)
641 if (*plastiter != 0 && !(tid == ((trip_count - 1) / (UT)chunk) % nth))
647 "__kmpc_dist_for_static_init: unknown loop scheduling type");
656 buff = __kmp_str_format(
657 "__kmpc_dist_for_static_init: last=%%d lo=%%%s up=%%%s upDist=%%%s "
658 "stride=%%%s signed?<%s>\n",
659 traits_t<T>::spec, traits_t<T>::spec, traits_t<T>::spec,
660 traits_t<ST>::spec, traits_t<T>::spec);
661 KD_TRACE(100, (buff, *plastiter, *plower, *pupper, *pupperDist, *pstride));
662 __kmp_str_free(&buff);
665 KE_TRACE(10, (
"__kmpc_dist_for_static_init: T#%d return\n", gtid));
666 KMP_STATS_LOOP_END(OMP_distribute_iterations);
670 template <
typename T>
671 static void __kmp_team_static_init(
ident_t *loc, kmp_int32 gtid,
672 kmp_int32 *p_last, T *p_lb, T *p_ub,
673 typename traits_t<T>::signed_t *p_st,
674 typename traits_t<T>::signed_t incr,
675 typename traits_t<T>::signed_t chunk) {
681 typedef typename traits_t<T>::unsigned_t UT;
682 typedef typename traits_t<T>::signed_t ST;
692 KMP_DEBUG_ASSERT(p_last && p_lb && p_ub && p_st);
693 KE_TRACE(10, (
"__kmp_team_static_init called (%d)\n", gtid));
698 buff = __kmp_str_format(
"__kmp_team_static_init enter: T#%%d liter=%%d "
699 "iter=(%%%s, %%%s, %%%s) chunk %%%s; signed?<%s>\n",
700 traits_t<T>::spec, traits_t<T>::spec,
701 traits_t<ST>::spec, traits_t<ST>::spec,
703 KD_TRACE(100, (buff, gtid, *p_last, *p_lb, *p_ub, *p_st, chunk));
704 __kmp_str_free(&buff);
710 if (__kmp_env_consistency_check) {
712 __kmp_error_construct(kmp_i18n_msg_CnsLoopIncrZeroProhibited, ct_pdo,
715 if (incr > 0 ? (upper < lower) : (lower < upper)) {
725 __kmp_error_construct(kmp_i18n_msg_CnsLoopIncrIllegal, ct_pdo, loc);
728 th = __kmp_threads[gtid];
729 team = th->th.th_team;
731 KMP_DEBUG_ASSERT(th->th.th_teams_microtask);
732 nteams = th->th.th_teams_size.nteams;
734 team_id = team->t.t_master_tid;
735 KMP_DEBUG_ASSERT(nteams == (kmp_uint32)team->t.t_parent->t.t_nproc);
739 trip_count = upper - lower + 1;
740 }
else if (incr == -1) {
741 trip_count = lower - upper + 1;
742 }
else if (incr > 0) {
744 trip_count = (UT)(upper - lower) / incr + 1;
746 trip_count = (UT)(lower - upper) / (-incr) + 1;
751 *p_st = span * nteams;
752 *p_lb = lower + (span * team_id);
753 *p_ub = *p_lb + span - incr;
755 *p_last = (team_id == ((trip_count - 1) / (UT)chunk) % nteams);
759 *p_ub = traits_t<T>::max_value;
764 *p_ub = traits_t<T>::min_value;
773 __kmp_str_format(
"__kmp_team_static_init exit: T#%%d team%%u liter=%%d "
774 "iter=(%%%s, %%%s, %%%s) chunk %%%s\n",
775 traits_t<T>::spec, traits_t<T>::spec,
776 traits_t<ST>::spec, traits_t<ST>::spec);
777 KD_TRACE(100, (buff, gtid, team_id, *p_last, *p_lb, *p_ub, *p_st, chunk));
778 __kmp_str_free(&buff);
807 kmp_int32 *plastiter, kmp_int32 *plower,
808 kmp_int32 *pupper, kmp_int32 *pstride,
809 kmp_int32 incr, kmp_int32 chunk) {
810 __kmp_for_static_init<kmp_int32>(loc, gtid, schedtype, plastiter, plower,
811 pupper, pstride, incr, chunk
812 #if OMPT_SUPPORT && OMPT_OPTIONAL
814 OMPT_GET_RETURN_ADDRESS(0)
823 kmp_int32 schedtype, kmp_int32 *plastiter,
824 kmp_uint32 *plower, kmp_uint32 *pupper,
825 kmp_int32 *pstride, kmp_int32 incr,
827 __kmp_for_static_init<kmp_uint32>(loc, gtid, schedtype, plastiter, plower,
828 pupper, pstride, incr, chunk
829 #if OMPT_SUPPORT && OMPT_OPTIONAL
831 OMPT_GET_RETURN_ADDRESS(0)
840 kmp_int32 *plastiter, kmp_int64 *plower,
841 kmp_int64 *pupper, kmp_int64 *pstride,
842 kmp_int64 incr, kmp_int64 chunk) {
843 __kmp_for_static_init<kmp_int64>(loc, gtid, schedtype, plastiter, plower,
844 pupper, pstride, incr, chunk
845 #if OMPT_SUPPORT && OMPT_OPTIONAL
847 OMPT_GET_RETURN_ADDRESS(0)
856 kmp_int32 schedtype, kmp_int32 *plastiter,
857 kmp_uint64 *plower, kmp_uint64 *pupper,
858 kmp_int64 *pstride, kmp_int64 incr,
860 __kmp_for_static_init<kmp_uint64>(loc, gtid, schedtype, plastiter, plower,
861 pupper, pstride, incr, chunk
862 #if OMPT_SUPPORT && OMPT_OPTIONAL
864 OMPT_GET_RETURN_ADDRESS(0)
895 kmp_int32 schedule, kmp_int32 *plastiter,
896 kmp_int32 *plower, kmp_int32 *pupper,
897 kmp_int32 *pupperD, kmp_int32 *pstride,
898 kmp_int32 incr, kmp_int32 chunk) {
899 __kmp_dist_for_static_init<kmp_int32>(loc, gtid, schedule, plastiter, plower,
900 pupper, pupperD, pstride, incr, chunk);
907 kmp_int32 schedule, kmp_int32 *plastiter,
908 kmp_uint32 *plower, kmp_uint32 *pupper,
909 kmp_uint32 *pupperD, kmp_int32 *pstride,
910 kmp_int32 incr, kmp_int32 chunk) {
911 __kmp_dist_for_static_init<kmp_uint32>(loc, gtid, schedule, plastiter, plower,
912 pupper, pupperD, pstride, incr, chunk);
919 kmp_int32 schedule, kmp_int32 *plastiter,
920 kmp_int64 *plower, kmp_int64 *pupper,
921 kmp_int64 *pupperD, kmp_int64 *pstride,
922 kmp_int64 incr, kmp_int64 chunk) {
923 __kmp_dist_for_static_init<kmp_int64>(loc, gtid, schedule, plastiter, plower,
924 pupper, pupperD, pstride, incr, chunk);
931 kmp_int32 schedule, kmp_int32 *plastiter,
932 kmp_uint64 *plower, kmp_uint64 *pupper,
933 kmp_uint64 *pupperD, kmp_int64 *pstride,
934 kmp_int64 incr, kmp_int64 chunk) {
935 __kmp_dist_for_static_init<kmp_uint64>(loc, gtid, schedule, plastiter, plower,
936 pupper, pupperD, pstride, incr, chunk);
969 kmp_int32 *p_lb, kmp_int32 *p_ub,
970 kmp_int32 *p_st, kmp_int32 incr,
972 KMP_DEBUG_ASSERT(__kmp_init_serial);
973 __kmp_team_static_init<kmp_int32>(loc, gtid, p_last, p_lb, p_ub, p_st, incr,
981 kmp_uint32 *p_lb, kmp_uint32 *p_ub,
982 kmp_int32 *p_st, kmp_int32 incr,
984 KMP_DEBUG_ASSERT(__kmp_init_serial);
985 __kmp_team_static_init<kmp_uint32>(loc, gtid, p_last, p_lb, p_ub, p_st, incr,
993 kmp_int64 *p_lb, kmp_int64 *p_ub,
994 kmp_int64 *p_st, kmp_int64 incr,
996 KMP_DEBUG_ASSERT(__kmp_init_serial);
997 __kmp_team_static_init<kmp_int64>(loc, gtid, p_last, p_lb, p_ub, p_st, incr,
1005 kmp_uint64 *p_lb, kmp_uint64 *p_ub,
1006 kmp_int64 *p_st, kmp_int64 incr,
1008 KMP_DEBUG_ASSERT(__kmp_init_serial);
1009 __kmp_team_static_init<kmp_uint64>(loc, gtid, p_last, p_lb, p_ub, p_st, incr,
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)
#define KMP_COUNT_VALUE(name, value)
Adds value to specified timer (name).
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_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)
#define KMP_COUNT_BLOCK(name)
Increments specified counter (name).
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_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_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_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_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)
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_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_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)