• Home
  • Raw
  • Download

Lines Matching refs:address2os

253 static void __kmp_affinity_assign_child_nums(AddrUnsPair *address2os,  in __kmp_affinity_assign_child_nums()  argument
256 int depth = address2os->first.depth; in __kmp_affinity_assign_child_nums()
261 address2os[0].first.childNums[labCt] = counts[labCt] = 0; in __kmp_affinity_assign_child_nums()
262 lastLabel[labCt] = address2os[0].first.labels[labCt]; in __kmp_affinity_assign_child_nums()
267 if (address2os[i].first.labels[labCt] != lastLabel[labCt]) { in __kmp_affinity_assign_child_nums()
271 lastLabel[labCt2] = address2os[i].first.labels[labCt2]; in __kmp_affinity_assign_child_nums()
274 lastLabel[labCt] = address2os[i].first.labels[labCt]; in __kmp_affinity_assign_child_nums()
279 address2os[i].first.childNums[labCt] = counts[labCt]; in __kmp_affinity_assign_child_nums()
282 address2os[i].first.childNums[labCt] = 0; in __kmp_affinity_assign_child_nums()
319 static void __kmp_affinity_print_topology(AddrUnsPair *address2os, int len, in __kmp_affinity_print_topology() argument
342 __kmp_str_buf_print(&buf, "%d ", address2os[proc].first.labels[level]); in __kmp_affinity_print_topology()
344 KMP_INFORM(OSProcMapToPack, "KMP_AFFINITY", address2os[proc].second, in __kmp_affinity_print_topology()
564 static int __kmp_affinity_create_hwloc_map(AddrUnsPair **address2os, in __kmp_affinity_create_hwloc_map() argument
567 *address2os = NULL; in __kmp_affinity_create_hwloc_map()
766 *address2os = retval; in __kmp_affinity_create_hwloc_map()
864 *address2os = retval; in __kmp_affinity_create_hwloc_map()
872 static int __kmp_affinity_create_flat_map(AddrUnsPair **address2os, in __kmp_affinity_create_flat_map() argument
874 *address2os = NULL; in __kmp_affinity_create_flat_map()
930 *address2os = in __kmp_affinity_create_flat_map()
931 (AddrUnsPair *)__kmp_allocate(sizeof(**address2os) * __kmp_avail_proc); in __kmp_affinity_create_flat_map()
942 (*address2os)[avail_ct++] = AddrUnsPair(addr, i); in __kmp_affinity_create_flat_map()
966 static int __kmp_affinity_create_proc_group_map(AddrUnsPair **address2os, in __kmp_affinity_create_proc_group_map() argument
968 *address2os = NULL; in __kmp_affinity_create_proc_group_map()
979 *address2os = in __kmp_affinity_create_proc_group_map()
980 (AddrUnsPair *)__kmp_allocate(sizeof(**address2os) * __kmp_avail_proc); in __kmp_affinity_create_proc_group_map()
994 (*address2os)[avail_ct++] = AddrUnsPair(addr, i); in __kmp_affinity_create_proc_group_map()
1074 static int __kmp_affinity_create_apicid_map(AddrUnsPair **address2os, in __kmp_affinity_create_apicid_map() argument
1077 *address2os = NULL; in __kmp_affinity_create_apicid_map()
1297 *address2os = (AddrUnsPair *)__kmp_allocate(sizeof(AddrUnsPair)); in __kmp_affinity_create_apicid_map()
1300 (*address2os)[0] = AddrUnsPair(addr, threadInfo[0].osId); in __kmp_affinity_create_apicid_map()
1307 __kmp_affinity_print_topology(*address2os, 1, 1, 0, -1, -1); in __kmp_affinity_create_apicid_map()
1449 *address2os = (AddrUnsPair *)__kmp_allocate(sizeof(AddrUnsPair) * nApics); in __kmp_affinity_create_apicid_map()
1465 (*address2os)[i] = AddrUnsPair(addr, os); in __kmp_affinity_create_apicid_map()
1484 __kmp_affinity_print_topology(*address2os, nApics, depth, pkgLevel, in __kmp_affinity_create_apicid_map()
1496 static int __kmp_affinity_create_x2apicid_map(AddrUnsPair **address2os, in __kmp_affinity_create_x2apicid_map() argument
1499 *address2os = NULL; in __kmp_affinity_create_x2apicid_map()
1726 *address2os = retval; in __kmp_affinity_create_x2apicid_map()
1937 *address2os = retval; in __kmp_affinity_create_x2apicid_map()
2042 static int __kmp_affinity_create_cpuinfo_map(AddrUnsPair **address2os, in __kmp_affinity_create_cpuinfo_map() argument
2046 *address2os = NULL; in __kmp_affinity_create_cpuinfo_map()
2363 *address2os = (AddrUnsPair *)__kmp_allocate(sizeof(AddrUnsPair)); in __kmp_affinity_create_cpuinfo_map()
2366 (*address2os)[0] = AddrUnsPair(addr, threadInfo[0][osIdIndex]); in __kmp_affinity_create_cpuinfo_map()
2373 __kmp_affinity_print_topology(*address2os, 1, 1, 0, -1, -1); in __kmp_affinity_create_cpuinfo_map()
2621 *address2os = (AddrUnsPair *)__kmp_allocate(sizeof(AddrUnsPair) * num_avail); in __kmp_affinity_create_cpuinfo_map()
2646 (*address2os)[i] = AddrUnsPair(addr, os); in __kmp_affinity_create_cpuinfo_map()
2681 __kmp_affinity_print_topology(*address2os, num_avail, depth, pkgLevel, in __kmp_affinity_create_cpuinfo_map()
2699 AddrUnsPair *address2os, in __kmp_create_masks() argument
2707 depth = address2os[0].first.depth; in __kmp_create_masks()
2711 unsigned osId = address2os[i].second; in __kmp_create_masks()
2723 qsort(address2os, numAddrs, sizeof(*address2os), in __kmp_create_masks()
2744 Address *leaderAddr = &(address2os[0].first); in __kmp_create_masks()
2748 KMP_CPU_SET(address2os[0].second, sum); in __kmp_create_masks()
2753 if (leaderAddr->isClose(address2os[i].first, __kmp_affinity_gran_levels)) { in __kmp_create_masks()
2754 KMP_CPU_SET(address2os[i].second, sum); in __kmp_create_masks()
2761 unsigned osId = address2os[j].second; in __kmp_create_masks()
2765 address2os[j].first.leader = (j == leader); in __kmp_create_masks()
2771 leaderAddr = &(address2os[i].first); in __kmp_create_masks()
2773 KMP_CPU_SET(address2os[i].second, sum); in __kmp_create_masks()
2779 unsigned osId = address2os[j].second; in __kmp_create_masks()
2783 address2os[j].first.leader = (j == leader); in __kmp_create_masks()
4015 static int __kmp_affinity_find_core_level(const AddrUnsPair *address2os, in __kmp_affinity_find_core_level() argument
4021 if (address2os[i].first.labels[j] > 0) { in __kmp_affinity_find_core_level()
4032 static int __kmp_affinity_compute_ncores(const AddrUnsPair *address2os, in __kmp_affinity_compute_ncores() argument
4042 if (address2os[i + 1].first.labels[j] > 0) { in __kmp_affinity_compute_ncores()
4060 static int __kmp_affinity_find_core(const AddrUnsPair *address2os, int proc, in __kmp_affinity_find_core() argument
4062 return __kmp_affinity_compute_ncores(address2os, proc + 1, bottom_level, in __kmp_affinity_find_core()
4069 static int __kmp_affinity_max_proc_per_core(const AddrUnsPair *address2os, in __kmp_affinity_max_proc_per_core() argument
4076 int percore = address2os[i].first.labels[core_level + 1] + 1; in __kmp_affinity_max_proc_per_core()
4088 static AddrUnsPair *address2os = NULL; variable
4095 KMP_ASSERT(address2os == NULL); \
4103 KMP_ASSERT(address2os == NULL); \
4217 depth = __kmp_affinity_create_hwloc_map(&address2os, &msg_id); in __kmp_aux_affinity_initialize()
4237 depth = __kmp_affinity_create_x2apicid_map(&address2os, &msg_id); in __kmp_aux_affinity_initialize()
4255 depth = __kmp_affinity_create_apicid_map(&address2os, &msg_id); in __kmp_aux_affinity_initialize()
4282 __kmp_affinity_create_cpuinfo_map(&address2os, &line, &msg_id, f); in __kmp_aux_affinity_initialize()
4299 depth = __kmp_affinity_create_proc_group_map(&address2os, &msg_id); in __kmp_aux_affinity_initialize()
4319 depth = __kmp_affinity_create_flat_map(&address2os, &msg_id); in __kmp_aux_affinity_initialize()
4324 KMP_ASSERT(address2os != NULL); in __kmp_aux_affinity_initialize()
4334 depth = __kmp_affinity_create_hwloc_map(&address2os, &msg_id); in __kmp_aux_affinity_initialize()
4352 depth = __kmp_affinity_create_x2apicid_map(&address2os, &msg_id); in __kmp_aux_affinity_initialize()
4365 depth = __kmp_affinity_create_apicid_map(&address2os, &msg_id); in __kmp_aux_affinity_initialize()
4401 depth = __kmp_affinity_create_cpuinfo_map(&address2os, &line, &msg_id, f); in __kmp_aux_affinity_initialize()
4425 depth = __kmp_affinity_create_proc_group_map(&address2os, &msg_id); in __kmp_aux_affinity_initialize()
4440 depth = __kmp_affinity_create_flat_map(&address2os, &msg_id); in __kmp_aux_affinity_initialize()
4446 KMP_ASSERT(address2os != NULL); in __kmp_aux_affinity_initialize()
4453 if (address2os == NULL) { in __kmp_aux_affinity_initialize()
4474 __kmp_apply_thread_places(&address2os, depth); in __kmp_aux_affinity_initialize()
4480 __kmp_create_masks(&maxIndex, &numUnique, address2os, __kmp_avail_proc); in __kmp_aux_affinity_initialize()
4488 __kmp_affinity_assign_child_nums(address2os, __kmp_avail_proc); in __kmp_aux_affinity_initialize()
4569 address2os, __kmp_avail_proc, depth - 1); in __kmp_aux_affinity_initialize()
4570 int ncores = __kmp_affinity_compute_ncores(address2os, __kmp_avail_proc, in __kmp_aux_affinity_initialize()
4573 address2os, __kmp_avail_proc, depth - 1, core_level); in __kmp_aux_affinity_initialize()
4592 int proc = address2os[i].second; in __kmp_aux_affinity_initialize()
4594 __kmp_affinity_find_core(address2os, i, depth - 1, core_level); in __kmp_aux_affinity_initialize()
4628 qsort(address2os, __kmp_avail_proc, sizeof(*address2os), in __kmp_aux_affinity_initialize()
4634 if ((!__kmp_affinity_dups) && (!address2os[i].first.leader)) { in __kmp_aux_affinity_initialize()
4637 unsigned osId = address2os[i].second; in __kmp_aux_affinity_initialize()
4655 machine_hierarchy.init(address2os, __kmp_avail_proc); in __kmp_aux_affinity_initialize()
4697 if (address2os != NULL) { in __kmp_affinity_uninitialize()
4698 __kmp_free(address2os); in __kmp_affinity_uninitialize()
4699 address2os = NULL; in __kmp_affinity_uninitialize()
5128 int osID = address2os[coreID * __kmp_nth_per_core + threadID].second; in __kmp_balanced_affinity()
5133 osID = address2os[coreID * __kmp_nth_per_core + i].second; in __kmp_balanced_affinity()
5150 address2os, __kmp_avail_proc, __kmp_aff_depth - 1); in __kmp_balanced_affinity()
5151 int ncores = __kmp_affinity_compute_ncores(address2os, __kmp_avail_proc, in __kmp_balanced_affinity()
5154 address2os, __kmp_avail_proc, __kmp_aff_depth - 1, core_level); in __kmp_balanced_affinity()
5160 int osID = address2os[tid].second; in __kmp_balanced_affinity()
5163 int core = __kmp_affinity_find_core(address2os, tid, in __kmp_balanced_affinity()
5166 int osID = address2os[i].second; in __kmp_balanced_affinity()
5167 if (__kmp_affinity_find_core(address2os, i, __kmp_aff_depth - 1, in __kmp_balanced_affinity()