Searched refs:nproc (Results 1 - 19 of 19) sorted by relevance

/freebsd-13-stable/usr.bin/systat/
H A Dpigs.c61 static int nproc; variable
96 qsort(pt, nproc, sizeof (struct p_times), compar);
98 i = nproc;
151 if ((kpp = kvm_getprocs(kd, KERN_PROC_ALL, 0, &nproc)) == NULL) {
157 if (nproc > lastnproc) {
160 malloc(nproc * sizeof(struct p_times))) == NULL) {
165 lastnproc = nproc;
169 for (i = 0; i < nproc; i++) {
/freebsd-13-stable/contrib/llvm-project/lldb/source/Host/netbsd/
H A DHostNetBSD.cpp140 int nproc; local
149 sizeof(struct ::kinfo_proc2), &nproc)) ==
155 if (nproc < 1) {
195 int nproc; local
197 sizeof(struct ::kinfo_proc2), &nproc)) ==
203 for (int i = 0; i < nproc; i++) {
/freebsd-13-stable/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_barrier.cpp85 int nproc = this_thr->th.th_team_nproc; local
91 for (i = 1; i < nproc; ++i) {
94 if (i + 1 < nproc)
162 kmp_uint32 nproc = this_thr->th.th_team_nproc; local
173 if (nproc > 1) {
179 for (i = 1; i < nproc; ++i) {
191 for (i = 1; i < nproc; ++i) {
194 if (i + 1 < nproc)
301 kmp_uint32 nproc = this_thr->th.th_team_nproc; local
323 if (child_tid < nproc) {
411 kmp_uint32 nproc; local
805 __kmp_init_hierarchical_barrier_thread(enum barrier_type bt, kmp_bstate_t *thr_bar, kmp_uint32 nproc, int gtid, int tid, kmp_team_t *team) argument
876 kmp_uint32 nproc = this_thr->th.th_team_nproc; local
1056 kmp_uint32 nproc; local
1461 int nproc = this_thr->th.th_team_nproc; local
1674 kmp_uint nproc; local
1847 int nproc = this_thr->th.th_team_nproc; local
[all...]
H A Dkmp_dispatch.cpp87 // ub (upper bound), and st (stride). nproc is the number of threads relevant
90 // the function within the group of nproc threads. It will have a value
91 // between 0 and nproc - 1. This is often just the thread id within a team, but
104 T nproc, T tid) {
122 "schedule:%%d chunk:%%%s nproc:%%%s tid:%%%s\n",
126 KD_TRACE(10, (buff, gtid, pr, lb, ub, st, schedule, chunk, nproc, tid));
240 if (schedule == kmp_sch_guided_analytical_chunked && nproc > 1 << 20) {
350 if (nproc > 1 && ntc >= nproc) {
355 small_chunk = ntc / nproc;
96 __kmp_dispatch_init_algorithm(ident_t *loc, int gtid, dispatch_private_info_template<T> *pr, enum sched_type schedule, T lb, T ub, typename traits_t<T>::signed_t st, kmp_uint64 *cur_chunk, typename traits_t<T>::signed_t chunk, T nproc, T tid) argument
1140 __kmp_dispatch_next_algorithm(int gtid, dispatch_private_info_template<T> *pr, dispatch_shared_info_template<T> volatile *sh, kmp_int32 *p_last, T *p_lb, T *p_ub, typename traits_t<T>::signed_t *p_st, T nproc, T tid) argument
[all...]
H A Dkmp_dispatch_hier.h504 T nproc;
515 nproc = (T)get_top_level_nproc();
523 nproc = (T)parent->get_num_active();
532 &my_st, nproc, hier_id);
559 chunk, nproc, hier_id);
561 gtid, my_pr, my_sh, &contains_last, &my_lb, &my_ub, &my_st, nproc,
721 T nproc = (T)parent->get_num_active();
725 ("kmp_hier_t.next(): T#%d THREAD LEVEL nproc:%d unit_id:%d called\n",
726 gtid, nproc, unit_id));
746 gtid, pr, sh, &contains_last, p_lb, p_ub, p_st, nproc, unit_i
[all...]
H A Dkmp_affinity.h778 // Resize the hierarchy if nproc changes to something larger than before
779 void resize(kmp_uint32 nproc) { argument
783 if (nproc <= base_num_threads) // happy with other thread's resize
789 if (nproc <= base_num_threads)
796 for (kmp_uint32 i = depth; i < maxLevels && nproc > old_sz; ++i) {
802 if (nproc > old_sz) { // Not enough space, need to expand hierarchy
803 while (nproc > old_sz) {
840 base_num_threads = nproc;
H A Dkmp_dispatch.h54 T nproc, T unit_id);
59 T *p_ub, typename traits_t<T>::signed_t *p_st, T nproc, T unit_id);
499 // p2 = n * nproc * ( chunk + 1 ) // point of switching to dynamic
500 // p3 = 1 / ( n * nproc ) // remaining iterations multiplier
503 // With n = 1 first chunk is the same as for static schedule, e.g. trip / nproc.
H A Dkmp_affinity.cpp28 void __kmp_get_hierarchy(kmp_uint32 nproc, kmp_bstate_t *thr_bar) { argument
33 machine_hierarchy.init(NULL, nproc);
36 if (nproc > machine_hierarchy.base_num_threads)
37 machine_hierarchy.resize(nproc);
4567 int nproc = ncores * maxprocpercore; local
4568 if ((nproc < 2) || (nproc < __kmp_avail_proc)) {
4576 procarr = (int *)__kmp_allocate(sizeof(int) * nproc);
4577 for (int i = 0; i < nproc; i++) {
5229 int nproc local
[all...]
H A Dkmp.h1807 int nproc; /* internal control for #threads for next parallel region (per member in struct:kmp_internal_control
1843 kmp_uint32 nproc; member in struct:kmp_bstate
2006 ((xteam)->t.t_threads[(xtid)]->th.th_current_task->td_icvs.nproc)
2029 (((xthread)->th.th_current_task->td_icvs.nproc) = (xval))
3044 // AT: 1. nproc = __kmp_threads[ ( gtid ) ] -> th.th_team -> t.t_nproc;
3045 // AT: 2. nproc = __kmp_threads[ ( gtid ) ] -> th.th_team_nproc;
3351 extern void __kmp_get_hierarchy(kmp_uint32 nproc, kmp_bstate_t *thr_bar);
H A Dkmp_ftn_entry.h345 // thread->th.th_info.ds.ds_tid ] -> icvs.nproc;
346 return thread->th.th_current_task->td_icvs.nproc;
H A Dkmp_runtime.cpp109 ("*** __kmp_get_global_thread_id: entering, nproc=%d all_nproc=%d\n",
1269 this_thr->th.th_current_task->td_icvs.nproc =
1320 this_thr->th.th_current_task->td_icvs.nproc =
1659 master_tid); // TODO: get nproc directly from current task
1938 int nthreads_icv = master_th->th.th_current_task->td_icvs.nproc;
1977 new_icvs.nproc = nthreads_icv;
2599 if (thread->th.th_current_task->td_icvs.nproc == new_nth)
3088 __kmp_dflt_team_nth, // int nproc; //internal control for # of threads for
4402 KMP_DEBUG_ASSERT((!TCR_4(__kmp_init_parallel)) || new_icvs->nproc);
6818 if (thread->th.th_current_task->td_icvs.nproc !
[all...]
/freebsd-13-stable/bin/pkill/
H A Dpkill.c101 static int nproc; variable
326 plist = kvm_getprocs(kd, KERN_PROC_PID, pidfromfile, &nproc);
328 plist = kvm_getprocs(kd, KERN_PROC_PROC, 0, &nproc);
338 if ((selected = malloc(nproc)) == NULL) {
340 nproc);
342 memset(selected, 0, nproc);
355 for (i = 0, kp = plist; i < nproc; i++, kp++) {
404 for (i = 0, kp = plist; i < nproc; i++, kp++) {
506 for (i = 0, kp = plist; i < nproc; i++, kp++) {
515 if (i == nproc) {
[all...]
/freebsd-13-stable/usr.bin/top/
H A Dutils.c310 int nproc; local
319 pbase = kvm_getprocs(kd, KERN_PROC_PID, pid, &nproc);
324 if ((nproc == 1) && (pbase->ki_pid == pid)) {
H A Dmachine.c157 static int nproc; variable
316 nproc = 0;
753 nproc = 0;
759 if (previous_proc_count_max < nproc) {
761 previous_procs = calloc(nproc, sizeof(*previous_procs));
763 previous_pref = calloc(nproc, sizeof(*previous_pref));
768 previous_proc_count_max = nproc;
770 if (nproc) {
771 for (i = 0; i < nproc; i++)
773 memcpy(previous_procs, pbase, nproc * sizeo
[all...]
/freebsd-13-stable/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_swrun_tbl.c329 int nproc; local
332 plist = kvm_getprocs(hr_kd, KERN_PROC_ALL, 0, &nproc);
333 if (plist == NULL || nproc < 0) {
337 for (i = 0, kp = plist; i < nproc; i++, kp++) {
431 int nproc; local
459 entry->index - 1, &nproc);
460 if (plist == NULL || nproc != 1) {
475 int nproc; local
526 entry->index - 1, &nproc);
527 if (plist == NULL || nproc !
[all...]
/freebsd-13-stable/usr.sbin/pmcstat/
H A Dpmcstat.c175 int n, nproc, pid, rv; local
199 0, &nproc)) == NULL)
203 nproc = 0;
211 for (n = 0, kp = pmcstat_plist; n < nproc; n++, kp++) {
/freebsd-13-stable/contrib/ipfilter/ipsend/
H A Dsock.c77 int nproc; variable
/freebsd-13-stable/contrib/sendmail/src/
H A Dconf.c5305 int nproc = 0; local
5314 sz = (size_t) sizeof(nproc);
5315 (void) sysctl(mib, 2, &nproc, &sz, NULL, 0);
5319 nproc = (int) sysconf(_SC_NPROCESSORS_ONLN);
5326 nproc = psd.psd_proc_cnt;
5331 if (nproc <= 0)
5332 nproc = 1;
5333 return nproc;
/freebsd-13-stable/
H A DMakefile.inc11167 _ncpu_cmd=sysctl -n hw.ncpu 2>/dev/null || nproc 2>/dev/null || echo unknown

Completed in 401 milliseconds