• Home
  • Raw
  • Download

Lines Matching refs:nApics

1194   unsigned nApics = 0;  in __kmp_affinity_create_apicid_map()  local
1200 KMP_DEBUG_ASSERT((int)nApics < __kmp_avail_proc); in __kmp_affinity_create_apicid_map()
1203 threadInfo[nApics].osId = i; in __kmp_affinity_create_apicid_map()
1214 threadInfo[nApics].apicId = (buf.ebx >> 24) & 0xff; in __kmp_affinity_create_apicid_map()
1215 threadInfo[nApics].maxThreadsPerPkg = (buf.ebx >> 16) & 0xff; in __kmp_affinity_create_apicid_map()
1216 if (threadInfo[nApics].maxThreadsPerPkg == 0) { in __kmp_affinity_create_apicid_map()
1217 threadInfo[nApics].maxThreadsPerPkg = 1; in __kmp_affinity_create_apicid_map()
1229 threadInfo[nApics].maxCoresPerPkg = ((buf.eax >> 26) & 0x3f) + 1; in __kmp_affinity_create_apicid_map()
1231 threadInfo[nApics].maxCoresPerPkg = 1; in __kmp_affinity_create_apicid_map()
1235 int widthCT = __kmp_cpuid_mask_width(threadInfo[nApics].maxThreadsPerPkg); in __kmp_affinity_create_apicid_map()
1236 threadInfo[nApics].pkgId = threadInfo[nApics].apicId >> widthCT; in __kmp_affinity_create_apicid_map()
1238 int widthC = __kmp_cpuid_mask_width(threadInfo[nApics].maxCoresPerPkg); in __kmp_affinity_create_apicid_map()
1252 threadInfo[nApics].coreId = (threadInfo[nApics].apicId >> widthT) & maskC; in __kmp_affinity_create_apicid_map()
1255 threadInfo[nApics].threadId = threadInfo[nApics].apicId & maskT; in __kmp_affinity_create_apicid_map()
1257 nApics++; in __kmp_affinity_create_apicid_map()
1271 KMP_ASSERT(nApics > 0); in __kmp_affinity_create_apicid_map()
1272 if (nApics == 1) { in __kmp_affinity_create_apicid_map()
1316 qsort(threadInfo, nApics, sizeof(*threadInfo), in __kmp_affinity_create_apicid_map()
1348 for (i = 1; i < nApics; i++) { in __kmp_affinity_create_apicid_map()
1428 KMP_DEBUG_ASSERT(nApics == (unsigned)__kmp_avail_proc); in __kmp_affinity_create_apicid_map()
1430 for (i = 0; i < nApics; ++i) { in __kmp_affinity_create_apicid_map()
1449 *address2os = (AddrUnsPair *)__kmp_allocate(sizeof(AddrUnsPair) * nApics); in __kmp_affinity_create_apicid_map()
1451 for (i = 0; i < nApics; ++i) { in __kmp_affinity_create_apicid_map()
1484 __kmp_affinity_print_topology(*address2os, nApics, depth, pkgLevel, in __kmp_affinity_create_apicid_map()
1640 int nApics = 0; in __kmp_affinity_create_x2apicid_map() local
1646 KMP_DEBUG_ASSERT(nApics < __kmp_avail_proc); in __kmp_affinity_create_x2apicid_map()
1678 retval[nApics] = AddrUnsPair(addr, proc); in __kmp_affinity_create_x2apicid_map()
1679 nApics++; in __kmp_affinity_create_x2apicid_map()
1687 KMP_ASSERT(nApics > 0); in __kmp_affinity_create_x2apicid_map()
1688 if (nApics == 1) { in __kmp_affinity_create_x2apicid_map()
1732 qsort(retval, nApics, sizeof(*retval), __kmp_affinity_cmp_Address_labels); in __kmp_affinity_create_x2apicid_map()
1750 for (proc = 1; (int)proc < nApics; proc++) { in __kmp_affinity_create_x2apicid_map()
1845 KMP_DEBUG_ASSERT(nApics == __kmp_avail_proc); in __kmp_affinity_create_x2apicid_map()
1847 for (proc = 0; (int)proc < nApics; ++proc) { in __kmp_affinity_create_x2apicid_map()
1874 (AddrUnsPair *)__kmp_allocate(sizeof(AddrUnsPair) * nApics); in __kmp_affinity_create_x2apicid_map()
1875 for (proc = 0; (int)proc < nApics; proc++) { in __kmp_affinity_create_x2apicid_map()
1897 for (proc = 0; (int)proc < nApics; proc++) { in __kmp_affinity_create_x2apicid_map()
1928 __kmp_affinity_print_topology(retval, nApics, depth, pkgLevel, coreLevel, in __kmp_affinity_create_x2apicid_map()