Home
last modified time | relevance | path

Searched refs:nb_threads (Results 1 – 25 of 389) sorted by relevance

12345678910>>...16

/dports/astro/siril/siril/src/tests/
H A Dstacking_blocks_test.c66 int nb_threads = 1; in test1() local
87 int nb_threads = 8; in test2() local
108 int nb_threads = 1; in test3() local
130 int nb_threads = 8; in test4() local
151 int nb_threads = 1; in test5() local
172 int nb_threads = 8; in test6() local
193 int nb_threads = 1; in test7() local
215 int nb_threads = 1; in test8() local
236 int nb_threads = 8; in test9() local
258 int nb_threads = 8; in test10() local
[all …]
/dports/emulators/vice/vice-3.5/src/lib/libffmpeg/libavfilter/
H A Dpthread.c46 int nb_threads; member
69 int nb_threads = c->nb_threads; in worker() local
160 if (!nb_threads) { in thread_init_internal()
166 nb_threads = 1; in thread_init_internal()
169 if (nb_threads <= 1) in thread_init_internal()
172 c->nb_threads = nb_threads; in thread_init_internal()
190 c->nb_threads = i; in thread_init_internal()
198 return c->nb_threads; in thread_init_internal()
209 if (graph->nb_threads == 1) { in ff_graph_thread_init()
222 graph->nb_threads = 1; in ff_graph_thread_init()
[all …]
/dports/emulators/libretro-vice/vice-libretro-5725415/vice/src/lib/libffmpeg/libavfilter/
H A Dpthread.c46 int nb_threads; member
69 int nb_threads = c->nb_threads; in worker() local
160 if (!nb_threads) { in thread_init_internal()
166 nb_threads = 1; in thread_init_internal()
169 if (nb_threads <= 1) in thread_init_internal()
172 c->nb_threads = nb_threads; in thread_init_internal()
190 c->nb_threads = i; in thread_init_internal()
198 return c->nb_threads; in thread_init_internal()
209 if (graph->nb_threads == 1) { in ff_graph_thread_init()
222 graph->nb_threads = 1; in ff_graph_thread_init()
[all …]
/dports/textproc/R-cran-vroom/vroom/src/
H A Dparallel.h26 size_t nb_threads,
31 nb_threads = 1;
34 if (nb_threads == 1) {
38 size_t batch_size = nb_elements / nb_threads;
40 size_t batch_remainder = nb_elements % nb_threads;
46 for (size_t i = 0; i < (nb_threads - 1); ++i) {
53 size_t start = (nb_threads - 1) * batch_size;
54 my_threads[nb_threads - 1] = std::async(
59 nb_threads - 1);
62 for (size_t i = 0; i < (nb_threads - 1); ++i) {
[all …]
/dports/multimedia/handbrake/ffmpeg-4.4/libavfilter/
H A Dpthread.c47 static void worker_func(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads) in worker_func() argument
76 static int thread_init_internal(ThreadContext *c, int nb_threads) in thread_init_internal() argument
78 nb_threads = avpriv_slicethread_create(&c->thread, c, worker_func, NULL, nb_threads); in thread_init_internal()
79 if (nb_threads <= 1) in thread_init_internal()
81 return FFMAX(nb_threads, 1); in thread_init_internal()
88 if (graph->nb_threads == 1) { in ff_graph_thread_init()
97 ret = thread_init_internal(graph->internal->thread, graph->nb_threads); in ff_graph_thread_init()
101 graph->nb_threads = 1; in ff_graph_thread_init()
104 graph->nb_threads = ret; in ff_graph_thread_init()
/dports/multimedia/gstreamer1-libav/gst-libav-1.16.2/gst-libs/ext/libav/libavfilter/
H A Dpthread.c47 static void worker_func(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads) in worker_func() argument
76 static int thread_init_internal(ThreadContext *c, int nb_threads) in thread_init_internal() argument
78 nb_threads = avpriv_slicethread_create(&c->thread, c, worker_func, NULL, nb_threads); in thread_init_internal()
79 if (nb_threads <= 1) in thread_init_internal()
81 return FFMAX(nb_threads, 1); in thread_init_internal()
88 if (graph->nb_threads == 1) { in ff_graph_thread_init()
97 ret = thread_init_internal(graph->internal->thread, graph->nb_threads); in ff_graph_thread_init()
101 graph->nb_threads = 1; in ff_graph_thread_init()
104 graph->nb_threads = ret; in ff_graph_thread_init()
/dports/multimedia/ffmpeg/ffmpeg-4.4.1/libavfilter/
H A Dpthread.c47 static void worker_func(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads) in worker_func() argument
76 static int thread_init_internal(ThreadContext *c, int nb_threads) in thread_init_internal() argument
78 nb_threads = avpriv_slicethread_create(&c->thread, c, worker_func, NULL, nb_threads); in thread_init_internal()
79 if (nb_threads <= 1) in thread_init_internal()
81 return FFMAX(nb_threads, 1); in thread_init_internal()
88 if (graph->nb_threads == 1) { in ff_graph_thread_init()
97 ret = thread_init_internal(graph->internal->thread, graph->nb_threads); in ff_graph_thread_init()
101 graph->nb_threads = 1; in ff_graph_thread_init()
104 graph->nb_threads = ret; in ff_graph_thread_init()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/ffmpeg/libavfilter/
H A Dpthread.c47 static void worker_func(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads) in worker_func() argument
76 static int thread_init_internal(ThreadContext *c, int nb_threads) in thread_init_internal() argument
78 nb_threads = avpriv_slicethread_create(&c->thread, c, worker_func, NULL, nb_threads); in thread_init_internal()
79 if (nb_threads <= 1) in thread_init_internal()
81 return FFMAX(nb_threads, 1); in thread_init_internal()
88 if (graph->nb_threads == 1) { in ff_graph_thread_init()
97 ret = thread_init_internal(graph->internal->thread, graph->nb_threads); in ff_graph_thread_init()
101 graph->nb_threads = 1; in ff_graph_thread_init()
104 graph->nb_threads = ret; in ff_graph_thread_init()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/ffmpeg/libavfilter/
H A Dpthread.c47 static void worker_func(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads) in worker_func() argument
76 static int thread_init_internal(ThreadContext *c, int nb_threads) in thread_init_internal() argument
78 nb_threads = avpriv_slicethread_create(&c->thread, c, worker_func, NULL, nb_threads); in thread_init_internal()
79 if (nb_threads <= 1) in thread_init_internal()
81 return FFMAX(nb_threads, 1); in thread_init_internal()
88 if (graph->nb_threads == 1) { in ff_graph_thread_init()
97 ret = thread_init_internal(graph->internal->thread, graph->nb_threads); in ff_graph_thread_init()
101 graph->nb_threads = 1; in ff_graph_thread_init()
104 graph->nb_threads = ret; in ff_graph_thread_init()
/dports/multimedia/handbrake/ffmpeg-4.4/libavutil/
H A Dslicethread.c37 int nb_threads; member
97 int nb_threads) in avpriv_slicethread_create()
102 av_assert0(nb_threads >= 0); in avpriv_slicethread_create()
103 if (!nb_threads) { in avpriv_slicethread_create()
106 nb_threads = nb_cpus + 1; in avpriv_slicethread_create()
108 nb_threads = 1; in avpriv_slicethread_create()
111 nb_workers = nb_threads; in avpriv_slicethread_create()
127 ctx->nb_threads = nb_threads; in avpriv_slicethread_create()
161 return nb_threads; in avpriv_slicethread_create()
208 nb_workers = ctx->nb_threads; in avpriv_slicethread_free()
[all …]
/dports/multimedia/gstreamer1-libav/gst-libav-1.16.2/gst-libs/ext/libav/libavutil/
H A Dslicethread.c37 int nb_threads; member
97 int nb_threads) in avpriv_slicethread_create()
102 av_assert0(nb_threads >= 0); in avpriv_slicethread_create()
103 if (!nb_threads) { in avpriv_slicethread_create()
106 nb_threads = nb_cpus + 1; in avpriv_slicethread_create()
108 nb_threads = 1; in avpriv_slicethread_create()
111 nb_workers = nb_threads; in avpriv_slicethread_create()
127 ctx->nb_threads = nb_threads; in avpriv_slicethread_create()
161 return nb_threads; in avpriv_slicethread_create()
208 nb_workers = ctx->nb_threads; in avpriv_slicethread_free()
[all …]
/dports/www/firefox-esr/firefox-91.8.0/media/ffvpx/libavutil/
H A Dslicethread.c37 int nb_threads; member
97 int nb_threads) in avpriv_slicethread_create()
102 av_assert0(nb_threads >= 0); in avpriv_slicethread_create()
103 if (!nb_threads) { in avpriv_slicethread_create()
106 nb_threads = nb_cpus + 1; in avpriv_slicethread_create()
108 nb_threads = 1; in avpriv_slicethread_create()
111 nb_workers = nb_threads; in avpriv_slicethread_create()
127 ctx->nb_threads = nb_threads; in avpriv_slicethread_create()
161 return nb_threads; in avpriv_slicethread_create()
208 nb_workers = ctx->nb_threads; in avpriv_slicethread_free()
[all …]
/dports/lang/spidermonkey60/firefox-60.9.0/media/ffvpx/libavutil/
H A Dslicethread.c37 int nb_threads; member
97 int nb_threads) in avpriv_slicethread_create()
106 av_assert0(nb_threads >= 0); in avpriv_slicethread_create()
107 if (!nb_threads) { in avpriv_slicethread_create()
110 nb_threads = nb_cpus + 1; in avpriv_slicethread_create()
112 nb_threads = 1; in avpriv_slicethread_create()
115 nb_workers = nb_threads; in avpriv_slicethread_create()
131 ctx->nb_threads = nb_threads; in avpriv_slicethread_create()
165 return nb_threads; in avpriv_slicethread_create()
212 nb_workers = ctx->nb_threads; in avpriv_slicethread_free()
[all …]
/dports/multimedia/ffmpeg/ffmpeg-4.4.1/libavutil/
H A Dslicethread.c37 int nb_threads; member
97 int nb_threads) in avpriv_slicethread_create()
102 av_assert0(nb_threads >= 0); in avpriv_slicethread_create()
103 if (!nb_threads) { in avpriv_slicethread_create()
106 nb_threads = nb_cpus + 1; in avpriv_slicethread_create()
108 nb_threads = 1; in avpriv_slicethread_create()
111 nb_workers = nb_threads; in avpriv_slicethread_create()
127 ctx->nb_threads = nb_threads; in avpriv_slicethread_create()
161 return nb_threads; in avpriv_slicethread_create()
208 nb_workers = ctx->nb_threads; in avpriv_slicethread_free()
[all …]
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/ffmpeg/libavutil/
H A Dslicethread.c37 int nb_threads; member
97 int nb_threads) in avpriv_slicethread_create()
102 av_assert0(nb_threads >= 0); in avpriv_slicethread_create()
103 if (!nb_threads) { in avpriv_slicethread_create()
106 nb_threads = nb_cpus + 1; in avpriv_slicethread_create()
108 nb_threads = 1; in avpriv_slicethread_create()
111 nb_workers = nb_threads; in avpriv_slicethread_create()
127 ctx->nb_threads = nb_threads; in avpriv_slicethread_create()
161 return nb_threads; in avpriv_slicethread_create()
208 nb_workers = ctx->nb_threads; in avpriv_slicethread_free()
[all …]
/dports/www/firefox/firefox-99.0/media/ffvpx/libavutil/
H A Dslicethread.c37 int nb_threads; member
97 int nb_threads) in avpriv_slicethread_create()
102 av_assert0(nb_threads >= 0); in avpriv_slicethread_create()
103 if (!nb_threads) { in avpriv_slicethread_create()
106 nb_threads = nb_cpus + 1; in avpriv_slicethread_create()
108 nb_threads = 1; in avpriv_slicethread_create()
111 nb_workers = nb_threads; in avpriv_slicethread_create()
127 ctx->nb_threads = nb_threads; in avpriv_slicethread_create()
161 return nb_threads; in avpriv_slicethread_create()
208 nb_workers = ctx->nb_threads; in avpriv_slicethread_free()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/ffmpeg/libavutil/
H A Dslicethread.c37 int nb_threads; member
97 int nb_threads) in avpriv_slicethread_create()
102 av_assert0(nb_threads >= 0); in avpriv_slicethread_create()
103 if (!nb_threads) { in avpriv_slicethread_create()
106 nb_threads = nb_cpus + 1; in avpriv_slicethread_create()
108 nb_threads = 1; in avpriv_slicethread_create()
111 nb_workers = nb_threads; in avpriv_slicethread_create()
127 ctx->nb_threads = nb_threads; in avpriv_slicethread_create()
161 return nb_threads; in avpriv_slicethread_create()
208 nb_workers = ctx->nb_threads; in avpriv_slicethread_free()
[all …]
/dports/mail/thunderbird/thunderbird-91.8.0/media/ffvpx/libavutil/
H A Dslicethread.c37 int nb_threads; member
97 int nb_threads) in avpriv_slicethread_create()
102 av_assert0(nb_threads >= 0); in avpriv_slicethread_create()
103 if (!nb_threads) { in avpriv_slicethread_create()
106 nb_threads = nb_cpus + 1; in avpriv_slicethread_create()
108 nb_threads = 1; in avpriv_slicethread_create()
111 nb_workers = nb_threads; in avpriv_slicethread_create()
127 ctx->nb_threads = nb_threads; in avpriv_slicethread_create()
161 return nb_threads; in avpriv_slicethread_create()
208 nb_workers = ctx->nb_threads; in avpriv_slicethread_free()
[all …]
/dports/lang/spidermonkey78/firefox-78.9.0/media/ffvpx/libavutil/
H A Dslicethread.c37 int nb_threads; member
97 int nb_threads) in avpriv_slicethread_create()
102 av_assert0(nb_threads >= 0); in avpriv_slicethread_create()
103 if (!nb_threads) { in avpriv_slicethread_create()
106 nb_threads = nb_cpus + 1; in avpriv_slicethread_create()
108 nb_threads = 1; in avpriv_slicethread_create()
111 nb_workers = nb_threads; in avpriv_slicethread_create()
127 ctx->nb_threads = nb_threads; in avpriv_slicethread_create()
161 return nb_threads; in avpriv_slicethread_create()
208 nb_workers = ctx->nb_threads; in avpriv_slicethread_free()
[all …]
/dports/biology/stringtie/stringtie-2.1.1/SuperReads_RNA/global-1/jellyfish/unit_tests/
H A Dtest_hash_counter.cc27 hash_adder(hash_counter& hash, int nb, int nb_threads, OPERATION op) : in hash_adder() argument
30 check_(nb_threads), in hash_adder()
67 static const int nb_threads = 5; in TEST() local
73 hash_counter hash(init_size, mer_len * 2, 5, nb_threads); in TEST()
78 hash_adder adder(hash, nb, nb_threads, ADD); in TEST()
79 adder.exec_join(nb_threads); in TEST()
84 EXPECT_LT((size_t)(nb_threads * nb), hash.size()); in TEST()
88 hash_counter hash(init_size, mer_len * 2, 0, nb_threads); in TEST()
93 hash_adder adder(hash, nb, nb_threads, SET); in TEST()
94 adder.exec_join(nb_threads); in TEST()
[all …]
H A Dtest_token_ring.cc17 write_number(std::ostream* os, int nb_threads) : in write_number()
18 os_(os), nb_threads_(nb_threads), ring(nb_threads) in write_number()
32 static const int nb_threads = 5; in TEST() local
35 write_number write(&out, nb_threads); in TEST()
36 write.exec_join(nb_threads); in TEST()
39 for(int i = 0; i < nb_threads * 10; ++i) in TEST()
/dports/biology/jellyfish/jellyfish-2.3.0/unit_tests/
H A Dtest_hash_counter.cc27 hash_adder(hash_counter& hash, int nb, int nb_threads, OPERATION op) : in hash_adder() argument
30 check_(nb_threads), in hash_adder()
67 static const int nb_threads = 1; in TEST() local
73 hash_counter hash(init_size, mer_len * 2, 5, nb_threads); in TEST()
78 hash_adder adder(hash, nb, nb_threads, ADD); in TEST()
79 adder.exec_join(nb_threads); in TEST()
84 EXPECT_LT((size_t)(nb_threads * nb), hash.size()); in TEST()
88 hash_counter hash(init_size, mer_len * 2, 0, nb_threads); in TEST()
93 hash_adder adder(hash, nb, nb_threads, SET); in TEST()
94 adder.exec_join(nb_threads); in TEST()
[all …]
H A Dtest_token_ring.cc17 write_number(std::ostream* os, int nb_threads) : in write_number()
18 os_(os), nb_threads_(nb_threads), ring(nb_threads) in write_number()
32 static const int nb_threads = 5; in TEST() local
35 write_number write(&out, nb_threads); in TEST()
36 write.exec_join(nb_threads); in TEST()
39 for(int i = 0; i < nb_threads * 10; ++i) in TEST()
/dports/biology/stringtie/stringtie-2.1.1/SuperReads_RNA/global-1/quorum/src/
H A Dquorum.in24 my $nb_threads;
64 "t|threads=i" => \$nb_threads,
111 if(!defined($nb_threads)) {
113 $nb_threads = `grep -c '^processor' /proc/cpuinfo`;
115 $nb_threads = `sysctl -n hw.cpu`;
117 chomp($nb_threads) if defined($nb_threads);
119 defined($nb_threads) or
155 run($CDB, "-s", $jf_size, "-m", $klen, "-t", $nb_threads,
160 my @ec_cmd = ($EC, "-t", $nb_threads);
/dports/net/openmpi3/openmpi-3.1.6/ompi/mca/topo/treematch/treematch/
H A Dtm_thread_pool.c49 int nb_threads = get_nb_threads(); in bind_myself_to_core() local
54 my_core = id*(nb_cores/nb_threads); in bind_myself_to_core()
181 int nb_threads; in create_threads() local
208 printf("nb_threads = %d\n",nb_threads); in create_threads()
212 pool -> nb_threads = nb_threads; in create_threads()
221 for (i=0;i<nb_threads;i++){ in create_threads()
252 for (id=0;id<pool->nb_threads;id++){ in terminate_thread_pool()
257 for (id=0;id<pool->nb_threads;id++){ in terminate_thread_pool()
283 return pool -> nb_threads; in get_nb_threads()
346 int nb_threads = get_nb_threads(); in test_main() local
[all …]

12345678910>>...16