Home
last modified time | relevance | path

Searched refs:num_procs (Results 1 – 6 of 6) sorted by relevance

/llvm-project/offload/test/api/
H A Domp_get_num_procs.c8 int num_procs; in main() local
9 #pragma omp target map(from : num_procs) in main()
10 { num_procs = omp_get_num_procs(); } in main()
13 if (num_procs > 0) in main()
/llvm-project/openmp/runtime/test/affinity/format/
H A Daffinity_values.c101 int num_procs = omp_get_place_num_procs(place); in check_thread_affinity() local
102 int *ids = (int *)malloc(sizeof(int) * num_procs); in check_thread_affinity()
103 int *ids2 = (int *)malloc(sizeof(int) * num_procs); in check_thread_affinity()
108 list_to_ids(buf, ids2, num_procs); in check_thread_affinity()
116 for (j = 0; j < num_procs; ++j) { in check_thread_affinity()
/llvm-project/openmp/runtime/test/affinity/
H A Droot-threads-affinity.c43 int num_procs = omp_get_place_num_procs(place); in place_and_affinity_match() local
44 int *ids = (int*)malloc(sizeof(int) * num_procs); in place_and_affinity_match()
51 for (i = 0; i < num_procs; ++i) { in place_and_affinity_match()
62 for (j = 0; j < num_procs; ++j) { in place_and_affinity_match()
H A Dlibomp_test_topology.h209 int num_procs = omp_get_place_num_procs(place); in topology_alloc_openmp_places() local
210 int *ids = (int *)malloc(sizeof(int) * num_procs); in topology_alloc_openmp_places()
213 for (i = 0; i < num_procs; ++i) in topology_alloc_openmp_places()
235 int num_procs = omp_get_place_num_procs(place); in topology_alloc_openmp_partition() local
236 int *ids = (int *)malloc(sizeof(int) * num_procs); in topology_alloc_openmp_partition()
237 if (num_procs == 0) { in topology_alloc_openmp_partition()
243 for (i = 0; i < num_procs; ++i) in topology_alloc_openmp_partition()
/llvm-project/openmp/runtime/test/teams/
H A Dteams_resize.c17 int num_procs = omp_get_max_threads(); in main() local
20 thread_limit = num_procs / num_teams; in main()
/llvm-project/openmp/runtime/src/
H A Dkmp_affinity.cpp5542 int num_procs = 0; in __kmp_balanced_affinity()
5551 num_procs++; in __kmp_balanced_affinity()
5553 if (num_procs == 0) { in __kmp_balanced_affinity()
5208 int num_procs = 0; __kmp_aux_set_affinity() local