Searched refs:nthreads (Results 1 - 25 of 30) sorted by relevance

12

/haiku-buildtools/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)
17 integer :: err, nthreads local in subroutine:foo
26 nthreads = omp_get_num_threads ()
/haiku-buildtools/gcc/libgomp/testsuite/libgomp.c/
H A Domp_hello.c19 int nthreads, tid; local
22 #pragma omp parallel private(nthreads, tid)
32 nthreads = omp_get_num_threads();
33 printf("Number of threads = %d\n", nthreads);
H A Dcritical-2.c13 int nthreads; local
16 #pragma omp parallel shared (A, nthreads)
19 nthreads = omp_get_num_threads ();
31 if (A[i] != nthreads)
H A Dtarget-critical-1.c12 int i, nthreads; local
15 #pragma omp parallel shared (A, nthreads)
18 nthreads = omp_get_num_threads ();
30 if (A[i] != nthreads)
44 int i, nthreads; local
48 #pragma omp parallel shared (B, nthreads)
51 nthreads = omp_get_num_threads ();
64 if (B[i] != nthreads)
H A Domp_workshare1.c19 int nthreads, tid, i, chunk; local
27 #pragma omp parallel shared(a,b,c,nthreads,chunk) private(i,tid)
32 nthreads = omp_get_num_threads();
33 printf("Number of threads = %d\n", nthreads);
H A Domp_workshare2.c18 int i, nthreads, tid; local
25 #pragma omp parallel shared(a,b,nthreads) private(c,i,tid)
30 nthreads = omp_get_num_threads();
31 printf("Number of threads = %d\n", nthreads);
/haiku-buildtools/gcc/libgomp/testsuite/libgomp.c++/
H A Dctor-11.C54 static int nthreads; variable
63 nthreads = omp_get_num_threads ();
75 nthreads = omp_get_num_threads ();
88 assert (B::xcount == nthreads);
90 assert (B::icount == (nthreads + 1) * N);
91 assert (B::dcount == (nthreads + 1) * N);
95 assert (B::xcount == nthreads);
96 assert (B::ccount == nthreads);
98 assert (B::dcount == nthreads + 1);
H A Dctor-1.C41 static int nthreads; variable
49 nthreads = omp_get_num_threads ();
60 assert (B::xcount == nthreads);
61 assert (B::icount == nthreads+1);
62 assert (B::dcount == nthreads+1);
H A Dctor-7.C43 static int nthreads; variable
51 nthreads = omp_get_num_threads ();
62 assert (B::xcount == nthreads);
63 assert (B::icount == (nthreads+1)*N);
64 assert (B::dcount == (nthreads+1)*N);
H A Dctor-6.C26 static int nthreads; variable
35 nthreads = omp_get_num_threads ();
47 assert (B::count == nthreads-1);
H A Dctor-2.C51 static int nthreads; variable
60 nthreads = omp_get_num_threads ();
71 assert (B::xcount == nthreads);
72 assert (B::ccount == nthreads);
73 assert (B::dcount == nthreads+1);
H A Dctor-5.C30 static int nthreads; variable
39 nthreads = omp_get_num_threads ();
49 assert (B::count == nthreads-1);
H A Dctor-3.C63 static int nthreads; variable
72 nthreads = omp_get_num_threads ();
85 assert (B::icount == nthreads);
86 assert (B::dcount == nthreads+1);
H A Dctor-4.C64 static int nthreads; variable
73 nthreads = omp_get_num_threads ();
86 assert (B::ccount == nthreads);
87 assert (B::dcount == nthreads+1);
H A Dsections-1.C18 int i, nthreads, tid; local
25 #pragma omp parallel shared(a,b,nthreads) private(c,i,tid)
30 nthreads = omp_get_num_threads();
31 printf("Number of threads = %d\n", nthreads);
/haiku-buildtools/gcc/libgomp/
H A Dordered.c44 if (team == NULL || team->nthreads == 1)
48 if (index >= team->nthreads)
49 index -= team->nthreads;
75 if (team == NULL || team->nthreads == 1)
85 if (next == team->nthreads)
110 if (team == NULL || team->nthreads == 1)
128 if (ws->ordered_num_used < team->nthreads)
131 if (index >= team->nthreads)
132 index -= team->nthreads;
137 if (index == team->nthreads)
[all...]
H A Diter.c44 unsigned long nthreads = team ? team->nthreads : 1; local
50 if (nthreads == 1)
77 q = n / nthreads;
78 t = n % nthreads;
116 /* Initial guess is a C sized chunk positioned nthreads iterations
118 s0 = (thr->ts.static_trip * nthreads + i) * c;
266 unsigned long nthreads = team ? team->nthreads : 1; local
275 q = (n + nthreads
300 unsigned long nthreads = team ? team->nthreads : 1; local
[all...]
H A Dteam.c141 gomp_new_team (unsigned nthreads) argument
147 size = sizeof (*team) + nthreads * (sizeof (team->ordered_release[0])
158 gomp_init_work_share (&team->work_shares[0], false, nthreads);
166 team->nthreads = nthreads;
167 gomp_barrier_init (&team->barrier, nthreads);
170 team->ordered_release = (void *) &team->implicit_task[nthreads];
273 gomp_team_start (void (*fn) (void *), void *data, unsigned nthreads, argument
295 thr->thread_pool->threads_busy = nthreads;
312 if (nthreads >
[all...]
H A Diter_ull.c45 unsigned long nthreads = team ? team->nthreads : 1; local
51 if (nthreads == 1)
78 q = n / nthreads;
79 t = n % nthreads;
118 /* Initial guess is a C sized chunk positioned nthreads iterations
120 s0 = (thr->ts.static_trip * (gomp_ull) nthreads + i) * c;
267 gomp_ull nthreads = team ? team->nthreads : 1; local
279 q = (n + nthreads
304 gomp_ull nthreads = team ? team->nthreads : 1; local
[all...]
H A Dparallel.c137 unsigned int nthreads = team ? team->nthreads : 1; local
139 if (nthreads > 1)
149 1UL - nthreads);
152 thr->thread_pool->threads_busy -= nthreads - 1;
241 return team ? team->nthreads : 1;
288 return ts->team->nthreads;
H A Dsections.c49 long nthreads = team ? team->nthreads : 1; local
51 ws->mode = ((nthreads | ws->end)
H A Dwork.c94 unsigned nthreads)
104 if (nthreads > INLINE_ORDERED_TEAM_IDS_CNT)
106 = gomp_malloc (nthreads * sizeof (*ws->ordered_team_ids));
110 nthreads * sizeof (*ws->ordered_team_ids));
191 gomp_init_work_share (ws, ordered, team->nthreads);
291 if (completed == team->nthreads)
93 gomp_init_work_share(struct gomp_work_share *ws, bool ordered, unsigned nthreads) argument
H A Dloop_ull.c59 long nthreads = team ? team->nthreads : 1; local
64 if (__builtin_expect ((nthreads | ws->chunk_size_ull)
68 - (nthreads + 1) * ws->chunk_size_ull);
71 else if (__builtin_expect ((nthreads | -ws->chunk_size_ull)
74 ws->mode = ws->end_ull > ((nthreads + 1) * -ws->chunk_size_ull
/haiku-buildtools/gcc/libgomp/testsuite/libgomp.oacc-c-c++-common/
H A Dlib-88.c45 const int nthreads = 1; local
70 tid = (pthread_t *) malloc (nthreads * sizeof (pthread_t));
72 for (i = 0; i < nthreads; i++)
82 for (i = 0; i < nthreads; i++)
/haiku-buildtools/gcc/gcc/testsuite/gfortran.dg/
H A Dpr61209.f9032 nthreads = 0
33 IF (nthreads .GT. 0 .AND. thread_redist) THEN
37 CALL dbcsr_build_row_index_inplace (thr_c, nthreads)

Completed in 180 milliseconds

12