/freebsd-11-stable/contrib/gcclibs/libgomp/ |
H A D | ordered.c | 46 if (team == NULL || team->nthreads == 1) 50 if (index >= team->nthreads) 51 index -= team->nthreads; 77 if (team == NULL || team->nthreads == 1) 87 if (next == team->nthreads) 112 if (team == NULL || team->nthreads == 1) 130 if (ws->ordered_num_used < team->nthreads) 133 if (index >= team->nthreads) 134 index -= team->nthreads; 139 if (index == team->nthreads) [all...] |
H A D | team.c | 137 new_team (unsigned nthreads, struct gomp_work_share *work_share) argument 142 size = sizeof (*team) + nthreads * sizeof (team->ordered_release[0]); 152 team->nthreads = nthreads; 153 gomp_barrier_init (&team->barrier, nthreads); 178 gomp_team_start (void (*fn) (void *), void *data, unsigned nthreads, argument 191 team = new_team (nthreads, work_share); 204 if (nthreads == 1) 218 if (nthreads <= old_threads_used) 219 n = nthreads; [all...] |
H A D | iter.c | 46 unsigned long nthreads = team ? team->nthreads : 1; local 52 if (nthreads == 1) 79 q = n / nthreads; 80 q += (q * nthreads != n); 115 /* Initial guess is a C sized chunk positioned nthreads iterations 117 s0 = (thr->ts.static_trip * nthreads + i) * c; 238 unsigned long nthreads = team ? team->nthreads : 1; local 247 q = (n + nthreads 272 unsigned long nthreads = team ? team->nthreads : 1; local [all...] |
H A D | parallel.c | 88 return team ? team->nthreads : 1; 116 if (team->nthreads > 1)
|
H A D | work.c | 39 gomp_new_work_share (bool ordered, unsigned nthreads) argument 46 size += nthreads * sizeof (ws->ordered_team_ids[0]); 130 ws = gomp_new_work_share (ordered, team->nthreads); 208 if (completed == team->nthreads)
|
H A D | libgomp.h | 185 unsigned nthreads; member in struct:gomp_team
|
/freebsd-11-stable/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | barrier.c | 49 barrier_init(barrier_t *bar, int nthreads) argument 59 bar->bar_nthr = nthreads;
|
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libzpool/common/ |
H A D | taskq.c | 240 taskq_create(const char *name, int nthreads, pri_t pri, argument 248 ASSERT3S(nthreads, >=, 0); 249 ASSERT3S(nthreads, <=, 100); 250 pct = MIN(nthreads, 100); 253 nthreads = (sysconf(_SC_NPROCESSORS_ONLN) * pct) / 100; 254 nthreads = MAX(nthreads, 1); /* need at least 1 thread */ 256 ASSERT3S(nthreads, >=, 1); 266 tq->tq_active = nthreads; 267 tq->tq_nthreads = nthreads; 292 int nthreads = tq->tq_nthreads; local [all...] |
/freebsd-11-stable/tools/tools/netrate/netreceive/ |
H A D | netreceive.c | 72 fprintf(stderr, "netreceive port [nthreads]\n"); 127 make_threads(int *s, int nsock, int nthreads) argument 129 int i, si, nt = nsock * nthreads; 159 main_thread(struct td_desc **tp, int nsock, int nthreads) argument 168 int i, nt = nsock * nthreads; 201 int error, v, nthreads = 1; local 219 nthreads = strtoul(argv[2], &dummy, 10); 220 if (nthreads < 1 || nthreads > 64) 267 nsock, nthreads, (u_shor [all...] |
/freebsd-11-stable/sys/cddl/compat/opensolaris/kern/ |
H A D | opensolaris_taskq.c | 66 taskq_create(const char *name, int nthreads, pri_t pri, int minalloc __unused, argument 72 nthreads = MAX((mp_ncpus * nthreads) / 100, 1); 77 (void) taskqueue_start_threads(&tq->tq_queue, nthreads, pri, "%s", name); 83 taskq_create_proc(const char *name, int nthreads, pri_t pri, int minalloc, argument 87 return (taskq_create(name, nthreads, pri, minalloc, maxalloc, flags));
|
/freebsd-11-stable/contrib/netbsd-tests/lib/libpthread/ |
H A D | h_resolv.c | 67 "Usage: %s [-d] [-h <nhosts>] [-n <nthreads>] <file> ...\n", 144 int nthreads = NTHREADS; local 160 nthreads = atoi(optarg); 172 if ((nleft = malloc(nthreads * sizeof(int))) == NULL) 180 for (i = 0; i < nthreads; i++) { 187 for (i = 0; i < nthreads; i++) {
|
/freebsd-11-stable/usr.bin/sort/ |
H A D | sort.h | 60 extern size_t nthreads;
|
H A D | radixsort.c | 106 if (sort_left == 0 && nthreads > 1) 152 if (nthreads > 1) { 609 if (nthreads < 2) { 616 for(i = 0; i < nthreads; ++i) { 638 for (i = 0; i < nthreads; ++i) 650 size_t nthreads_save = nthreads; 652 nthreads = 1; 654 if (nthreads > 1) { 686 if (nthreads > 1) { 690 nthreads [all...] |
H A D | file.c | 1512 if (nthreads < 2 || list->count < MT_SORT_THRESHOLD) { 1513 size_t nthreads_save = nthreads; 1514 nthreads = 1; 1522 nthreads = nthreads_save; 1529 parts = sort_malloc(sizeof(struct sort_list*) * nthreads); 1531 avgsize = list->count / nthreads; 1537 for (i = 0; i < nthreads; ++i) { 1545 sz = (i == nthreads - 1) ? list->count - cstart : 1559 for (i = 0; i < nthreads; ++i) { 1583 for (i = 0; i < nthreads; [all...] |
H A D | sort.c | 109 size_t nthreads = 1; variable 293 nthreads = ncpu; 1104 nthreads = (size_t)(atoi(optarg)); 1105 if (nthreads < 1) 1106 nthreads = 1; 1107 if (nthreads > 1024) 1108 nthreads = 1024; 1213 nthreads = 1; 1255 nthreads = 1;
|
/freebsd-11-stable/sys/mips/rmi/ |
H A D | fmn.c | 87 int nthreads; /* number of threads started */ member in struct:msgring_thread 301 if(nt >= mthd->nthreads) { 352 ++mthd->nthreads; /* Active thread count */ 359 msgrng_setconfig(mthd->running, mthd->nthreads); 368 msgrng_setconfig(mthd->running, mthd->nthreads); 397 mthd->running = mthd->nthreads = 0;
|
/freebsd-11-stable/contrib/jemalloc/include/jemalloc/internal/ |
H A D | ctl.h | 36 unsigned nthreads; member in struct:ctl_arena_stats_s
|
/freebsd-11-stable/lib/libc/tests/resolv/ |
H A D | resolv_test.c | 232 int nthreads = NTHREADS; local 243 nleft = malloc(nthreads * sizeof(int)); 252 for (i = 0; i < nthreads; i++) { 259 for (i = 0; i < nthreads; i++) {
|
/freebsd-11-stable/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_tasking.cpp | 1204 1); // 1 indicates setup the current team regardless of nthreads 2793 kmp_int32 nthreads, victim_tid = -2, use_own_tasks = 1, new_victim = 0, local 2810 nthreads = task_team->tt.tt_nproc; 2812 KMP_DEBUG_ASSERT(nthreads > 1 || task_team->tt.tt_found_proxy_tasks); 2822 if ((task == NULL) && (nthreads > 1)) { // Steal a task 2840 victim_tid = __kmp_get_random(thread) % (nthreads - 1); 2979 if (nthreads == 1) 3022 int nthreads, i, is_init_thread; local 3030 nthreads = task_team->tt.tt_nproc; 3031 KMP_DEBUG_ASSERT(nthreads > 3179 kmp_int32 nthreads, maxthreads; local 3302 int nthreads; local 3804 kmp_int32 nthreads = team->t.t_nproc; local [all...] |
H A D | kmp_runtime.cpp | 1200 // Nested level will be an index in the nested nthreads array 1266 // Thread value exists in the nested nthreads array for the next nested 1315 // Nested level will be an index in the nested nthreads array 1317 // Thread value exists in the nested nthreads array for the next nested 1401 int nthreads; local 1455 // Nested level will be an index in the nested nthreads array 1650 nthreads = 1; 1654 nthreads = 1664 if (nthreads > 1) { 1670 gtid, nthreads)); [all...] |
/freebsd-11-stable/tools/tools/netmap/ |
H A D | pkt-gen.c | 266 int nthreads; member in struct:glob_arg 1301 if (targ->g->nthreads > 1) { 1481 if (targ->g->nthreads > 1) { 1562 uint64_t n = targ->g->npackets / targ->g->nthreads; 1929 if (targ->g->nthreads > 1) { 2488 targs = calloc(g->nthreads, sizeof(*targs)); 2494 for (i = 0; i < g->nthreads; i++) { 2512 if (g->nthreads > 1) { 2553 for (i = 0; i < g->nthreads; i++) { 2588 for (i = 0; i < g->nthreads; [all...] |
/freebsd-11-stable/contrib/jemalloc/src/ |
H A D | stats.c | 259 unsigned nthreads; local 274 CTL_M2_GET("stats.arenas.0.nthreads", i, &nthreads, unsigned); 276 "assigned threads: %u\n", nthreads);
|
H A D | arena.c | 3386 arena_basic_stats_merge_locked(arena_t *arena, unsigned *nthreads, argument 3391 *nthreads += arena_nthreads_get(arena, false); 3400 arena_basic_stats_merge(tsdn_t *tsdn, arena_t *arena, unsigned *nthreads, argument 3406 arena_basic_stats_merge_locked(arena, nthreads, dss, lg_dirty_mult, 3412 arena_stats_merge(tsdn_t *tsdn, arena_t *arena, unsigned *nthreads, argument 3423 arena_basic_stats_merge_locked(arena, nthreads, dss, lg_dirty_mult, 3478 return (atomic_read_u(&arena->nthreads[internal])); 3485 atomic_add_u(&arena->nthreads[internal], 1); 3492 atomic_sub_u(&arena->nthreads[internal], 1); 3520 arena->nthreads[ [all...] |
H A D | ctl.c | 456 {NAME("nthreads"), CTL(stats_arenas_i_nthreads)}, 542 astats->nthreads = 0; 568 arena_stats_merge(tsdn, arena, &cstats->nthreads, &cstats->dss, 581 arena_basic_stats_merge(tsdn, arena, &cstats->nthreads, 592 sstats->nthreads += astats->nthreads; 2128 CTL_RO_GEN(stats_arenas_i_nthreads, ctl_stats.arenas[mib[2]].nthreads, unsigned)
|
/freebsd-11-stable/contrib/gdb/gdb/ |
H A D | gdb_thread_db.h | 238 int nthreads; /* Total number of threads in use. */ member in struct:td_ta_stats
|