Home
last modified time | relevance | path

Searched refs:team (Results 1 – 25 of 622) sorted by relevance

12345678910>>...25

/netbsd-src/external/gpl3/gcc.old/dist/libgomp/
H A Dwork.c39 alloc_work_share (struct gomp_team *team) in alloc_work_share() argument
45 if (team->work_share_list_alloc != NULL) in alloc_work_share()
47 ws = team->work_share_list_alloc; in alloc_work_share()
48 team->work_share_list_alloc = ws->next_free; in alloc_work_share()
53 ws = team->work_share_list_free; in alloc_work_share()
62 team->work_share_list_alloc = next->next_free; in alloc_work_share()
66 gomp_mutex_lock (&team->work_share_list_free_lock); in alloc_work_share()
67 ws = team->work_share_list_free; in alloc_work_share()
70 team->work_share_list_alloc = ws->next_free; in alloc_work_share()
71 team->work_share_list_free = NULL; in alloc_work_share()
[all …]
H A Dteam.c96 thr->ts.team->ordered_release[thr->ts.team_id] = &thr->release; in gomp_thread_start()
103 struct gomp_team *team = thr->ts.team; in gomp_thread_start() local
106 gomp_barrier_wait (&team->barrier); in gomp_thread_start()
109 gomp_team_barrier_wait_final (&team->barrier); in gomp_thread_start()
111 gomp_barrier_wait_last (&team->barrier); in gomp_thread_start()
120 struct gomp_team *team = thr->ts.team; in gomp_thread_start() local
124 gomp_team_barrier_wait_final (&team->barrier); in gomp_thread_start()
148 if (thr->ts.team == NULL) in get_last_team()
166 struct gomp_team *team; in gomp_new_team() local
169 team = get_last_team (nthreads); in gomp_new_team()
[all …]
H A Dtask.c353 struct gomp_team *team = thr->ts.team; in GOMP_task() local
366 if (__builtin_expect (gomp_cancel_var, 0) && team) in GOMP_task()
368 if (gomp_team_barrier_cancelled (&team->barrier)) in GOMP_task()
386 if (!if_clause || team == NULL in GOMP_task()
388 || team->task_count > 64 * team->nthreads) in GOMP_task()
434 gomp_mutex_lock (&team->task_lock); in GOMP_task()
436 gomp_mutex_unlock (&team->task_lock); in GOMP_task()
474 gomp_mutex_lock (&team->task_lock); in GOMP_task()
480 if (gomp_team_barrier_cancelled (&team->barrier)) in GOMP_task()
483 gomp_mutex_unlock (&team->task_lock); in GOMP_task()
[all …]
H A Dparallel.c88 if (thr->ts.team == NULL || pool == NULL) in gomp_resolve_num_threads()
137 struct gomp_team *team = thr->ts.team; in GOMP_parallel_end() local
138 unsigned int nthreads = team ? team->nthreads : 1; in GOMP_parallel_end()
144 if (thr->ts.team == NULL) in GOMP_parallel_end()
199 struct gomp_team *team = thr->ts.team; in GOMP_cancellation_point() local
202 if (team == NULL) in GOMP_cancellation_point()
204 return team->work_share_cancelled != 0; in GOMP_cancellation_point()
221 if (team) in GOMP_cancellation_point()
222 return gomp_team_barrier_cancelled (&team->barrier); in GOMP_cancellation_point()
237 struct gomp_team *team = thr->ts.team; in ialias() local
[all …]
H A Dordered.c42 struct gomp_team *team = thr->ts.team; in gomp_ordered_first() local
47 if (team == NULL || team->nthreads == 1) in gomp_ordered_first()
51 if (index >= team->nthreads) in gomp_ordered_first()
52 index -= team->nthreads; in gomp_ordered_first()
59 gomp_sem_post (team->ordered_release[thr->ts.team_id]); in gomp_ordered_first()
73 struct gomp_team *team = thr->ts.team; in gomp_ordered_last() local
78 if (team == NULL || team->nthreads == 1) in gomp_ordered_last()
88 if (next == team->nthreads) in gomp_ordered_last()
93 gomp_sem_post (team->ordered_release[next_id]); in gomp_ordered_last()
108 struct gomp_team *team = thr->ts.team; in gomp_ordered_next() local
[all …]
H A Dtaskloop.c40 struct gomp_team *team = thr->ts.team; in GOMP_taskloop() local
53 if (team && gomp_team_barrier_cancelled (&team->barrier)) in GOMP_taskloop()
146 num_tasks = team ? team->nthreads : 1; in GOMP_taskloop()
190 if ((flags & GOMP_TASK_FLAG_IF) == 0 || team == NULL in GOMP_taskloop()
192 || team->task_count + num_tasks > 64 * team->nthreads) in GOMP_taskloop()
234 gomp_mutex_lock (&team->task_lock); in GOMP_taskloop()
236 gomp_mutex_unlock (&team->task_lock); in GOMP_taskloop()
266 gomp_mutex_lock (&team->task_lock); in GOMP_taskloop()
268 gomp_mutex_unlock (&team->task_lock); in GOMP_taskloop()
313 gomp_mutex_lock (&team->task_lock); in GOMP_taskloop()
[all …]
H A Dsingle.c40 struct gomp_team *team = thr->ts.team; in GOMP_single_start() local
43 if (__builtin_expect (team == NULL, 0)) in GOMP_single_start()
47 return __sync_bool_compare_and_swap (&team->single_count, single_count, in GOMP_single_start()
80 gomp_team_barrier_wait (&thr->ts.team->barrier); in GOMP_single_copy_start()
96 struct gomp_team *team = thr->ts.team; in GOMP_single_copy_end() local
98 if (team != NULL) in GOMP_single_copy_end()
101 gomp_team_barrier_wait (&team->barrier); in GOMP_single_copy_end()
/netbsd-src/external/gpl3/gcc/dist/libgomp/
H A Dwork.c39 alloc_work_share (struct gomp_team *team) in alloc_work_share() argument
45 if (team->work_share_list_alloc != NULL) in alloc_work_share()
47 ws = team->work_share_list_alloc; in alloc_work_share()
48 team->work_share_list_alloc = ws->next_free; in alloc_work_share()
53 ws = team->work_share_list_free; in alloc_work_share()
62 team->work_share_list_alloc = next->next_free; in alloc_work_share()
66 gomp_mutex_lock (&team->work_share_list_free_lock); in alloc_work_share()
67 ws = team->work_share_list_free; in alloc_work_share()
70 team->work_share_list_alloc = ws->next_free; in alloc_work_share()
71 team->work_share_list_free = NULL; in alloc_work_share()
[all …]
H A Dteam.c102 thr->ts.team->ordered_release[thr->ts.team_id] = &thr->release; in gomp_thread_start()
109 struct gomp_team *team = thr->ts.team; in gomp_thread_start() local
112 gomp_barrier_wait (&team->barrier); in gomp_thread_start()
115 gomp_team_barrier_wait_final (&team->barrier); in gomp_thread_start()
117 gomp_barrier_wait_last (&team->barrier); in gomp_thread_start()
126 struct gomp_team *team = thr->ts.team; in gomp_thread_start() local
130 gomp_team_barrier_wait_final (&team->barrier); in gomp_thread_start()
154 if (thr->ts.team == NULL) in get_last_team()
172 struct gomp_team *team; in gomp_new_team() local
175 team = get_last_team (nthreads); in gomp_new_team()
[all …]
H A Dtask.c356 struct gomp_team *team = thr->ts.team; in GOMP_task() local
370 if (__builtin_expect (gomp_cancel_var, 0) && team) in GOMP_task()
372 if (gomp_team_barrier_cancelled (&team->barrier)) in GOMP_task()
392 if (!if_clause || team == NULL in GOMP_task()
394 || team->task_count > 64 * team->nthreads) in GOMP_task()
461 gomp_mutex_lock (&team->task_lock); in GOMP_task()
463 gomp_mutex_unlock (&team->task_lock); in GOMP_task()
491 task->detach_team = team; in GOMP_task()
512 gomp_mutex_lock (&team->task_lock); in GOMP_task()
518 if (gomp_team_barrier_cancelled (&team->barrier)) in GOMP_task()
[all …]
H A Dparallel.c95 if (thr->ts.team == NULL || pool == NULL) in gomp_resolve_num_threads()
144 struct gomp_team *team = thr->ts.team; in GOMP_parallel_end() local
145 unsigned int nthreads = team ? team->nthreads : 1; in GOMP_parallel_end()
151 if (thr->ts.team == NULL) in GOMP_parallel_end()
206 struct gomp_team *team = thr->ts.team; in GOMP_cancellation_point() local
209 if (team == NULL) in GOMP_cancellation_point()
211 return team->work_share_cancelled != 0; in GOMP_cancellation_point()
228 if (team) in GOMP_cancellation_point()
229 return gomp_team_barrier_cancelled (&team->barrier); in GOMP_cancellation_point()
244 struct gomp_team *team = thr->ts.team; in ialias() local
[all …]
H A Dordered.c42 struct gomp_team *team = thr->ts.team; in gomp_ordered_first() local
47 if (team == NULL || team->nthreads == 1) in gomp_ordered_first()
51 if (index >= team->nthreads) in gomp_ordered_first()
52 index -= team->nthreads; in gomp_ordered_first()
59 gomp_sem_post (team->ordered_release[thr->ts.team_id]); in gomp_ordered_first()
73 struct gomp_team *team = thr->ts.team; in gomp_ordered_last() local
78 if (team == NULL || team->nthreads == 1) in gomp_ordered_last()
88 if (next == team->nthreads) in gomp_ordered_last()
93 gomp_sem_post (team->ordered_release[next_id]); in gomp_ordered_last()
108 struct gomp_team *team = thr->ts.team; in gomp_ordered_next() local
[all …]
H A Dtaskloop.c40 struct gomp_team *team = thr->ts.team; in GOMP_taskloop() local
53 if (team && gomp_team_barrier_cancelled (&team->barrier)) in GOMP_taskloop()
164 num_tasks = team ? team->nthreads : 1; in GOMP_taskloop()
209 if ((flags & GOMP_TASK_FLAG_IF) == 0 || team == NULL in GOMP_taskloop()
211 || team->task_count + num_tasks > 64 * team->nthreads) in GOMP_taskloop()
253 gomp_mutex_lock (&team->task_lock); in GOMP_taskloop()
255 gomp_mutex_unlock (&team->task_lock); in GOMP_taskloop()
285 gomp_mutex_lock (&team->task_lock); in GOMP_taskloop()
287 gomp_mutex_unlock (&team->task_lock); in GOMP_taskloop()
332 gomp_mutex_lock (&team->task_lock); in GOMP_taskloop()
[all …]
H A Dsingle.c40 struct gomp_team *team = thr->ts.team; in GOMP_single_start() local
43 if (__builtin_expect (team == NULL, 0)) in GOMP_single_start()
47 return __sync_bool_compare_and_swap (&team->single_count, single_count, in GOMP_single_start()
80 gomp_team_barrier_wait (&thr->ts.team->barrier); in GOMP_single_copy_start()
96 struct gomp_team *team = thr->ts.team; in GOMP_single_copy_end() local
98 if (team != NULL) in GOMP_single_copy_end()
101 gomp_team_barrier_wait (&team->barrier); in GOMP_single_copy_end()
/netbsd-src/external/gpl3/gcc/dist/libgomp/config/posix/
H A Dbar.c123 struct gomp_team *team = thr->ts.team; in gomp_team_barrier_wait_end() local
125 team->work_share_cancelled = 0; in gomp_team_barrier_wait_end()
126 if (team->task_count) in gomp_team_barrier_wait_end()
185 struct gomp_team *team = thr->ts.team; in gomp_team_barrier_wait_cancel_end() local
187 team->work_share_cancelled = 0; in gomp_team_barrier_wait_cancel_end()
188 if (team->task_count) in gomp_team_barrier_wait_cancel_end()
272 gomp_team_barrier_cancel (struct gomp_team *team) in gomp_team_barrier_cancel() argument
274 if (team->barrier.generation & BAR_CANCELLED) in gomp_team_barrier_cancel()
276 gomp_mutex_lock (&team->barrier.mutex1); in gomp_team_barrier_cancel()
277 gomp_mutex_lock (&team->task_lock); in gomp_team_barrier_cancel()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libgomp/config/posix/
H A Dbar.c123 struct gomp_team *team = thr->ts.team; in gomp_team_barrier_wait_end() local
125 team->work_share_cancelled = 0; in gomp_team_barrier_wait_end()
126 if (team->task_count) in gomp_team_barrier_wait_end()
185 struct gomp_team *team = thr->ts.team; in gomp_team_barrier_wait_cancel_end() local
187 team->work_share_cancelled = 0; in gomp_team_barrier_wait_cancel_end()
188 if (team->task_count) in gomp_team_barrier_wait_cancel_end()
272 gomp_team_barrier_cancel (struct gomp_team *team) in gomp_team_barrier_cancel() argument
274 if (team->barrier.generation & BAR_CANCELLED) in gomp_team_barrier_cancel()
276 gomp_mutex_lock (&team->barrier.mutex1); in gomp_team_barrier_cancel()
277 gomp_mutex_lock (&team->task_lock); in gomp_team_barrier_cancel()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libgomp/config/nvptx/
H A Dteam.c106 gomp_team_barrier_wait_final (&thr->ts.team->barrier); in gomp_thread_start()
119 unsigned flags, struct gomp_team *team, in gomp_team_start() argument
136 team->prev_ts = thr->ts; in gomp_team_start()
138 thr->ts.team = team; in gomp_team_start()
143 thr->ts.work_share = &team->work_shares[0]; in gomp_team_start()
147 thr->task = &team->implicit_task[0]; in gomp_team_start()
150 team->implicit_task[0].icv.nthreads_var = nthreads_var; in gomp_team_start()
151 team->implicit_task[0].taskgroup = taskgroup; in gomp_team_start()
160 nthr->ts.team = team; in gomp_team_start()
161 nthr->ts.work_share = &team->work_shares[0]; in gomp_team_start()
[all …]
H A Dbar.c84 struct gomp_team *team = thr->ts.team; in gomp_team_barrier_wait_end() local
87 team->work_share_cancelled = 0; in gomp_team_barrier_wait_end()
88 if (__builtin_expect (team->task_count, 0)) in gomp_team_barrier_wait_end()
148 struct gomp_team *team = thr->ts.team; in gomp_team_barrier_wait_cancel_end() local
151 team->work_share_cancelled = 0; in gomp_team_barrier_wait_cancel_end()
152 if (__builtin_expect (team->task_count, 0)) in gomp_team_barrier_wait_cancel_end()
195 gomp_team_barrier_cancel (struct gomp_team *team) in gomp_team_barrier_cancel() argument
197 gomp_mutex_lock (&team->task_lock); in gomp_team_barrier_cancel()
198 if (team->barrier.generation & BAR_CANCELLED) in gomp_team_barrier_cancel()
200 gomp_mutex_unlock (&team->task_lock); in gomp_team_barrier_cancel()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libgomp/config/nvptx/
H A Dteam.c109 gomp_team_barrier_wait_final (&thr->ts.team->barrier); in gomp_thread_start()
122 unsigned flags, struct gomp_team *team, in gomp_team_start() argument
139 team->prev_ts = thr->ts; in gomp_team_start()
141 thr->ts.team = team; in gomp_team_start()
146 thr->ts.work_share = &team->work_shares[0]; in gomp_team_start()
150 thr->task = &team->implicit_task[0]; in gomp_team_start()
153 team->implicit_task[0].icv.nthreads_var = nthreads_var; in gomp_team_start()
154 team->implicit_task[0].taskgroup = taskgroup; in gomp_team_start()
163 nthr->ts.team = team; in gomp_team_start()
164 nthr->ts.work_share = &team->work_shares[0]; in gomp_team_start()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libgomp/config/gcn/
H A Dteam.c143 gomp_team_barrier_wait_final (&thr->ts.team->barrier); in gomp_thread_start()
153 unsigned flags, struct gomp_team *team, in gomp_team_start() argument
170 team->prev_ts = thr->ts; in gomp_team_start()
172 thr->ts.team = team; in gomp_team_start()
177 thr->ts.work_share = &team->work_shares[0]; in gomp_team_start()
181 thr->task = &team->implicit_task[0]; in gomp_team_start()
184 team->implicit_task[0].icv.nthreads_var = nthreads_var; in gomp_team_start()
185 team->implicit_task[0].taskgroup = taskgroup; in gomp_team_start()
194 nthr->ts.team = team; in gomp_team_start()
195 nthr->ts.work_share = &team->work_shares[0]; in gomp_team_start()
[all …]
H A Dbar.c88 struct gomp_team *team = thr->ts.team; in gomp_team_barrier_wait_end() local
91 team->work_share_cancelled = 0; in gomp_team_barrier_wait_end()
92 if (__builtin_expect (team->task_count, 0)) in gomp_team_barrier_wait_end()
165 struct gomp_team *team = thr->ts.team; in gomp_team_barrier_wait_cancel_end() local
168 team->work_share_cancelled = 0; in gomp_team_barrier_wait_cancel_end()
169 if (__builtin_expect (team->task_count, 0)) in gomp_team_barrier_wait_cancel_end()
226 gomp_team_barrier_cancel (struct gomp_team *team) in gomp_team_barrier_cancel() argument
228 gomp_mutex_lock (&team->task_lock); in gomp_team_barrier_cancel()
229 if (team->barrier.generation & BAR_CANCELLED) in gomp_team_barrier_cancel()
231 gomp_mutex_unlock (&team->task_lock); in gomp_team_barrier_cancel()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libgomp/config/gcn/
H A Dteam.c143 gomp_team_barrier_wait_final (&thr->ts.team->barrier); in gomp_thread_start()
153 unsigned flags, struct gomp_team *team, in gomp_team_start() argument
170 team->prev_ts = thr->ts; in gomp_team_start()
172 thr->ts.team = team; in gomp_team_start()
177 thr->ts.work_share = &team->work_shares[0]; in gomp_team_start()
181 thr->task = &team->implicit_task[0]; in gomp_team_start()
184 team->implicit_task[0].icv.nthreads_var = nthreads_var; in gomp_team_start()
185 team->implicit_task[0].taskgroup = taskgroup; in gomp_team_start()
194 nthr->ts.team = team; in gomp_team_start()
195 nthr->ts.work_share = &team->work_shares[0]; in gomp_team_start()
[all …]
H A Dbar.c86 struct gomp_team *team = thr->ts.team; in gomp_team_barrier_wait_end() local
89 team->work_share_cancelled = 0; in gomp_team_barrier_wait_end()
90 if (__builtin_expect (team->task_count, 0)) in gomp_team_barrier_wait_end()
162 struct gomp_team *team = thr->ts.team; in gomp_team_barrier_wait_cancel_end() local
165 team->work_share_cancelled = 0; in gomp_team_barrier_wait_cancel_end()
166 if (__builtin_expect (team->task_count, 0)) in gomp_team_barrier_wait_cancel_end()
221 gomp_team_barrier_cancel (struct gomp_team *team) in gomp_team_barrier_cancel() argument
223 gomp_mutex_lock (&team->task_lock); in gomp_team_barrier_cancel()
224 if (team->barrier.generation & BAR_CANCELLED) in gomp_team_barrier_cancel()
226 gomp_mutex_unlock (&team->task_lock); in gomp_team_barrier_cancel()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libgomp/config/linux/
H A Dbar.c89 struct gomp_team *team = thr->ts.team; in gomp_team_barrier_wait_end() local
92 team->work_share_cancelled = 0; in gomp_team_barrier_wait_end()
93 if (__builtin_expect (team->task_count, 0)) in gomp_team_barrier_wait_end()
153 struct gomp_team *team = thr->ts.team; in gomp_team_barrier_wait_cancel_end() local
156 team->work_share_cancelled = 0; in gomp_team_barrier_wait_cancel_end()
157 if (__builtin_expect (team->task_count, 0)) in gomp_team_barrier_wait_cancel_end()
200 gomp_team_barrier_cancel (struct gomp_team *team) in gomp_team_barrier_cancel() argument
202 gomp_mutex_lock (&team->task_lock); in gomp_team_barrier_cancel()
203 if (team->barrier.generation & BAR_CANCELLED) in gomp_team_barrier_cancel()
205 gomp_mutex_unlock (&team->task_lock); in gomp_team_barrier_cancel()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libgomp/config/linux/
H A Dbar.c89 struct gomp_team *team = thr->ts.team; in gomp_team_barrier_wait_end() local
92 team->work_share_cancelled = 0; in gomp_team_barrier_wait_end()
93 if (__builtin_expect (team->task_count, 0)) in gomp_team_barrier_wait_end()
153 struct gomp_team *team = thr->ts.team; in gomp_team_barrier_wait_cancel_end() local
156 team->work_share_cancelled = 0; in gomp_team_barrier_wait_cancel_end()
157 if (__builtin_expect (team->task_count, 0)) in gomp_team_barrier_wait_cancel_end()
200 gomp_team_barrier_cancel (struct gomp_team *team) in gomp_team_barrier_cancel() argument
202 gomp_mutex_lock (&team->task_lock); in gomp_team_barrier_cancel()
203 if (team->barrier.generation & BAR_CANCELLED) in gomp_team_barrier_cancel()
205 gomp_mutex_unlock (&team->task_lock); in gomp_team_barrier_cancel()
[all …]

12345678910>>...25