File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -818,7 +818,7 @@ void kmp_topology_t::canonicalize() {
818
818
// First try core, then thread, then package
819
819
kmp_hw_t gran_types[3 ] = {KMP_HW_CORE, KMP_HW_THREAD, KMP_HW_SOCKET};
820
820
for (auto g : gran_types) {
821
- if (__kmp_topology-> get_equivalent_type (g) != KMP_HW_UNKNOWN) {
821
+ if (get_equivalent_type (g) != KMP_HW_UNKNOWN) {
822
822
gran_type = g;
823
823
break ;
824
824
}
@@ -839,8 +839,8 @@ void kmp_topology_t::canonicalize() {
839
839
// processor groups that cover a socket, then the runtime must
840
840
// restrict the granularity down to the processor group level.
841
841
if (__kmp_num_proc_groups > 1 ) {
842
- int gran_depth = __kmp_topology-> get_level (gran_type);
843
- int proc_group_depth = __kmp_topology-> get_level (KMP_HW_PROC_GROUP);
842
+ int gran_depth = get_level (gran_type);
843
+ int proc_group_depth = get_level (KMP_HW_PROC_GROUP);
844
844
if (gran_depth >= 0 && proc_group_depth >= 0 &&
845
845
gran_depth < proc_group_depth) {
846
846
KMP_WARNING (AffGranTooCoarseProcGroup, " KMP_AFFINITY" ,
You can’t perform that action at this time.
0 commit comments