[OpenMP] Sort topology after adding processor group layer. (#83943)

Various behavior around creating affinity masks and detecting uniform
topology depends on the topology being sorted.

resort topology after adding processor group layer to ensure that the
updated topology reflects the newly added processor group info.

Observed that the topology was not sorted correctly on high core count
AMD Epyc Genoa (2 sockets, 96 cores, 2 threads) using NUMA (NPS 2+).
This commit is contained in:
MessyHack
2024-03-13 14:22:23 -07:00
committed by GitHub
parent b49d741c0c
commit ea848d0a6d

View File

@@ -327,6 +327,9 @@ void kmp_topology_t::_insert_windows_proc_groups() {
KMP_CPU_FREE(mask);
_insert_layer(KMP_HW_PROC_GROUP, ids);
__kmp_free(ids);
// sort topology after adding proc groups
__kmp_topology->sort_ids();
}
#endif