21 #include "kmp_error.h" 24 #include "kmp_stats.h" 28 #include "ompt-specific.h" 34 char const *traits_t<int>::spec =
"d";
35 char const *traits_t<unsigned int>::spec =
"u";
36 char const *traits_t<long long>::spec =
"lld";
37 char const *traits_t<unsigned long long>::spec =
"llu";
42 static void __kmp_for_static_init(
ident_t *loc, kmp_int32 global_tid,
43 kmp_int32 schedtype, kmp_int32 *plastiter,
45 typename traits_t<T>::signed_t *pstride,
46 typename traits_t<T>::signed_t incr,
47 typename traits_t<T>::signed_t chunk
48 #
if OMPT_SUPPORT && OMPT_OPTIONAL
54 KMP_TIME_PARTITIONED_BLOCK(FOR_static_scheduling);
56 typedef typename traits_t<T>::unsigned_t UT;
57 typedef typename traits_t<T>::signed_t ST;
59 kmp_int32 gtid = global_tid;
64 kmp_info_t *th = __kmp_threads[gtid];
66 #if OMPT_SUPPORT && OMPT_OPTIONAL 67 ompt_team_info_t *team_info = NULL;
68 ompt_task_info_t *task_info = NULL;
69 ompt_work_type_t ompt_work_type = ompt_work_loop;
71 static kmp_int8 warn = 0;
73 if (ompt_enabled.ompt_callback_work) {
75 team_info = __ompt_get_teaminfo(0, NULL);
76 task_info = __ompt_get_task_info_object(0);
79 if ((loc->
flags & KMP_IDENT_WORK_LOOP) != 0) {
80 ompt_work_type = ompt_work_loop;
81 }
else if ((loc->
flags & KMP_IDENT_WORK_SECTIONS) != 0) {
82 ompt_work_type = ompt_work_sections;
83 }
else if ((loc->
flags & KMP_IDENT_WORK_DISTRIBUTE) != 0) {
84 ompt_work_type = ompt_work_distribute;
87 KMP_COMPARE_AND_STORE_ACQ8(&warn, (kmp_int8)0, (kmp_int8)1);
89 KMP_WARNING(OmptOutdatedWorkshare);
91 KMP_DEBUG_ASSERT(ompt_work_type);
96 KMP_DEBUG_ASSERT(plastiter && plower && pupper && pstride);
97 KE_TRACE(10, (
"__kmpc_for_static_init called (%d)\n", global_tid));
102 buff = __kmp_str_format(
103 "__kmpc_for_static_init: T#%%d sched=%%d liter=%%d iter=(%%%s," 104 " %%%s, %%%s) incr=%%%s chunk=%%%s signed?<%s>\n",
105 traits_t<T>::spec, traits_t<T>::spec, traits_t<ST>::spec,
106 traits_t<ST>::spec, traits_t<ST>::spec, traits_t<T>::spec);
107 KD_TRACE(100, (buff, global_tid, schedtype, *plastiter, *plower, *pupper,
108 *pstride, incr, chunk));
109 __kmp_str_free(&buff);
113 if (__kmp_env_consistency_check) {
114 __kmp_push_workshare(global_tid, ct_pdo, loc);
116 __kmp_error_construct(kmp_i18n_msg_CnsLoopIncrZeroProhibited, ct_pdo,
121 if (incr > 0 ? (*pupper < *plower) : (*plower < *pupper)) {
122 if (plastiter != NULL)
134 buff = __kmp_str_format(
"__kmpc_for_static_init:(ZERO TRIP) liter=%%d " 135 "lower=%%%s upper=%%%s stride = %%%s " 136 "signed?<%s>, loc = %%s\n",
137 traits_t<T>::spec, traits_t<T>::spec,
138 traits_t<ST>::spec, traits_t<T>::spec);
140 (buff, *plastiter, *plower, *pupper, *pstride, loc->
psource));
141 __kmp_str_free(&buff);
144 KE_TRACE(10, (
"__kmpc_for_static_init: T#%d return\n", global_tid));
146 #if OMPT_SUPPORT && OMPT_OPTIONAL 147 if (ompt_enabled.ompt_callback_work) {
148 ompt_callbacks.ompt_callback(ompt_callback_work)(
149 ompt_work_type, ompt_scope_begin, &(team_info->parallel_data),
150 &(task_info->task_data), 0, codeptr);
166 tid = th->th.th_team->t.t_master_tid;
167 team = th->th.th_team->t.t_parent;
171 tid = __kmp_tid_from_gtid(global_tid);
172 team = th->th.th_team;
176 if (team->t.t_serialized) {
178 if (plastiter != NULL)
182 (incr > 0) ? (*pupper - *plower + 1) : (-(*plower - *pupper + 1));
188 buff = __kmp_str_format(
"__kmpc_for_static_init: (serial) liter=%%d " 189 "lower=%%%s upper=%%%s stride = %%%s\n",
190 traits_t<T>::spec, traits_t<T>::spec,
192 KD_TRACE(100, (buff, *plastiter, *plower, *pupper, *pstride));
193 __kmp_str_free(&buff);
196 KE_TRACE(10, (
"__kmpc_for_static_init: T#%d return\n", global_tid));
198 #if OMPT_SUPPORT && OMPT_OPTIONAL 199 if (ompt_enabled.ompt_callback_work) {
200 ompt_callbacks.ompt_callback(ompt_callback_work)(
201 ompt_work_type, ompt_scope_begin, &(team_info->parallel_data),
202 &(task_info->task_data), *pstride, codeptr);
207 nth = team->t.t_nproc;
209 if (plastiter != NULL)
212 (incr > 0) ? (*pupper - *plower + 1) : (-(*plower - *pupper + 1));
217 buff = __kmp_str_format(
"__kmpc_for_static_init: (serial) liter=%%d " 218 "lower=%%%s upper=%%%s stride = %%%s\n",
219 traits_t<T>::spec, traits_t<T>::spec,
221 KD_TRACE(100, (buff, *plastiter, *plower, *pupper, *pstride));
222 __kmp_str_free(&buff);
225 KE_TRACE(10, (
"__kmpc_for_static_init: T#%d return\n", global_tid));
227 #if OMPT_SUPPORT && OMPT_OPTIONAL 228 if (ompt_enabled.ompt_callback_work) {
229 ompt_callbacks.ompt_callback(ompt_callback_work)(
230 ompt_work_type, ompt_scope_begin, &(team_info->parallel_data),
231 &(task_info->task_data), *pstride, codeptr);
239 trip_count = *pupper - *plower + 1;
240 }
else if (incr == -1) {
241 trip_count = *plower - *pupper + 1;
242 }
else if (incr > 0) {
244 trip_count = (UT)(*pupper - *plower) / incr + 1;
246 trip_count = (UT)(*plower - *pupper) / (-incr) + 1;
249 if (__kmp_env_consistency_check) {
251 if (trip_count == 0 && *pupper != *plower) {
252 __kmp_error_construct(kmp_i18n_msg_CnsIterationRangeTooLarge, ct_pdo,
261 if (trip_count < nth) {
263 __kmp_static == kmp_sch_static_greedy ||
265 kmp_sch_static_balanced);
266 if (tid < trip_count) {
267 *pupper = *plower = *plower + tid * incr;
269 *plower = *pupper + incr;
271 if (plastiter != NULL)
272 *plastiter = (tid == trip_count - 1);
274 if (__kmp_static == kmp_sch_static_balanced) {
275 UT small_chunk = trip_count / nth;
276 UT extras = trip_count % nth;
277 *plower += incr * (tid * small_chunk + (tid < extras ? tid : extras));
278 *pupper = *plower + small_chunk * incr - (tid < extras ? 0 : incr);
279 if (plastiter != NULL)
280 *plastiter = (tid == nth - 1);
282 T big_chunk_inc_count =
283 (trip_count / nth + ((trip_count % nth) ? 1 : 0)) * incr;
284 T old_upper = *pupper;
286 KMP_DEBUG_ASSERT(__kmp_static == kmp_sch_static_greedy);
289 *plower += tid * big_chunk_inc_count;
290 *pupper = *plower + big_chunk_inc_count - incr;
292 if (*pupper < *plower)
293 *pupper = traits_t<T>::max_value;
294 if (plastiter != NULL)
295 *plastiter = *plower <= old_upper && *pupper > old_upper - incr;
296 if (*pupper > old_upper)
299 if (*pupper > *plower)
300 *pupper = traits_t<T>::min_value;
301 if (plastiter != NULL)
302 *plastiter = *plower >= old_upper && *pupper < old_upper - incr;
303 if (*pupper < old_upper)
308 *pstride = trip_count;
311 case kmp_sch_static_chunked: {
317 *pstride = span * nth;
318 *plower = *plower + (span * tid);
319 *pupper = *plower + span - incr;
320 if (plastiter != NULL)
321 *plastiter = (tid == ((trip_count - 1) / (UT)chunk) % nth);
325 case kmp_sch_static_balanced_chunked: {
326 T old_upper = *pupper;
328 UT span = (trip_count + nth - 1) / nth;
331 chunk = (span + chunk - 1) & ~(chunk - 1);
334 *plower = *plower + (span * tid);
335 *pupper = *plower + span - incr;
337 if (*pupper > old_upper)
339 }
else if (*pupper < old_upper)
342 if (plastiter != NULL)
343 *plastiter = (tid == ((trip_count - 1) / (UT)chunk));
348 KMP_ASSERT2(0,
"__kmpc_for_static_init: unknown scheduling type");
354 if (KMP_MASTER_TID(tid) && __itt_metadata_add_ptr &&
355 __kmp_forkjoin_frames_mode == 3 &&
357 th->th.th_teams_microtask == NULL &&
359 team->t.t_active_level == 1) {
360 kmp_uint64 cur_chunk = chunk;
364 cur_chunk = trip_count / nth + ((trip_count % nth) ? 1 : 0);
367 __kmp_itt_metadata_loop(loc, 0, trip_count, cur_chunk);
374 buff = __kmp_str_format(
"__kmpc_for_static_init: liter=%%d lower=%%%s " 375 "upper=%%%s stride = %%%s signed?<%s>\n",
376 traits_t<T>::spec, traits_t<T>::spec,
377 traits_t<ST>::spec, traits_t<T>::spec);
378 KD_TRACE(100, (buff, *plastiter, *plower, *pupper, *pstride));
379 __kmp_str_free(&buff);
382 KE_TRACE(10, (
"__kmpc_for_static_init: T#%d return\n", global_tid));
384 #if OMPT_SUPPORT && OMPT_OPTIONAL 385 if (ompt_enabled.ompt_callback_work) {
386 ompt_callbacks.ompt_callback(ompt_callback_work)(
387 ompt_work_type, ompt_scope_begin, &(team_info->parallel_data),
388 &(task_info->task_data), trip_count, codeptr);
395 template <
typename T>
396 static void __kmp_dist_for_static_init(
ident_t *loc, kmp_int32 gtid,
397 kmp_int32 schedule, kmp_int32 *plastiter,
398 T *plower, T *pupper, T *pupperDist,
399 typename traits_t<T>::signed_t *pstride,
400 typename traits_t<T>::signed_t incr,
401 typename traits_t<T>::signed_t chunk) {
403 typedef typename traits_t<T>::unsigned_t UT;
404 typedef typename traits_t<T>::signed_t ST;
413 KMP_DEBUG_ASSERT(plastiter && plower && pupper && pupperDist && pstride);
414 KE_TRACE(10, (
"__kmpc_dist_for_static_init called (%d)\n", gtid));
419 buff = __kmp_str_format(
420 "__kmpc_dist_for_static_init: T#%%d schedLoop=%%d liter=%%d " 421 "iter=(%%%s, %%%s, %%%s) chunk=%%%s signed?<%s>\n",
422 traits_t<T>::spec, traits_t<T>::spec, traits_t<ST>::spec,
423 traits_t<ST>::spec, traits_t<T>::spec);
425 (buff, gtid, schedule, *plastiter, *plower, *pupper, incr, chunk));
426 __kmp_str_free(&buff);
430 if (__kmp_env_consistency_check) {
431 __kmp_push_workshare(gtid, ct_pdo, loc);
433 __kmp_error_construct(kmp_i18n_msg_CnsLoopIncrZeroProhibited, ct_pdo,
436 if (incr > 0 ? (*pupper < *plower) : (*plower < *pupper)) {
446 __kmp_error_construct(kmp_i18n_msg_CnsLoopIncrIllegal, ct_pdo, loc);
449 tid = __kmp_tid_from_gtid(gtid);
450 th = __kmp_threads[gtid];
451 nth = th->th.th_team_nproc;
452 team = th->th.th_team;
454 KMP_DEBUG_ASSERT(th->th.th_teams_microtask);
455 nteams = th->th.th_teams_size.nteams;
457 team_id = team->t.t_master_tid;
458 KMP_DEBUG_ASSERT(nteams == team->t.t_parent->t.t_nproc);
462 trip_count = *pupper - *plower + 1;
463 }
else if (incr == -1) {
464 trip_count = *plower - *pupper + 1;
465 }
else if (incr > 0) {
467 trip_count = (UT)(*pupper - *plower) / incr + 1;
469 trip_count = (UT)(*plower - *pupper) / (-incr) + 1;
472 *pstride = *pupper - *plower;
473 if (trip_count <= nteams) {
475 __kmp_static == kmp_sch_static_greedy ||
477 kmp_sch_static_balanced);
480 if (team_id < trip_count && tid == 0) {
481 *pupper = *pupperDist = *plower = *plower + team_id * incr;
483 *pupperDist = *pupper;
484 *plower = *pupper + incr;
486 if (plastiter != NULL)
487 *plastiter = (tid == 0 && team_id == trip_count - 1);
490 if (__kmp_static == kmp_sch_static_balanced) {
491 UT chunkD = trip_count / nteams;
492 UT extras = trip_count % nteams;
494 incr * (team_id * chunkD + (team_id < extras ? team_id : extras));
495 *pupperDist = *plower + chunkD * incr - (team_id < extras ? 0 : incr);
496 if (plastiter != NULL)
497 *plastiter = (team_id == nteams - 1);
500 (trip_count / nteams + ((trip_count % nteams) ? 1 : 0)) * incr;
502 KMP_DEBUG_ASSERT(__kmp_static == kmp_sch_static_greedy);
504 *plower += team_id * chunk_inc_count;
505 *pupperDist = *plower + chunk_inc_count - incr;
508 if (*pupperDist < *plower)
509 *pupperDist = traits_t<T>::max_value;
510 if (plastiter != NULL)
511 *plastiter = *plower <= upper && *pupperDist > upper - incr;
512 if (*pupperDist > upper)
514 if (*plower > *pupperDist) {
515 *pupper = *pupperDist;
519 if (*pupperDist > *plower)
520 *pupperDist = traits_t<T>::min_value;
521 if (plastiter != NULL)
522 *plastiter = *plower >= upper && *pupperDist < upper - incr;
523 if (*pupperDist < upper)
525 if (*plower < *pupperDist) {
526 *pupper = *pupperDist;
534 trip_count = *pupperDist - *plower + 1;
535 }
else if (incr == -1) {
536 trip_count = *plower - *pupperDist + 1;
537 }
else if (incr > 1) {
539 trip_count = (UT)(*pupperDist - *plower) / incr + 1;
541 trip_count = (UT)(*plower - *pupperDist) / (-incr) + 1;
543 KMP_DEBUG_ASSERT(trip_count);
546 if (trip_count <= nth) {
548 __kmp_static == kmp_sch_static_greedy ||
550 kmp_sch_static_balanced);
551 if (tid < trip_count)
552 *pupper = *plower = *plower + tid * incr;
554 *plower = *pupper + incr;
555 if (plastiter != NULL)
556 if (*plastiter != 0 && !(tid == trip_count - 1))
559 if (__kmp_static == kmp_sch_static_balanced) {
560 UT chunkL = trip_count / nth;
561 UT extras = trip_count % nth;
562 *plower += incr * (tid * chunkL + (tid < extras ? tid : extras));
563 *pupper = *plower + chunkL * incr - (tid < extras ? 0 : incr);
564 if (plastiter != NULL)
565 if (*plastiter != 0 && !(tid == nth - 1))
569 (trip_count / nth + ((trip_count % nth) ? 1 : 0)) * incr;
570 T upper = *pupperDist;
571 KMP_DEBUG_ASSERT(__kmp_static == kmp_sch_static_greedy);
573 *plower += tid * chunk_inc_count;
574 *pupper = *plower + chunk_inc_count - incr;
576 if (*pupper < *plower)
577 *pupper = traits_t<T>::max_value;
578 if (plastiter != NULL)
579 if (*plastiter != 0 &&
580 !(*plower <= upper && *pupper > upper - incr))
585 if (*pupper > *plower)
586 *pupper = traits_t<T>::min_value;
587 if (plastiter != NULL)
588 if (*plastiter != 0 &&
589 !(*plower >= upper && *pupper < upper - incr))
598 case kmp_sch_static_chunked: {
603 *pstride = span * nth;
604 *plower = *plower + (span * tid);
605 *pupper = *plower + span - incr;
606 if (plastiter != NULL)
607 if (*plastiter != 0 && !(tid == ((trip_count - 1) / (UT)chunk) % nth))
613 "__kmpc_dist_for_static_init: unknown loop scheduling type");
622 buff = __kmp_str_format(
623 "__kmpc_dist_for_static_init: last=%%d lo=%%%s up=%%%s upDist=%%%s " 624 "stride=%%%s signed?<%s>\n",
625 traits_t<T>::spec, traits_t<T>::spec, traits_t<T>::spec,
626 traits_t<ST>::spec, traits_t<T>::spec);
627 KD_TRACE(100, (buff, *plastiter, *plower, *pupper, *pupperDist, *pstride));
628 __kmp_str_free(&buff);
631 KE_TRACE(10, (
"__kmpc_dist_for_static_init: T#%d return\n", gtid));
635 template <
typename T>
636 static void __kmp_team_static_init(
ident_t *loc, kmp_int32 gtid,
637 kmp_int32 *p_last, T *p_lb, T *p_ub,
638 typename traits_t<T>::signed_t *p_st,
639 typename traits_t<T>::signed_t incr,
640 typename traits_t<T>::signed_t chunk) {
646 typedef typename traits_t<T>::unsigned_t UT;
647 typedef typename traits_t<T>::signed_t ST;
657 KMP_DEBUG_ASSERT(p_last && p_lb && p_ub && p_st);
658 KE_TRACE(10, (
"__kmp_team_static_init called (%d)\n", gtid));
663 buff = __kmp_str_format(
"__kmp_team_static_init enter: T#%%d liter=%%d " 664 "iter=(%%%s, %%%s, %%%s) chunk %%%s; signed?<%s>\n",
665 traits_t<T>::spec, traits_t<T>::spec,
666 traits_t<ST>::spec, traits_t<ST>::spec,
668 KD_TRACE(100, (buff, gtid, *p_last, *p_lb, *p_ub, *p_st, chunk));
669 __kmp_str_free(&buff);
675 if (__kmp_env_consistency_check) {
677 __kmp_error_construct(kmp_i18n_msg_CnsLoopIncrZeroProhibited, ct_pdo,
680 if (incr > 0 ? (upper < lower) : (lower < upper)) {
690 __kmp_error_construct(kmp_i18n_msg_CnsLoopIncrIllegal, ct_pdo, loc);
693 th = __kmp_threads[gtid];
694 team = th->th.th_team;
696 KMP_DEBUG_ASSERT(th->th.th_teams_microtask);
697 nteams = th->th.th_teams_size.nteams;
699 team_id = team->t.t_master_tid;
700 KMP_DEBUG_ASSERT(nteams == team->t.t_parent->t.t_nproc);
704 trip_count = upper - lower + 1;
705 }
else if (incr == -1) {
706 trip_count = lower - upper + 1;
707 }
else if (incr > 0) {
709 trip_count = (UT)(upper - lower) / incr + 1;
711 trip_count = (UT)(lower - upper) / (-incr) + 1;
716 *p_st = span * nteams;
717 *p_lb = lower + (span * team_id);
718 *p_ub = *p_lb + span - incr;
720 *p_last = (team_id == ((trip_count - 1) / (UT)chunk) % nteams);
724 *p_ub = traits_t<T>::max_value;
729 *p_ub = traits_t<T>::min_value;
738 __kmp_str_format(
"__kmp_team_static_init exit: T#%%d team%%u liter=%%d " 739 "iter=(%%%s, %%%s, %%%s) chunk %%%s\n",
740 traits_t<T>::spec, traits_t<T>::spec,
741 traits_t<ST>::spec, traits_t<ST>::spec);
742 KD_TRACE(100, (buff, gtid, team_id, *p_last, *p_lb, *p_ub, *p_st, chunk));
743 __kmp_str_free(&buff);
772 kmp_int32 *plastiter, kmp_int32 *plower,
773 kmp_int32 *pupper, kmp_int32 *pstride,
774 kmp_int32 incr, kmp_int32 chunk) {
775 __kmp_for_static_init<kmp_int32>(loc, gtid, schedtype, plastiter, plower,
776 pupper, pstride, incr, chunk
777 #if OMPT_SUPPORT && OMPT_OPTIONAL 779 OMPT_GET_RETURN_ADDRESS(0)
788 kmp_int32 schedtype, kmp_int32 *plastiter,
789 kmp_uint32 *plower, kmp_uint32 *pupper,
790 kmp_int32 *pstride, kmp_int32 incr,
792 __kmp_for_static_init<kmp_uint32>(loc, gtid, schedtype, plastiter, plower,
793 pupper, pstride, incr, chunk
794 #if OMPT_SUPPORT && OMPT_OPTIONAL 796 OMPT_GET_RETURN_ADDRESS(0)
805 kmp_int32 *plastiter, kmp_int64 *plower,
806 kmp_int64 *pupper, kmp_int64 *pstride,
807 kmp_int64 incr, kmp_int64 chunk) {
808 __kmp_for_static_init<kmp_int64>(loc, gtid, schedtype, plastiter, plower,
809 pupper, pstride, incr, chunk
810 #if OMPT_SUPPORT && OMPT_OPTIONAL 812 OMPT_GET_RETURN_ADDRESS(0)
821 kmp_int32 schedtype, kmp_int32 *plastiter,
822 kmp_uint64 *plower, kmp_uint64 *pupper,
823 kmp_int64 *pstride, kmp_int64 incr,
825 __kmp_for_static_init<kmp_uint64>(loc, gtid, schedtype, plastiter, plower,
826 pupper, pstride, incr, chunk
827 #if OMPT_SUPPORT && OMPT_OPTIONAL 829 OMPT_GET_RETURN_ADDRESS(0)
860 kmp_int32 schedule, kmp_int32 *plastiter,
861 kmp_int32 *plower, kmp_int32 *pupper,
862 kmp_int32 *pupperD, kmp_int32 *pstride,
863 kmp_int32 incr, kmp_int32 chunk) {
864 __kmp_dist_for_static_init<kmp_int32>(loc, gtid, schedule, plastiter, plower,
865 pupper, pupperD, pstride, incr, chunk);
872 kmp_int32 schedule, kmp_int32 *plastiter,
873 kmp_uint32 *plower, kmp_uint32 *pupper,
874 kmp_uint32 *pupperD, kmp_int32 *pstride,
875 kmp_int32 incr, kmp_int32 chunk) {
876 __kmp_dist_for_static_init<kmp_uint32>(loc, gtid, schedule, plastiter, plower,
877 pupper, pupperD, pstride, incr, chunk);
884 kmp_int32 schedule, kmp_int32 *plastiter,
885 kmp_int64 *plower, kmp_int64 *pupper,
886 kmp_int64 *pupperD, kmp_int64 *pstride,
887 kmp_int64 incr, kmp_int64 chunk) {
888 __kmp_dist_for_static_init<kmp_int64>(loc, gtid, schedule, plastiter, plower,
889 pupper, pupperD, pstride, incr, chunk);
896 kmp_int32 schedule, kmp_int32 *plastiter,
897 kmp_uint64 *plower, kmp_uint64 *pupper,
898 kmp_uint64 *pupperD, kmp_int64 *pstride,
899 kmp_int64 incr, kmp_int64 chunk) {
900 __kmp_dist_for_static_init<kmp_uint64>(loc, gtid, schedule, plastiter, plower,
901 pupper, pupperD, pstride, incr, chunk);
934 kmp_int32 *p_lb, kmp_int32 *p_ub,
935 kmp_int32 *p_st, kmp_int32 incr,
937 KMP_DEBUG_ASSERT(__kmp_init_serial);
938 __kmp_team_static_init<kmp_int32>(loc, gtid, p_last, p_lb, p_ub, p_st, incr,
946 kmp_uint32 *p_lb, kmp_uint32 *p_ub,
947 kmp_int32 *p_st, kmp_int32 incr,
949 KMP_DEBUG_ASSERT(__kmp_init_serial);
950 __kmp_team_static_init<kmp_uint32>(loc, gtid, p_last, p_lb, p_ub, p_st, incr,
958 kmp_int64 *p_lb, kmp_int64 *p_ub,
959 kmp_int64 *p_st, kmp_int64 incr,
961 KMP_DEBUG_ASSERT(__kmp_init_serial);
962 __kmp_team_static_init<kmp_int64>(loc, gtid, p_last, p_lb, p_ub, p_st, incr,
970 kmp_uint64 *p_lb, kmp_uint64 *p_ub,
971 kmp_int64 *p_st, kmp_int64 incr,
973 KMP_DEBUG_ASSERT(__kmp_init_serial);
974 __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)