/barrelfish-2018-10-04/usr/tests/spantest/ |
H A D | exit.c | 40 uint64_t num_threads = 2; local 42 num_threads = strtol(argv[1], NULL, 10); 44 debug_printf("Spanning domain to %" PRIu64 " cores\n", num_threads); 46 for (uint64_t i=1; i<num_threads; i++) { 49 num_threads); 56 for (uint64_t i=1; i<num_threads; i++) { 59 core, num_threads);
|
H A D | interleaved.c | 40 uint64_t num_threads = 2; local 42 num_threads = strtol(argv[1], NULL, 10); 44 debug_printf("Spanning domain to %" PRIu64 " cores\n", num_threads); 46 for (uint64_t i=1; i<num_threads; i++) { 49 num_threads); 56 core, num_threads);
|
/barrelfish-2018-10-04/lib/bomp/ |
H A D | sections.c | 55 unsigned num_threads, 63 unsigned num_threads, 53 GOMP_parallel_sections_start(void (*fn)(void *), void *data, unsigned num_threads, unsigned count) argument 61 GOMP_parallel_sections(void (*fn)(void *), void *data, unsigned num_threads, unsigned count, unsigned flags) argument
|
H A D | parallel.c | 26 * GOMP_parallel_start (subfunction, &data, num_threads); 48 && g_bomp_state->num_threads < nthreads)) { 72 unsigned num_threads, 83 GOMP_parallel_start(fn, data, num_threads); 70 GOMP_parallel(void (*fn)(void *), void *data, unsigned num_threads, unsigned int flags) argument
|
H A D | omp.c | 41 * \param num_threads the number of threads 44 * specifying a num_threads clause, by setting the value of the first element of 45 * the nthreads-var ICV of the current task to num_threads. 47 void omp_set_num_threads(int num_threads) argument 49 if (num_threads > 0) { 50 if (num_threads > g_thread_limit) { 51 num_threads = g_thread_limit; 53 OMP_SET_ICV_TASK(nthreads, num_threads); 54 g_bomp_state->num_threads = num_threads; [all...] |
/barrelfish-2018-10-04/lib/bomp_new/ |
H A D | sections.c | 55 unsigned num_threads, 63 unsigned num_threads, 53 GOMP_parallel_sections_start(void (*fn)(void *), void *data, unsigned num_threads, unsigned count) argument 61 GOMP_parallel_sections(void (*fn)(void *), void *data, unsigned num_threads, unsigned count, unsigned flags) argument
|
H A D | bomp_init.c | 151 coreid_t num_threads = numa_num_node_cpus(node); local 152 if (num_threads > threads_per_node) { 153 num_threads = threads_per_node; 156 bomp_node_init(BOMP_NODE_LOCAL, numa_node, node, num_threads, 159 nthreads -= num_threads;
|
H A D | omp.c | 39 * \param num_threads the number of threads 42 * specifying a num_threads clause, by setting the value of the first element of 43 * the nthreads-var ICV of the current task to num_threads. 45 void omp_set_num_threads(int num_threads) argument 47 if (num_threads > 0) { 48 if (num_threads > OMP_GET_ICV_GLOBAL(thread_limit)) { 49 num_threads = OMP_GET_ICV_GLOBAL(thread_limit); 52 OMP_SET_ICV_TASK(nthreads, num_threads); 90 * new team if a parallel construct without a num_threads clause were encountered 96 * region without a num_threads claus [all...] |
H A D | parallel.c | 26 * GOMP_parallel_start (subfunction, &data, num_threads); 94 unsigned num_threads, 92 GOMP_parallel(void (*fn)(void *), void *data, unsigned num_threads, unsigned int flags) argument
|
H A D | bomp.c | 80 g_bomp_state->num_threads = nthreads;
|
/barrelfish-2018-10-04/usr/examples/xmpl-thread/ |
H A D | thread.c | 53 int num_threads = 0; local 57 num_threads = atoi(argv[1]); 58 debug_printf("starting %d threads\n", num_threads); 60 printf("usage %s num_threads\n", argv[0]); 74 t_data = malloc(num_threads*sizeof(struct my_thread_data)); 79 for (int i = 0; i < num_threads; i++) { 93 while (start_cntr != num_threads) { 100 for (int i = 0; i < num_threads; i++) { 107 for (int i = 0; i < num_threads; i++) {
|
/barrelfish-2018-10-04/lib/phoenix/ |
H A D | taskQ.h | 50 taskQ_t* tq_init (int num_threads); 51 void tq_reset (taskQ_t* tq, int num_threads);
|
H A D | tpool.c | 47 int num_threads; member in struct:tpool_t 60 tpool_t* tpool_create (int num_threads) argument 70 tpool->num_threads = num_threads; 71 tpool->num_workers = num_threads; 73 tpool->args = (void **)phoenix_mem_malloc (sizeof (void *) * num_threads); 80 tpool->threads = (struct thread **)phoenix_mem_malloc (sizeof (struct thread *) * num_threads); 85 sizeof (thread_arg_t) * num_threads); 98 for (i = my_core_id + 1; i < num_threads + my_core_id; i++) { 108 for (i = 0; i < num_threads; [all...] |
H A D | tpool.h | 35 tpool_t* tpool_create (int num_threads);
|
H A D | taskQ.c | 54 int num_threads; member in struct:taskQ_t 81 taskQ_t* tq_init (int num_threads) argument 83 return tq_init_normal(num_threads); 86 void tq_reset (taskQ_t* tq, int num_threads) argument 105 tq->num_threads = numThreads; 106 tq->num_queues = tq->num_threads / num_strands_per_chip; 122 tq->num_threads, sizeof(unsigned int)); 124 mem_memset(tq->seeds, 0, sizeof(unsigned int) * tq->num_threads); 171 for (j = 0; j < tq->num_threads; j++) { 201 tq->num_threads, sizeo [all...] |
H A D | map_reduce.c | 565 int num_threads; local 579 num_threads = getNumTaskThreads (env, task_type); 582 num_threads, sizeof (thread_info_t)); 586 sizeof (thread_arg_t *) * num_threads); 589 for (thread_index = 0; thread_index < num_threads; ++thread_index) { 601 env->tpool, task_type, &th_arg_array[1], num_threads - 1); 603 dprintf("Status: All %d threads have been created\n", num_threads); 619 for (thread_index = 1; thread_index < num_threads; ++thread_index) 640 work_time / num_threads); 642 user_time / num_threads); 1702 int num_threads; local 1734 int num_threads; local [all...] |
/barrelfish-2018-10-04/lib/bomp/include/ |
H A D | abi.h | 87 void GOMP_parallel(void (*fn)(void *), void *data, unsigned num_threads, unsigned int flags); 97 unsigned num_threads, unsigned count); 98 void GOMP_parallel_sections(void (*fn)(void *), void *data, unsigned num_threads,
|
H A D | bomp_backend.h | 50 uint32_t num_threads; member in struct:bomp_state
|
H A D | bomp_internal.h | 63 unsigned num_threads; member in struct:bomp_work
|
/barrelfish-2018-10-04/lib/bomp_new/include/ |
H A D | omp_abi.h | 87 void GOMP_parallel(void (*fn)(void *), void *data, unsigned num_threads, unsigned int flags); 97 unsigned num_threads, unsigned count); 98 void GOMP_parallel_sections(void (*fn)(void *), void *data, unsigned num_threads,
|
H A D | bomp_internal.h | 189 unsigned num_threads;
|
/barrelfish-2018-10-04/usr/bench/xomp_bench/ |
H A D | work_bench.c | 45 int num_threads = omp_get_num_threads() * 2; local 47 for (int i = 0; i < num_threads; i++) {
|
/barrelfish-2018-10-04/lib/bomp/backends/ |
H A D | bomp_exclusive.c | 92 g_bomp_state->num_threads = nthreads; 151 g_bomp_state->num_threads = 1;
|
H A D | bomp_shared.c | 86 g_bomp_state->num_threads = nthreads; 140 g_bomp_state->num_threads = 1;
|
/barrelfish-2018-10-04/include/ |
H A D | omp.h | 191 extern void omp_set_num_threads(int num_threads);
|