Lines Matching refs:nproc

91                                    T nproc, T tid) {  in __kmp_dispatch_init_algorithm()  argument
111 KD_TRACE(10, (buff, gtid, pr, lb, ub, st, schedule, chunk, nproc, tid)); in __kmp_dispatch_init_algorithm()
213 if (schedule == kmp_sch_guided_analytical_chunked && nproc > 1 << 20) { in __kmp_dispatch_init_algorithm()
316 if (nproc > 1 && ntc >= nproc) { in __kmp_dispatch_init_algorithm()
321 small_chunk = ntc / nproc; in __kmp_dispatch_init_algorithm()
322 extras = ntc % nproc; in __kmp_dispatch_init_algorithm()
330 pr->u.p.parm4 = (id + 1) % nproc; // remember neighbour tid in __kmp_dispatch_init_algorithm()
362 if (nproc > 1) { in __kmp_dispatch_init_algorithm()
365 if (tc < nproc) { in __kmp_dispatch_init_algorithm()
376 T small_chunk = tc / nproc; in __kmp_dispatch_init_algorithm()
377 T extras = tc % nproc; in __kmp_dispatch_init_algorithm()
380 pr->u.p.parm1 = (id == nproc - 1); in __kmp_dispatch_init_algorithm()
424 T nth = nproc; in __kmp_dispatch_init_algorithm()
444 if (nproc > 1) { in __kmp_dispatch_init_algorithm()
445 if ((2L * chunk + 1) * nproc >= tc) { in __kmp_dispatch_init_algorithm()
450 pr->u.p.parm2 = guided_int_param * nproc * (chunk + 1); in __kmp_dispatch_init_algorithm()
452 guided_flt_param / nproc; // may occupy parm3 and parm4 in __kmp_dispatch_init_algorithm()
473 if (nproc > 1) { in __kmp_dispatch_init_algorithm()
474 if ((2L * chunk + 1) * nproc >= tc) { in __kmp_dispatch_init_algorithm()
495 long double target = ((long double)chunk * 2 + 1) * nproc / tc; in __kmp_dispatch_init_algorithm()
502 x = (long double)1.0 - (long double)0.5 / nproc; in __kmp_dispatch_init_algorithm()
596 pr->u.p.parm1 = (nproc > 1) ? (tc + nproc - 1) / nproc : tc; in __kmp_dispatch_init_algorithm()
618 parm2 = (tc / (2 * nproc)); in __kmp_dispatch_init_algorithm()
1110 typename traits_t<T>::signed_t *p_st, T nproc, in __kmp_dispatch_next_algorithm() argument
1127 KMP_DEBUG_ASSERT(tid >= 0 && tid < nproc); in __kmp_dispatch_next_algorithm()
1136 KD_TRACE(10, (buff, gtid, pr, sh, nproc, tid)); in __kmp_dispatch_next_algorithm()
1177 int while_limit = nproc; // nproc attempts to find a victim in __kmp_dispatch_next_algorithm()
1184 T oldVictimIdx = victimIdx ? victimIdx - 1 : nproc - 1; in __kmp_dispatch_next_algorithm()
1193 victimIdx = (victimIdx + 1) % nproc; in __kmp_dispatch_next_algorithm()
1205 pr->u.p.parm4 = (victimIdx + 1) % nproc; // shift start tid in __kmp_dispatch_next_algorithm()
1216 pr->u.p.parm4 = (victimIdx + 1) % nproc; // next victim in __kmp_dispatch_next_algorithm()
1275 int while_limit = nproc; // nproc attempts to find a victim in __kmp_dispatch_next_algorithm()
1284 T oldVictimIdx = victimIdx ? victimIdx - 1 : nproc - 1; in __kmp_dispatch_next_algorithm()
1293 victimIdx = (victimIdx + 1) % nproc; in __kmp_dispatch_next_algorithm()
1312 pr->u.p.parm4 = (victimIdx + 1) % nproc; // shift start victim id in __kmp_dispatch_next_algorithm()
1422 pr->u.p.count += nproc; in __kmp_dispatch_next_algorithm()
1640 KMP_DEBUG_ASSERT(nproc > 1); in __kmp_dispatch_next_algorithm()
1641 KMP_DEBUG_ASSERT((2UL * chunkspec + 1) * (UT)nproc < trip); in __kmp_dispatch_next_algorithm()