Lines Matching defs:nproc

107                              typename traits_t<T>::unsigned_t nchunks, T nproc,
119 T num_procs_with_ecore = nproc - num_procs_with_pcore;
151 small_chunk = nchunks / nproc; // chunks per thread
152 extras = nchunks % nproc;
175 // ub (upper bound), and st (stride). nproc is the number of threads relevant
178 // the function within the group of nproc threads. It will have a value
179 // between 0 and nproc - 1. This is often just the thread id within a team, but
192 T nproc, T tid) {
210 "schedule:%%d chunk:%%%s nproc:%%%s tid:%%%s\n",
214 KD_TRACE(10, (buff, gtid, pr, lb, ub, st, schedule, chunk, nproc, tid));
330 if (schedule == kmp_sch_guided_analytical_chunked && nproc > 1 << 20) {
440 if (nproc > 1 && ntc >= nproc) {
491 float p_ratio = (float)num_procs_with_pcore / nproc;
492 float e_ratio = (float)num_procs_with_ecore / nproc;
495 (((multiplier * num_procs_with_pcore) / nproc) + e_ratio);
521 KMP_DEBUG_ASSERT(nproc == num_procs_with_pcore + num_procs_with_ecore);
551 small_chunk = ntc / nproc;
552 extras = ntc % nproc;
569 // nproc (just a heuristics, could be optimized later on).
570 pr->u.p.parm3 = nproc;
571 pr->u.p.parm4 = (id + 1) % nproc; // remember neighbour tid
592 if (nproc > 1) {
595 if (tc < nproc) {
606 T small_chunk = tc / nproc;
607 T extras = tc % nproc;
610 pr->u.p.parm1 = (id == nproc - 1);
653 T nth = nproc;
672 if (nproc > 1) {
673 if ((2L * chunk + 1) * nproc >= tc) {
679 pr->u.p.parm2 = guided_int_param * nproc * (chunk + 1);
681 guided_flt_param / (double)nproc; // may occupy parm3 and parm4
702 if (nproc > 1) {
703 if ((2L * chunk + 1) * nproc >= tc) {
708 /* commonly used term: (2 nproc - 1)/(2 nproc) */
726 long double target = ((long double)chunk * 2 + 1) * nproc / tc;
732 /* commonly used term: (2 nproc - 1)/(2 nproc) */
733 x = 1.0 - 0.5 / (double)nproc;
828 pr->u.p.parm1 = (nproc > 1) ? (tc + nproc - 1) / nproc : tc;
857 parm2 = (tc / (2 * nproc));
1327 typename traits_t<T>::signed_t *p_st, T nproc,
1344 KMP_DEBUG_ASSERT(tid >= 0 && tid < nproc);
1351 "sh:%%p nproc:%%%s tid:%%%s\n",
1353 KD_TRACE(10, (buff, gtid, pr, sh, nproc, tid));
1405 T oldVictimId = victimId ? victimId - 1 : nproc - 1;
1411 victimId = (victimId + 1) % nproc;
1417 continue; // try once more (nproc attempts in total)
1427 __kmp_initialize_self_buffer<T>(team, id, pr, nchunks, nproc,
1434 pr->u.p.parm4 = (id + 1) % nproc; // remember neighbour tid
1456 pr->u.p.parm4 = (victimId + 1) % nproc; // shift start victim tid
1465 pr->u.p.parm4 = (victimId + 1) % nproc; // shift start victim tid
1548 T oldVictimId = victimId ? victimId - 1 : nproc - 1;
1554 victimId = (victimId + 1) % nproc;
1560 continue; // try once more (nproc attempts in total)
1570 __kmp_initialize_self_buffer<T>(team, id, pr, nchunks, nproc,
1581 pr->u.p.parm4 = (id + 1) % nproc; // remember neighbour tid
1606 pr->u.p.parm4 = (victimId + 1) % nproc; // shift start victim id
1732 pr->u.p.count += nproc;
1814 pr->u.p.parm2) { // compare with K*nproc*(chunk+1), K=2 by default
1835 *(double *)&pr->u.p.parm3); // divide by K*nproc
1882 // compare with K*nproc*(chunk+1), K=2 by default
1903 // divide by K*nproc
1954 KMP_DEBUG_ASSERT(nproc > 1);
1955 KMP_DEBUG_ASSERT((2UL * chunkspec + 1) * (UT)nproc < trip);