Home
last modified time | relevance | path

Searched refs:num_threads (Results 1 – 25 of 68) sorted by relevance

123

/freebsd-12.1/contrib/gcclibs/libgomp/
H A Dsections.c104 unsigned num_threads, unsigned count) in GOMP_parallel_sections_start() argument
108 num_threads = gomp_resolve_num_threads (num_threads); in GOMP_parallel_sections_start()
109 if (gomp_dyn_var && num_threads > count) in GOMP_parallel_sections_start()
110 num_threads = count; in GOMP_parallel_sections_start()
112 ws = gomp_new_work_share (false, num_threads); in GOMP_parallel_sections_start()
114 gomp_team_start (fn, data, num_threads, ws); in GOMP_parallel_sections_start()
H A Dloop.c374 unsigned num_threads, long start, long end, in gomp_parallel_loop_start() argument
380 num_threads = gomp_resolve_num_threads (num_threads); in gomp_parallel_loop_start()
381 ws = gomp_new_work_share (false, num_threads); in gomp_parallel_loop_start()
383 gomp_team_start (fn, data, num_threads, ws); in gomp_parallel_loop_start()
388 unsigned num_threads, long start, long end, in GOMP_parallel_loop_static_start() argument
391 gomp_parallel_loop_start (fn, data, num_threads, start, end, incr, in GOMP_parallel_loop_static_start()
397 unsigned num_threads, long start, long end, in GOMP_parallel_loop_dynamic_start() argument
400 gomp_parallel_loop_start (fn, data, num_threads, start, end, incr, in GOMP_parallel_loop_dynamic_start()
406 unsigned num_threads, long start, long end, in GOMP_parallel_loop_guided_start() argument
409 gomp_parallel_loop_start (fn, data, num_threads, start, end, incr, in GOMP_parallel_loop_guided_start()
[all …]
H A Dparallel.c68 GOMP_parallel_start (void (*fn) (void *), void *data, unsigned num_threads) in GOMP_parallel_start() argument
70 num_threads = gomp_resolve_num_threads (num_threads); in GOMP_parallel_start()
71 gomp_team_start (fn, data, num_threads, NULL); in GOMP_parallel_start()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/Process/Darwin/
H A DNativeThreadListDarwin.cpp189 const size_t num_threads = m_threads.size();
190 for (size_t idx = 0; idx < num_threads; ++idx)
423 const size_t num_threads = m_threads.size();
498 const size_t num_threads = m_threads.size(); in ProcessWillResume()
499 for (uint32_t idx = 0; idx < num_threads; ++idx) in ProcessWillResume()
579 const size_t num_threads = m_threads.size();
580 for (uint32_t idx = 0; idx < num_threads; ++idx)
592 const size_t num_threads = m_threads.size();
683 const size_t num_threads = m_threads.size();
686 if (num_threads)
[all …]
/freebsd-12.1/contrib/llvm/tools/lldb/source/Target/
H A DThreadList.cpp109 const uint32_t num_threads = m_threads.size(); in FindThreadByID() local
110 for (idx = 0; idx < num_threads; ++idx) { in FindThreadByID()
127 const uint32_t num_threads = m_threads.size(); in FindThreadByProtocolID() local
128 for (idx = 0; idx < num_threads; ++idx) { in FindThreadByProtocolID()
145 const uint32_t num_threads = m_threads.size(); in RemoveThreadByID() local
146 for (idx = 0; idx < num_threads; ++idx) { in RemoveThreadByID()
165 const uint32_t num_threads = m_threads.size(); in RemoveThreadByProtocolID() local
166 for (idx = 0; idx < num_threads; ++idx) { in RemoveThreadByProtocolID()
183 for (idx = 0; idx < num_threads; ++idx) { in GetThreadSPForThreadPtr()
197 const uint32_t num_threads = m_threads.size(); in GetBackingThread() local
[all …]
/freebsd-12.1/contrib/openmp/runtime/src/
H A Dkmp_gsupport.cpp437 if (__kmpc_ok_to_fork(&loc) && (num_threads != 1)) { in KMP_EXPAND_NAME()
438 if (num_threads != 0) { in KMP_EXPAND_NAME()
439 __kmp_push_num_threads(&loc, gtid, num_threads); in KMP_EXPAND_NAME()
1317 if (__kmpc_ok_to_fork(&loc) && (num_threads != 1)) { in KMP_EXPAND_NAME()
1318 if (num_threads != 0) { in KMP_EXPAND_NAME()
1319 __kmp_push_num_threads(&loc, gtid, num_threads); in KMP_EXPAND_NAME()
1390 if (__kmpc_ok_to_fork(&loc) && (num_threads != 1)) { in KMP_EXPAND_NAME()
1391 if (num_threads != 0) { in KMP_EXPAND_NAME()
1392 __kmp_push_num_threads(&loc, gtid, num_threads); in KMP_EXPAND_NAME()
1437 if (__kmpc_ok_to_fork(&loc) && (num_threads != 1)) { in KMP_EXPAND_NAME()
[all …]
H A Dkmp_debugger.cpp272 int num_threads = 0; in __kmp_omp_num_threads() local
283 num_threads = items[i].num_threads; in __kmp_omp_num_threads()
289 return num_threads; in __kmp_omp_num_threads()
H A Dkmp_barrier.cpp472 kmp_uint32 num_threads = this_thr->th.th_team_nproc; in __kmp_hyper_barrier_gather() local
494 for (level = 0, offset = 1; offset < num_threads; in __kmp_hyper_barrier_gather()
523 child < branch_factor && child_tid < num_threads; in __kmp_hyper_barrier_gather()
530 if (child + 1 < branch_factor && next_child_tid < num_threads) in __kmp_hyper_barrier_gather()
590 kmp_uint32 num_threads; in __kmp_hyper_barrier_release() local
652 num_threads = this_thr->th.th_team_nproc; in __kmp_hyper_barrier_release()
667 for (level = 0, offset = 1; offset < num_threads; in __kmp_hyper_barrier_release()
674 child = num_threads >> ((level == 0) ? level : level - 1); in __kmp_hyper_barrier_release()
685 child < branch_factor && child_tid < num_threads; in __kmp_hyper_barrier_release()
689 if (child_tid >= num_threads) in __kmp_hyper_barrier_release()
[all …]
/freebsd-12.1/sys/nfs/
H A Dnfs_fha.c196 e->num_threads = 0; in fha_hash_entry_new()
211 KASSERT(e->num_threads == 0, in fha_hash_entry_destroy()
212 ("%d threads on destroyed fhe %p", e->num_threads, e)); in fha_hash_entry_destroy()
253 fhe->num_threads++; in fha_hash_entry_add_thread()
264 fhe->num_threads--; in fha_hash_entry_remove_thread()
353 (fhe->num_threads < softc->ctls.max_nfsds_per_fh)) { in fha_hash_entry_choose_thread()
505 sbuf_printf(&sb, " num_threads: %d\n", fhe->num_threads); in fhe_stats_sysctl()
H A Dnfs_fha.h72 u_int8_t num_threads; member
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Basic/
H A DOpenMPKinds.def242 OPENMP_CLAUSE(num_threads, OMPNumThreadsClause)
296 OPENMP_PARALLEL_CLAUSE(num_threads)
397 OPENMP_PARALLEL_FOR_CLAUSE(num_threads)
413 OPENMP_PARALLEL_FOR_SIMD_CLAUSE(num_threads)
432 OPENMP_PARALLEL_SECTIONS_CLAUSE(num_threads)
515 OPENMP_TARGET_PARALLEL_CLAUSE(num_threads)
532 OPENMP_TARGET_PARALLEL_FOR_CLAUSE(num_threads)
636 OPENMP_DISTRIBUTE_PARALLEL_FOR_CLAUSE(num_threads)
651 OPENMP_DISTRIBUTE_PARALLEL_FOR_SIMD_CLAUSE(num_threads)
686 OPENMP_TARGET_PARALLEL_FOR_SIMD_CLAUSE(num_threads)
[all …]
/freebsd-12.1/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_stoptheworld_mac.cc59 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()
/freebsd-12.1/sbin/nvmecontrol/
H A Dperftest.c118 for (i = 0; i < io_test->num_threads; i++) in print_perftest()
125 io_test->num_threads, io_test->size, in print_perftest()
130 for (i = 0; i < io_test->num_threads; i++) in print_perftest()
/freebsd-12.1/sys/cam/ctl/
H A DREADME.ctl.txt122 num_threads=14
126 num_threads=14
130 num_threads=14
134 num_threads=14
138 num_threads=14
142 num_threads=14
146 num_threads=14
150 num_threads=14
154 num_threads=14
158 num_threads=14
[all …]
/freebsd-12.1/sys/tests/framework/
H A Dkern_testfrwk.c189 if (kt.num_threads <= 0) { in kerntest_execute()
218 if (kfrwk.kfrwk_waiting < kt.num_threads) { in kerntest_execute()
223 kt.tot_threads_running = kt.num_threads; in kerntest_execute()
/freebsd-12.1/sys/tests/
H A Dkern_testfrwk.h35 int num_threads; /* Fill in how many threads you want */ member
/freebsd-12.1/contrib/unbound/cachedb/
H A Dredis.c101 moddata->numctxs = env->cfg->num_threads; in redis_init()
102 moddata->ctxs = calloc(env->cfg->num_threads, sizeof(redisContext*)); in redis_init()
/freebsd-12.1/contrib/jemalloc/include/jemalloc/internal/
H A Dbackground_thread_structs.h47 size_t num_threads; member
/freebsd-12.1/contrib/unbound/daemon/
H A Ddaemon.c313 if(daemon->cfg->so_reuseport && daemon->cfg->num_threads > 0) in daemon_open_shared_ports()
324 daemon->num_ports = (size_t)daemon->cfg->num_threads; in daemon_open_shared_ports()
441 daemon->num = (daemon->cfg->num_threads?daemon->cfg->num_threads:1); in daemon_create_workers()
/freebsd-12.1/sys/dev/nvme/
H A Dnvme_test.c259 io_test_internal->td_active = io_test->num_threads; in nvme_ns_test()
271 for (i = 0; i < io_test->num_threads; i++) in nvme_ns_test()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/OperatingSystem/Python/
H A DOperatingSystemPython.cpp197 const uint32_t num_threads = threads_list->GetSize(); in UpdateThreadList() local
198 for (uint32_t i = 0; i < num_threads; ++i) { in UpdateThreadList()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Commands/
H A DCommandObjectThread.cpp583 const uint32_t num_threads = process->GetThreadList().GetSize(); in DoExecute() local
609 step_thread_idx, num_threads); in DoExecute()
870 const uint32_t num_threads = process->GetThreadList().GetSize(); in DoExecute() local
903 for (uint32_t idx = 0; idx < num_threads; ++idx) { in DoExecute()
931 const uint32_t num_threads = process->GetThreadList().GetSize(); in DoExecute() local
939 for (uint32_t idx = 0; idx < num_threads; ++idx) { in DoExecute()
1174 const uint32_t num_threads = process->GetThreadList().GetSize(); in DoExecute() local
1177 m_options.m_thread_idx, num_threads); in DoExecute()
/freebsd-12.1/contrib/libarchive/libarchive/
H A Darchive_blake2sp_ref.c153 #pragma omp parallel shared(S), num_threads(PARALLELISM_DEGREE) in blake2sp_update()
250 #pragma omp parallel shared(S,hash), num_threads(PARALLELISM_DEGREE) in blake2sp()
/freebsd-12.1/contrib/llvm/tools/lldb/source/API/
H A DSBQueue.cpp117 const uint32_t num_threads = thread_list.size(); in FetchThreads() local
118 for (uint32_t idx = 0; idx < num_threads; ++idx) { in FetchThreads()
/freebsd-12.1/contrib/gdb/gdb/
H A Dgnu-nat.c990 mach_msg_type_number_t num_threads, i; in inf_validate_procs() local
1001 error_t err = task_threads (task->port, &threads, &num_threads); in inf_validate_procs()
1013 num_threads = 0; in inf_validate_procs()
1021 struct proc *matched[num_threads + 1]; in inf_validate_procs()
1033 for (i = search_start, left = num_threads; left; i++, left--) in inf_validate_procs()
1035 if (i >= num_threads) in inf_validate_procs()
1036 i -= num_threads; /* I wrapped around. */ in inf_validate_procs()
1057 for (i = 0; i < num_threads; i++) in inf_validate_procs()
1074 (vm_address_t) threads, (num_threads * sizeof (thread_t))); in inf_validate_procs()

123