Home
last modified time | relevance | path

Searched refs:n_threads (Results 1 – 18 of 18) sorted by relevance

/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/tsan/benchmarks/
H A Dvts_many_threads_bench.cc45 int n_threads, n_iterations; variable
62 int offset = idx * kNumMutexes / n_threads; in Thread()
74 n_threads = 2; in main()
78 n_threads = atoi(argv[1]); in main()
79 assert(n_threads > 0 && n_threads <= 32); in main()
88 __FILE__, n_threads, n_garbage_threads, n_iterations); in main()
90 pthread_barrier_init(&all_threads_ready, NULL, n_garbage_threads + n_threads + 1); in main()
91 pthread_barrier_init(&main_threads_ready, NULL, n_threads + 1); in main()
93 pthread_t *t = new pthread_t[n_threads]; in main()
100 for (int i = 0; i < n_threads; i++) { in main()
[all …]
H A Dmini_bench_local.cc27 int n_threads = 0; in main() local
29 n_threads = 4; in main()
32 n_threads = atoi(argv[1]); in main()
33 assert(n_threads > 0 && n_threads <= 32); in main()
37 __FILE__, n_threads, len, kNumIter); in main()
38 a = new int[n_threads * len]; in main()
39 pthread_t *t = new pthread_t[n_threads]; in main()
40 for (int i = 0; i < n_threads; i++) { in main()
43 for (int i = 0; i < n_threads; i++) { in main()
H A Dmini_bench_shared.cc27 int n_threads = 0; in main() local
29 n_threads = 4; in main()
32 n_threads = atoi(argv[1]); in main()
33 assert(n_threads > 0 && n_threads <= 32); in main()
37 __FILE__, n_threads, len, kNumIter); in main()
41 pthread_t *t = new pthread_t[n_threads]; in main()
42 for (int i = 0; i < n_threads; i++) { in main()
45 for (int i = 0; i < n_threads; i++) { in main()
H A Dstart_many_threads.cc25 int n_threads; in main() local
27 n_threads = 100; in main()
29 n_threads = atoi(argv[1]); in main()
34 printf("%s: n_threads=%d\n", __FILE__, n_threads); in main()
36 pthread_barrier_init(&all_threads_ready, NULL, n_threads + 1); in main()
38 pthread_t *t = new pthread_t[n_threads]; in main()
39 for (int i = 0; i < n_threads; i++) { in main()
45 for (int i = 0; i < n_threads; i++) { in main()
/netbsd-src/external/bsd/libevent/dist/
H A Devent_iocp.c107 h = CreateIoCompletionPort((HANDLE)fd, port->port, key, port->n_threads); in event_iocp_port_associate_()
190 port->n_threads = n_cpus * 2; in event_iocp_port_launch_()
191 port->threads = mm_calloc(port->n_threads, sizeof(HANDLE)); in event_iocp_port_launch_()
205 for (i=0; i<port->n_threads; ++i) { in event_iocp_port_launch_()
241 for (i=0; i<port->n_threads; ++i) { in event_iocp_notify_all()
H A Diocp-internal.h82 short n_threads; member
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/asan/tests/
H A Dasan_noinst_test.cc180 const int n_threads = 3000; in TEST() local
182 for (int i = 0; i < n_threads; i++) { in TEST()
/netbsd-src/external/apache2/llvm/dist/libcxx/utils/google-benchmark/src/
H A Dbenchmark.cc125 int n_threads, internal::ThreadTimer* timer, in State() argument
137 threads(n_threads), in State()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dtree-parloops.c2737 tree new_data, unsigned n_threads, location_t loc, in create_parallel_loop() argument
2770 gcc_checking_assert (n_threads != 0); in create_parallel_loop()
2773 = build_int_cst (integer_type_node, n_threads); in create_parallel_loop()
2972 unsigned n_threads, class tree_niter_desc *niter, in gen_parallel_loop() argument
3060 gcc_checking_assert (n_threads != 0); in gen_parallel_loop()
3063 nit, build_int_cst (type, m_p_thread * n_threads - 1)); in gen_parallel_loop()
3134 n_threads = 1; in gen_parallel_loop()
3179 n_threads, loc, oacc_kernels_p); in gen_parallel_loop()
3991 unsigned n_threads; in parallelize_loops() local
4015 n_threads = 0; in parallelize_loops()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dtree-parloops.cc2737 tree new_data, unsigned n_threads, location_t loc, in create_parallel_loop() argument
2770 gcc_checking_assert (n_threads != 0); in create_parallel_loop()
2773 = build_int_cst (integer_type_node, n_threads); in create_parallel_loop()
2972 unsigned n_threads, class tree_niter_desc *niter, in gen_parallel_loop() argument
3060 gcc_checking_assert (n_threads != 0); in gen_parallel_loop()
3063 nit, build_int_cst (type, m_p_thread * n_threads - 1)); in gen_parallel_loop()
3134 n_threads = 1; in gen_parallel_loop()
3179 n_threads, loc, oacc_kernels_p); in gen_parallel_loop()
3994 unsigned n_threads; in parallelize_loops() local
4017 n_threads = 0; in parallelize_loops()
[all …]
H A DChangeLog-201631477 (parallelize_loops): In OpenACC kernels mode, set n_threads to
/netbsd-src/external/apache2/llvm/dist/llvm/utils/benchmark/src/
H A Dbenchmark.cc294 int n_threads, internal::ThreadTimer* timer, in State() argument
308 threads(n_threads), in State()
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/tsan/
H A Dtsan_rtl.cc138 uptr n_threads; in MemoryProfiler() local
140 ctx->thread_registry->GetNumberOfThreads(&n_threads, &n_running_threads); in MemoryProfiler()
142 WriteMemoryProfile(buf.data(), buf.size(), n_threads, n_running_threads); in MemoryProfiler()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/
H A Dtsan_rtl.cc140 uptr n_threads; in MemoryProfiler() local
142 ctx->thread_registry->GetNumberOfThreads(&n_threads, &n_running_threads); in MemoryProfiler()
144 WriteMemoryProfile(buf.data(), buf.size(), n_threads, n_running_threads); in MemoryProfiler()
/netbsd-src/external/bsd/libevent/dist/test/
H A Dregress_dns.c2270 int n_threads = sysconf(_SC_NPROCESSORS_ONLN) + 1; in getaddrinfo_race_gotresolve_test() local
2272 int n_threads = 17; in getaddrinfo_race_gotresolve_test() local
2279 thread = calloc(n_threads, sizeof(*thread)); in getaddrinfo_race_gotresolve_test()
2312 for (i = 1; i < n_threads; i++) { in getaddrinfo_race_gotresolve_test()
/netbsd-src/external/apache2/llvm/dist/llvm/utils/benchmark/include/benchmark/
H A Dbenchmark.h634 int n_threads, internal::ThreadTimer* timer,
/netbsd-src/external/apache2/llvm/dist/libcxx/utils/google-benchmark/include/benchmark/
H A Dbenchmark.h671 int n_threads, internal::ThreadTimer* timer,
/netbsd-src/external/gpl3/binutils/dist/
H A DChangeLog.git9695 if (n_threads < 0)
9699 n_threads=5 to 8. Therefore, clamp the default value to 8 to avoid an
9702 n_threads = std::clamp (hardware_threads, hardware_threads, throttle);