mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
[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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user