/netbsd-src/external/gpl3/gcc/dist/libgomp/ |
H A D | parallel.c | 43 unsigned threads_requested, max_num_threads, num_threads; in gomp_resolve_num_threads() local 97 num_threads = max_num_threads; in gomp_resolve_num_threads() 98 if (num_threads > icv->thread_limit_var) in gomp_resolve_num_threads() 99 num_threads = icv->thread_limit_var; in gomp_resolve_num_threads() 101 pool->threads_busy = num_threads; in gomp_resolve_num_threads() 102 return num_threads; in gomp_resolve_num_threads() 109 num_threads = max_num_threads; in gomp_resolve_num_threads() 110 if (icv->thread_limit_var - busy + 1 < num_threads) in gomp_resolve_num_threads() 111 num_threads = icv->thread_limit_var - busy + 1; in gomp_resolve_num_threads() 114 busy, busy + num_threads - 1) in gomp_resolve_num_threads() [all …]
|
H A D | sections.c | 216 unsigned num_threads, unsigned count) in GOMP_parallel_sections_start() argument 220 num_threads = gomp_resolve_num_threads (num_threads, count); in GOMP_parallel_sections_start() 221 team = gomp_new_team (num_threads); in GOMP_parallel_sections_start() 223 gomp_team_start (fn, data, num_threads, 0, team, NULL); in GOMP_parallel_sections_start() 230 unsigned num_threads, unsigned count, unsigned flags) in ialias_redirect() 234 num_threads = gomp_resolve_num_threads (num_threads, count); in ialias_redirect() 235 team = gomp_new_team (num_threads); in ialias_redirect() 237 gomp_team_start (fn, data, num_threads, flags, team, NULL); in ialias_redirect()
|
H A D | loop.c | 791 unsigned num_threads, long start, long end, in gomp_parallel_loop_start() argument 797 num_threads = gomp_resolve_num_threads (num_threads, 0); in gomp_parallel_loop_start() 798 team = gomp_new_team (num_threads); in gomp_parallel_loop_start() 800 gomp_team_start (fn, data, num_threads, flags, team, NULL); in gomp_parallel_loop_start() 805 unsigned num_threads, long start, long end, in GOMP_parallel_loop_static_start() argument 808 gomp_parallel_loop_start (fn, data, num_threads, start, end, incr, in GOMP_parallel_loop_static_start() 814 unsigned num_threads, long start, long end, in GOMP_parallel_loop_dynamic_start() argument 817 gomp_parallel_loop_start (fn, data, num_threads, start, end, incr, in GOMP_parallel_loop_dynamic_start() 823 unsigned num_threads, long start, long end, in GOMP_parallel_loop_guided_start() argument 826 gomp_parallel_loop_start (fn, data, num_threads, start, end, incr, in GOMP_parallel_loop_guided_start() [all …]
|
/netbsd-src/external/gpl3/gcc.old/dist/libgomp/ |
H A D | parallel.c | 43 unsigned threads_requested, max_num_threads, num_threads; in gomp_resolve_num_threads() local 90 num_threads = max_num_threads; in gomp_resolve_num_threads() 91 if (num_threads > icv->thread_limit_var) in gomp_resolve_num_threads() 92 num_threads = icv->thread_limit_var; in gomp_resolve_num_threads() 94 pool->threads_busy = num_threads; in gomp_resolve_num_threads() 95 return num_threads; in gomp_resolve_num_threads() 102 num_threads = max_num_threads; in gomp_resolve_num_threads() 103 if (icv->thread_limit_var - busy + 1 < num_threads) in gomp_resolve_num_threads() 104 num_threads = icv->thread_limit_var - busy + 1; in gomp_resolve_num_threads() 107 busy, busy + num_threads - 1) in gomp_resolve_num_threads() [all …]
|
H A D | sections.c | 213 unsigned num_threads, unsigned count) in GOMP_parallel_sections_start() argument 217 num_threads = gomp_resolve_num_threads (num_threads, count); in GOMP_parallel_sections_start() 218 team = gomp_new_team (num_threads); in GOMP_parallel_sections_start() 220 gomp_team_start (fn, data, num_threads, 0, team, NULL); in GOMP_parallel_sections_start() 227 unsigned num_threads, unsigned count, unsigned flags) in ialias_redirect() 231 num_threads = gomp_resolve_num_threads (num_threads, count); in ialias_redirect() 232 team = gomp_new_team (num_threads); in ialias_redirect() 234 gomp_team_start (fn, data, num_threads, flags, team, NULL); in ialias_redirect()
|
H A D | loop.c | 788 unsigned num_threads, long start, long end, in gomp_parallel_loop_start() argument 794 num_threads = gomp_resolve_num_threads (num_threads, 0); in gomp_parallel_loop_start() 795 team = gomp_new_team (num_threads); in gomp_parallel_loop_start() 797 gomp_team_start (fn, data, num_threads, flags, team, NULL); in gomp_parallel_loop_start() 802 unsigned num_threads, long start, long end, in GOMP_parallel_loop_static_start() argument 805 gomp_parallel_loop_start (fn, data, num_threads, start, end, incr, in GOMP_parallel_loop_static_start() 811 unsigned num_threads, long start, long end, in GOMP_parallel_loop_dynamic_start() argument 814 gomp_parallel_loop_start (fn, data, num_threads, start, end, incr, in GOMP_parallel_loop_dynamic_start() 820 unsigned num_threads, long start, long end, in GOMP_parallel_loop_guided_start() argument 823 gomp_parallel_loop_start (fn, data, num_threads, start, end, incr, in GOMP_parallel_loop_guided_start() [all …]
|
/netbsd-src/sbin/nvmectl/ |
H A D | perftest.c | 62 for (i = 0; i < io_test->num_threads; i++) in print_perftest() 69 io_test->num_threads, io_test->size, in print_perftest() 74 for (i = 0; i < io_test->num_threads; i++) in print_perftest() 118 io_test.num_threads = strtoul(optarg, &p, 0); in perftest() 124 } else if (io_test.num_threads == 0 || in perftest() 125 io_test.num_threads > 128) { in perftest()
|
/netbsd-src/external/apache2/llvm/dist/llvm/utils/benchmark/src/ |
H A D | counter.cc | 20 double Finish(Counter const& c, double cpu_time, double num_threads) { in Finish() argument 26 v /= num_threads; in Finish() 31 void Finish(UserCounters *l, double cpu_time, double num_threads) { in Finish() argument 33 c.second.value = Finish(c.second, cpu_time, num_threads); in Finish()
|
H A D | thread_manager.h | 14 ThreadManager(int num_threads) in ThreadManager() argument 15 : alive_threads_(num_threads), start_stop_barrier_(num_threads) {} in ThreadManager()
|
H A D | mutex.h | 101 Barrier(int num_threads) : running_threads_(num_threads) {} in Barrier() argument
|
H A D | counter.h | 21 void Finish(UserCounters *l, double time, double num_threads);
|
/netbsd-src/external/apache2/llvm/dist/libcxx/utils/google-benchmark/src/ |
H A D | counter.cc | 21 double num_threads) { in Finish() argument 27 v /= num_threads; in Finish() 38 void Finish(UserCounters* l, int64_t iterations, double cpu_time, double num_threads) { in Finish() argument 40 c.second.value = Finish(c.second, iterations, cpu_time, num_threads); in Finish()
|
H A D | thread_manager.h | 14 ThreadManager(int num_threads) in ThreadManager() argument 15 : alive_threads_(num_threads), start_stop_barrier_(num_threads) {} in ThreadManager()
|
H A D | mutex.h | 101 Barrier(int num_threads) : running_threads_(num_threads) {} in Barrier() argument
|
H A D | counter.h | 21 void Finish(UserCounters* l, int64_t iterations, double time, double num_threads);
|
/netbsd-src/external/mit/libuv/dist/test/ |
H A D | benchmark-thread.c | 30 static volatile int num_threads; variable 35 num_threads++; in thread_entry() 58 ASSERT(num_threads == NUM_THREADS); in BENCHMARK_IMPL()
|
/netbsd-src/sys/fs/nfs/common/ |
H A D | nfs_fha.c | 202 e->num_threads = 0; in fha_hash_entry_new() 217 KASSERT(e->num_threads == 0, in fha_hash_entry_destroy() 218 ("%d threads on destroyed fhe %p", e->num_threads, e)); in fha_hash_entry_destroy() 261 fhe->num_threads++; in fha_hash_entry_add_thread() 272 fhe->num_threads--; in fha_hash_entry_remove_thread() 358 (fhe->num_threads < softc->ctls.max_nfsds_per_fh)) { in fha_hash_entry_choose_thread() 514 sbuf_printf(&sb, " num_threads: %d\n", fhe->num_threads); in fhe_stats_sysctl()
|
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/ |
H A D | sanitizer_stoptheworld_mac.cc | 57 mach_msg_type_number_t num_threads; in RunThread() local 58 kern_return_t err = task_threads(mach_task_self(), &threads, &num_threads); in RunThread() 65 for (unsigned int i = 0; i < num_threads; ++i) { in RunThread()
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
H A D | sanitizer_stoptheworld_mac.cc | 59 mach_msg_type_number_t num_threads; in RunThread() local 60 kern_return_t err = task_threads(mach_task_self(), &threads, &num_threads); in RunThread() 67 for (unsigned int i = 0; i < num_threads; ++i) { in RunThread()
|
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/ |
H A D | sanitizer_stoptheworld_mac.cpp | 58 mach_msg_type_number_t num_threads; in RunThread() local 59 kern_return_t err = task_threads(mach_task_self(), &threads, &num_threads); in RunThread() 66 for (unsigned int i = 0; i < num_threads; ++i) { in RunThread()
|
/netbsd-src/external/bsd/unbound/dist/daemon/ |
H A D | daemon.c | 367 if(daemon->cfg->so_reuseport && daemon->cfg->num_threads > 0) in daemon_open_shared_ports() 380 daemon->num_ports = (size_t)daemon->cfg->num_threads; in daemon_open_shared_ports() 537 daemon->num = (daemon->cfg->num_threads?daemon->cfg->num_threads:1); in daemon_create_workers() 952 int new_num = cfg->num_threads?cfg->num_threads:1; in daemon_apply_cfg()
|
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/parallel/ |
H A D | find.h | 115 # pragma omp parallel num_threads(__num_threads) in __find_template() 222 # pragma omp parallel shared(__result) num_threads(__num_threads) in __find_template() 346 # pragma omp parallel shared(__result) num_threads(__num_threads) in __find_template()
|
/netbsd-src/crypto/external/cpl/trousers/dist/src/tcsd/ |
H A D | tcsd_threads.c | 73 tm->max_threads = tcsd_options.num_threads; in tcsd_threads_init() 76 tm->thread_data = calloc(tcsd_options.num_threads, sizeof(struct tcsd_thread_data)); in tcsd_threads_init() 79 tcsd_options.num_threads * sizeof(struct tcsd_thread_data)); in tcsd_threads_init()
|
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/parallel/ |
H A D | find.h | 115 # pragma omp parallel num_threads(__num_threads) in __find_template() 222 # pragma omp parallel shared(__result) num_threads(__num_threads) in __find_template() 346 # pragma omp parallel shared(__result) num_threads(__num_threads) in __find_template()
|
/netbsd-src/crypto/external/cpl/trousers/etc/ |
H A D | tcsd.conf | 2 num_threads = 10
|