Home
last modified time | relevance | path

Searched refs:nthreads (Results 1 – 25 of 37) sorted by relevance

12

/openbsd/gnu/gcc/libgomp/
H A Dteam.c152 team->nthreads = nthreads; in new_team()
190 team = new_team (nthreads, work_share); in gomp_team_start()
203 if (nthreads == 1) in gomp_team_start()
217 if (nthreads <= old_threads_used) in gomp_team_start()
218 n = nthreads; in gomp_team_start()
236 gomp_threads_used = nthreads; in gomp_team_start()
252 if (i == nthreads) in gomp_team_start()
258 if (nthreads >= gomp_threads_size) in gomp_team_start()
260 gomp_threads_size = nthreads + 1; in gomp_team_start()
269 * (nthreads-i)); in gomp_team_start()
[all …]
H A Dordered.c46 if (team == NULL || team->nthreads == 1) in gomp_ordered_first()
50 if (index >= team->nthreads) in gomp_ordered_first()
51 index -= team->nthreads; in gomp_ordered_first()
77 if (team == NULL || team->nthreads == 1) in gomp_ordered_last()
87 if (next == team->nthreads) in gomp_ordered_last()
112 if (team == NULL || team->nthreads == 1) in gomp_ordered_next()
133 if (index >= team->nthreads) in gomp_ordered_next()
134 index -= team->nthreads; in gomp_ordered_next()
139 if (index == team->nthreads) in gomp_ordered_next()
157 if (team == NULL || team->nthreads == 1) in gomp_ordered_static_init()
[all …]
H A Diter.c46 unsigned long nthreads = team ? team->nthreads : 1; in gomp_iter_static_next() local
52 if (nthreads == 1) in gomp_iter_static_next()
79 q = n / nthreads; in gomp_iter_static_next()
80 q += (q * nthreads != n); in gomp_iter_static_next()
117 s0 = (thr->ts.static_trip * nthreads + i) * c; in gomp_iter_static_next()
238 unsigned long nthreads = team ? team->nthreads : 1; in gomp_iter_guided_next_locked() local
246 q = (n + nthreads - 1) / nthreads; in gomp_iter_guided_next_locked()
272 unsigned long nthreads = team ? team->nthreads : 1; in gomp_iter_guided_next() local
290 q = (n + nthreads - 1) / nthreads; in gomp_iter_guided_next()
H A Dwork.c39 gomp_new_work_share (bool ordered, unsigned nthreads) in gomp_new_work_share() argument
46 size += nthreads * sizeof (ws->ordered_team_ids[0]); in gomp_new_work_share()
130 ws = gomp_new_work_share (ordered, team->nthreads); in gomp_work_share_start()
208 if (completed == team->nthreads) in gomp_work_share_end_nowait()
H A Dparallel.c87 return team ? team->nthreads : 1; in omp_get_num_threads()
115 if (team->nthreads > 1) in omp_in_parallel()
/openbsd/gnu/gcc/libgomp/testsuite/libgomp.fortran/
H A Dreduction6.f905 integer nthreads variable
7 nthreads = -1
8 call foo (a (2:4, 3:5), nthreads)
9 if (nthreads .eq. 3) then
14 subroutine foo (b, nthreads) argument
17 integer :: err, nthreads local
26 nthreads = omp_get_num_threads ()
/openbsd/regress/lib/libc/asr/bin/
H A Dthreads.c35 int nthreads; variable
93 nthreads = 1; in main()
106 nthreads = atoi(optarg); in main()
107 if (nthreads > MAX_THREADS) in main()
108 nthreads = MAX_THREADS; in main()
122 printf("%i %i %i\n", LOOP, nthreads, loop); in main()
124 for (i = 0; i < nthreads; i++) { in main()
130 for (i = 0; i < nthreads; i++) in main()
133 if (nthreads == 0) in main()
/openbsd/gnu/gcc/libgomp/testsuite/libgomp.c++/
H A Dctor-1.C41 static int nthreads; variable
49 nthreads = omp_get_num_threads (); in foo()
60 assert (B::xcount == nthreads); in main()
61 assert (B::icount == nthreads+1); in main()
62 assert (B::dcount == nthreads+1); in main()
H A Dctor-7.C43 static int nthreads; variable
51 nthreads = omp_get_num_threads (); in foo()
62 assert (B::xcount == nthreads); in main()
63 assert (B::icount == (nthreads+1)*N); in main()
64 assert (B::dcount == (nthreads+1)*N); in main()
H A Dctor-2.C51 static int nthreads; variable
60 nthreads = omp_get_num_threads (); in foo()
71 assert (B::xcount == nthreads); in main()
72 assert (B::ccount == nthreads); in main()
73 assert (B::dcount == nthreads+1); in main()
H A Dsections-1.C18 int i, nthreads, tid; in main() local
25 #pragma omp parallel shared(a,b,nthreads) private(c,i,tid) in main()
30 nthreads = omp_get_num_threads(); in main()
31 printf("Number of threads = %d\n", nthreads); in main()
H A Dctor-3.C63 static int nthreads; variable
72 nthreads = omp_get_num_threads (); in foo()
85 assert (B::icount == nthreads); in main()
86 assert (B::dcount == nthreads+1); in main()
H A Dctor-4.C64 static int nthreads; variable
73 nthreads = omp_get_num_threads (); in foo()
86 assert (B::ccount == nthreads); in main()
87 assert (B::dcount == nthreads+1); in main()
H A Dctor-6.C26 static int nthreads; variable
35 nthreads = omp_get_num_threads (); in foo()
47 assert (B::count == nthreads-1); in main()
H A Dctor-5.C30 static int nthreads; variable
39 nthreads = omp_get_num_threads (); in foo()
49 assert (B::count == nthreads-1); in main()
/openbsd/gnu/gcc/libgomp/testsuite/libgomp.c/
H A Domp_hello.c19 int nthreads, tid; in main() local
22 #pragma omp parallel private(nthreads, tid) in main()
32 nthreads = omp_get_num_threads(); in main()
33 printf("Number of threads = %d\n", nthreads); in main()
H A Dcritical-2.c13 int nthreads; in main() local
16 #pragma omp parallel shared (A, nthreads) in main()
19 nthreads = omp_get_num_threads (); in main()
31 if (A[i] != nthreads) in main()
H A Domp_workshare1.c19 int nthreads, tid, i, chunk; in main() local
27 #pragma omp parallel shared(a,b,c,nthreads,chunk) private(i,tid) in main()
32 nthreads = omp_get_num_threads(); in main()
33 printf("Number of threads = %d\n", nthreads); in main()
H A Domp_workshare2.c18 int i, nthreads, tid; in main() local
25 #pragma omp parallel shared(a,b,nthreads) private(c,i,tid) in main()
30 nthreads = omp_get_num_threads(); in main()
31 printf("Number of threads = %d\n", nthreads); in main()
/openbsd/gnu/usr.bin/perl/dist/Thread-Queue/t/
H A D01_basic.t27 my $nthreads = 5;
29 my $q = Thread::Queue->new(1..$nthreads);
31 is($q->pending(), $nthreads, 'Pre-populated queue count');
43 push(@threads, threads->create('reader')) for (1..$nthreads);
50 $q->enqueue((-1) x $nthreads); # One end marker for each thread
95 push(@threads, threads->create('reader2')) for (1..$nthreads);
97 $q->enqueue(1..4*$count*$nthreads);
98 $q->enqueue((0) x ($count*$nthreads));
/openbsd/regress/sys/kern/clock_gettime/
H A Dmonotonicrelapse.c38 int error, i, nthreads; in main() local
44 nthreads = strtonum(argv[1], 1, INT_MAX, &errstr); in main()
48 thread = calloc(nthreads, sizeof(*thread)); in main()
52 for (i = 0; i < nthreads; i++) { in main()
/openbsd/gnu/usr.bin/binutils/gdb/testsuite/gdb.threads/
H A Dlinux-dp.exp103 set nthreads 7
105 set nthreads 6
112 for {set i $nthreads} {$i > 0} {incr i -1} {
241 for {set i 1} {$i <= $nthreads} {incr i} {
/openbsd/lib/libkvm/
H A Dkvm_proc2.c426 int mib[6], st, nthreads; in kvm_getprocs() local
465 nthreads = size / esize; in kvm_getprocs()
512 nthreads = kvm_proclist(kd, op, arg, pr, bp, maxthread, esize); in kvm_getprocs()
513 if (nthreads < 0) in kvm_getprocs()
521 i = kvm_proclist(kd, op, arg, pr, bp + (esize * nthreads), in kvm_getprocs()
522 maxthread - nthreads, esize); in kvm_getprocs()
524 nthreads += i; in kvm_getprocs()
527 *cnt = nthreads; in kvm_getprocs()
/openbsd/sys/kern/
H A Dkern_fork.c68 int nthreads = 1; /* proc 0 */ variable
316 if ((nthreads >= maxthread - 5 && uid != 0) || nthreads >= maxthread) { in fork_check_maxthread()
323 nthreads++; in fork_check_maxthread()
369 nthreads--; in fork1()
382 nthreads--; in fork1()
390 nthreads--; in fork1()
547 nthreads--; in thread_fork()
/openbsd/gnu/usr.bin/perl/t/op/
H A Dthreads.t79 my $nthreads = shift;
81 for my $i (1..$nthreads) {

12