Lines Matching defs:hw_thread

408         kmp_hw_thread_t &hw_thread = hw_threads[idx];
410 hw_thread.ids[d] = hw_thread.ids[d + 1];
463 kmp_hw_thread_t &hw_thread = hw_threads[i];
465 int id = hw_thread.ids[layer];
480 if (hw_thread.attrs.is_core_eff_valid() &&
481 hw_thread.attrs.core_eff >= num_core_efficiencies) {
484 num_core_efficiencies = hw_thread.attrs.core_eff + 1;
486 if (hw_thread.attrs.is_core_type_valid()) {
489 if (hw_thread.attrs.get_core_type() == core_types[j]) {
496 core_types[num_core_types++] = hw_thread.attrs.get_core_type();
504 previous_id[layer] = hw_thread.ids[layer];
527 kmp_hw_thread_t &hw_thread = hw_threads[i];
528 if (!find_all && hw_thread.ids[above_level] != previous_id[above_level]) {
531 current = hw_thread.attrs.contains(attr);
534 if (hw_thread.ids[level] != previous_id[level]) {
535 if (hw_thread.attrs.contains(attr))
542 previous_id[level] = hw_thread.ids[level];
567 kmp_hw_thread_t &hw_thread = hw_threads[i];
570 if (hw_thread.ids[j] != previous_id[j]) {
580 previous_id[j] = hw_thread.ids[j];
584 hw_thread.sub_ids[j] = sub_id[j];
1277 kmp_hw_thread_t &hw_thread = hw_threads[i];
1282 if (hw_thread.sub_ids[level] != prev_sub_ids[level]) {
1290 core_eff_sub_ids[get_core_eff_index(hw_thread)]++;
1292 core_type_sub_ids[get_core_type_index(hw_thread)]++;
1296 core_eff_sub_ids[get_core_eff_index(hw_thread)] = 0;
1298 core_type_sub_ids[get_core_type_index(hw_thread)] = 0;
1305 prev_sub_ids[level] = hw_thread.sub_ids[level];
1322 kmp_hw_core_type_t core_type = hw_thread.attrs.get_core_type();
1323 int core_eff = hw_thread.attrs.get_core_eff();
1341 sub_id = core_type_sub_ids[get_core_type_index(hw_thread)];
1343 sub_id = core_eff_sub_ids[get_core_eff_index(hw_thread)];
1356 sub_id = hw_thread.sub_ids[level];
1366 KMP_CPU_CLR(hw_thread.os_id, filtered_mask);
1902 kmp_hw_thread_t &hw_thread = __kmp_topology->at(hw_thread_index);
1904 hw_thread.clear();
1905 hw_thread.ids[index] = pu->logical_index;
1906 hw_thread.os_id = pu->os_index;
1912 if (hwloc_bitmap_isset(cpukinds[i].mask, hw_thread.os_id)) {
1918 hw_thread.attrs.set_core_type(cpukinds[cpukind_index].core_type);
1919 hw_thread.attrs.set_core_eff(cpukinds[cpukind_index].efficiency);
1943 hw_thread.ids[index] = memory->logical_index;
1944 hw_thread.ids[index + 1] = sub_id;
1956 hw_thread.ids[index] = obj->logical_index;
1957 hw_thread.ids[index + 1] = sub_id;
2018 kmp_hw_thread_t &hw_thread = __kmp_topology->at(avail_ct);
2019 hw_thread.clear();
2020 hw_thread.os_id = i;
2021 hw_thread.ids[0] = i;
2022 hw_thread.ids[1] = 0;
2023 hw_thread.ids[2] = 0;
2066 kmp_hw_thread_t &hw_thread = __kmp_topology->at(avail_ct++);
2067 hw_thread.clear();
2068 hw_thread.os_id = i;
2069 hw_thread.ids[0] = i / BITS_PER_GROUP;
2070 hw_thread.ids[1] = hw_thread.ids[2] = i % BITS_PER_GROUP;
2473 kmp_hw_thread_t &hw_thread = __kmp_topology->at(i);
2474 hw_thread.clear();
2477 hw_thread.ids[idx++] = threadInfo[i].pkgId;
2480 hw_thread.ids[idx++] = threadInfo[i].coreId;
2483 hw_thread.ids[idx++] = threadInfo[i].threadId;
2485 hw_thread.os_id = os;
2776 kmp_hw_thread_t &hw_thread = __kmp_topology->at(hw_thread_index);
2783 hw_thread.clear();
2784 hw_thread.os_id = proc;
2787 hw_thread.ids[idx] = apic_id & my_levels[j].mask;
2789 hw_thread.ids[idx] >>= my_levels[j - 1].mask_width;
2798 hw_thread.attrs.set_core_type(type);
2799 hw_thread.attrs.set_core_eff(efficiency);
3571 kmp_hw_thread_t &hw_thread = __kmp_topology->at(i);
3572 hw_thread.clear();
3573 hw_thread.os_id = os;
3581 hw_thread.ids[pkgLevel] = threadInfo[i][src_index];
3583 hw_thread.ids[coreLevel] = threadInfo[i][src_index];
3585 hw_thread.ids[threadLevel] = threadInfo[i][src_index];
4269 const kmp_hw_thread_t &hw_thread = __kmp_topology->at(i);
4271 if (hw_thread.ids[j] > 0) {
4337 const kmp_hw_thread_t &hw_thread = __kmp_topology->at(osid_idx);
4340 int id = hw_thread.sub_ids[level];
4354 attrs.core_type = hw_thread.attrs.get_core_type();
4355 attrs.core_eff = hw_thread.attrs.get_core_eff();
4359 if (attrs.core_type != hw_thread.attrs.get_core_type())
4361 if (attrs.core_eff != hw_thread.attrs.get_core_eff())
4409 for (int hw_thread = 0; hw_thread < num_hw_threads; ++hw_thread) {
4410 int os_id = __kmp_topology->at(hw_thread).os_id;
4412 __kmp_osid_to_hwthread_map[os_id] = hw_thread;