/openbsd/gnu/gcc/libgomp/ |
H A D | team.c | 152 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 D | ordered.c | 46 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 D | iter.c | 46 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 D | work.c | 39 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 D | parallel.c | 87 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 D | reduction6.f90 | 5 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 D | threads.c | 35 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 D | ctor-1.C | 41 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 D | ctor-7.C | 43 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 D | ctor-2.C | 51 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 D | sections-1.C | 18 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 D | ctor-3.C | 63 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 D | ctor-4.C | 64 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 D | ctor-6.C | 26 static int nthreads; variable 35 nthreads = omp_get_num_threads (); in foo() 47 assert (B::count == nthreads-1); in main()
|
H A D | ctor-5.C | 30 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 D | omp_hello.c | 19 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 D | critical-2.c | 13 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 D | omp_workshare1.c | 19 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 D | omp_workshare2.c | 18 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 D | 01_basic.t | 27 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 D | monotonicrelapse.c | 38 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 D | linux-dp.exp | 103 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 D | kvm_proc2.c | 426 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/gnu/usr.bin/perl/t/op/ |
H A D | threads.t | 79 my $nthreads = shift; 81 for my $i (1..$nthreads) {
|
/openbsd/sys/kern/ |
H A D | kern_fork.c | 68 int nthreads = 1; /* [a] proc 0 */ variable 320 val = atomic_inc_int_nv(&nthreads); in fork_check_maxthread() 327 atomic_dec_int(&nthreads); in fork_check_maxthread() 376 atomic_dec_int(&nthreads); in fork1() 389 atomic_dec_int(&nthreads); in fork1() 397 atomic_dec_int(&nthreads); in fork1() 556 atomic_dec_int(&nthreads); in thread_fork()
|