Searched refs:g_bomp_state (Results 1 - 13 of 13) sorted by relevance

/barrelfish-master/lib/bomp/
H A Datomic.c13 assert(g_bomp_state);
14 bomp_lock(&g_bomp_state->atomic_lock);
19 assert(g_bomp_state);
20 bomp_unlock(&g_bomp_state->atomic_lock);
H A Dcritical.c24 assert(g_bomp_state);
25 bomp_mutex_lock(&g_bomp_state->critical_lock);
30 assert(g_bomp_state);
31 bomp_mutex_unlock(&g_bomp_state->critical_lock);
H A Dparallel.c35 assert(g_bomp_state != NULL);
46 g_bomp_state->bomp_threads = omp_get_max_threads();
47 if (nthreads == 0 || (g_bomp_state->behaviour_dynamic
48 && g_bomp_state->num_threads < nthreads)) {
50 nthreads = g_bomp_state->bomp_threads;
52 g_bomp_state->backend.start_processing(fn, data, nthreads);
54 g_bomp_state->nested++;
63 assert(g_bomp_state != NULL);
64 if (g_bomp_state->nested == 1) {
65 g_bomp_state
[all...]
H A Dbomp.c17 struct bomp_state *g_bomp_state; variable in typeref:struct:bomp_state
21 if (g_bomp_state && (g_bomp_state->backend_type == backend)) {
25 struct bomp_state *prev = g_bomp_state;
29 g_bomp_state = bomp_get_backend_state_bomp();
32 g_bomp_state = bomp_get_backend_state_xomp();
35 g_bomp_state = bomp_get_backend_state_linux();
43 if (g_bomp_state == NULL) {
44 g_bomp_state = prev;
69 assert(g_bomp_state);
[all...]
H A Dbarrier.c17 assert(g_bomp_state);
19 struct bomp_thread_local_data *th_local_data = g_bomp_state->backend.get_tls();
H A Dsingle.c48 struct bomp_thread_local_data *local = g_bomp_state->backend.get_tls();
H A Domp.c54 g_bomp_state->num_threads = num_threads;
74 if (g_bomp_state) {
75 return g_bomp_state->num_threads;
98 if (g_bomp_state) {
111 if (g_bomp_state) {
112 if (g_bomp_state->num_threads == 1) {
115 struct bomp_thread_local_data *tls = g_bomp_state->backend.get_tls();
555 switch (g_bomp_state->backend_type) {
584 switch (g_bomp_state->backend_type) {
679 switch (g_bomp_state
[all...]
/barrelfish-master/lib/bomp/include/
H A Dbomp_internal.h76 extern struct bomp_state *g_bomp_state;
99 assert(g_bomp_state);
100 icv = &g_bomp_state->icv_task;
107 assert(g_bomp_state);
108 return &g_bomp_state->icv_dev;
/barrelfish-master/lib/bomp/backends/
H A Dbomp_exclusive.c92 g_bomp_state->num_threads = nthreads;
97 g_bomp_state->tld = (struct bomp_thread_local_data **) memory;
143 xomp_barrier_enter(g_bomp_state->tld[i]->work->barrier);
146 bomp_clear_barrier(g_bomp_state->tld[i]->work->barrier);
148 free(g_bomp_state->tld);
150 g_bomp_state->tld = NULL;
151 g_bomp_state->num_threads = 1;
176 g_bomp_state = xomp_st;
180 g_bomp_state = xomp_st;
H A Dbomp_shared.c60 g_bomp_state->backend.set_numa(work_data->thread_id);
78 assert(g_bomp_state);
86 g_bomp_state->num_threads = nthreads;
95 g_bomp_state->tld = (struct bomp_thread_local_data **) memory;
133 bomp_barrier_wait(g_bomp_state->tld[i]->work->barrier);
136 bomp_clear_barrier(g_bomp_state->tld[i]->work->barrier);
138 free(g_bomp_state->tld);
139 g_bomp_state->tld = NULL;
140 g_bomp_state->num_threads = 1;
256 g_bomp_state
[all...]
H A Dxomp_worker.c504 g_bomp_state->num_threads = work->num_threads;
710 g_bomp_state->backend.set_tls(tlsinfo);
H A Dxomp_master.c1147 g_bomp_state->num_threads += ((local_threads) * (XOMP_VTHREAD_COUNT));
1197 work->num_threads = g_bomp_state->num_threads;
/barrelfish-master/lib/bomp_new/
H A Dbomp.c80 g_bomp_state->num_threads = nthreads;
89 g_bomp_state->tld = (struct bomp_thread_local_data **) memory;

Completed in 54 milliseconds