Skip to content

Commit 0c40029

Browse files
committed
xml: remove the nbnumanode import temporary data
Unneeded now that there's always NUMA nodes in the input topology (v2) Signed-off-by: Brice Goglin <[email protected]>
1 parent 88fa705 commit 0c40029

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

hwloc/topology-xml.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,6 @@ hwloc__xml_import_object(hwloc_topology_t topology,
818818
state->global->msgprefix, obj->os_index);
819819
goto error_with_object;
820820
}
821-
data->nbnumanodes++;
822821
}
823822

824823
if (!hwloc_filter_check_keep_object(topology, obj)) {
@@ -1708,7 +1707,6 @@ hwloc_look_xml(struct hwloc_backend *backend, struct hwloc_disc_status *dstatus)
17081707

17091708
hwloc_localeswitch_init();
17101709

1711-
data->nbnumanodes = 0;
17121710
data->need_cuda_backend_info = 0;
17131711
data->need_nvml_backend_info = 0;
17141712
data->need_rsmi_backend_info = 0;
@@ -1868,11 +1866,9 @@ hwloc_look_xml(struct hwloc_backend *backend, struct hwloc_disc_status *dstatus)
18681866
if (!(topology->flags & HWLOC_TOPOLOGY_FLAG_IMPORT_SUPPORT)) {
18691867
topology->support.discovery->pu = 1;
18701868
topology->support.discovery->disallowed_pu = 1;
1871-
if (data->nbnumanodes) {
1872-
topology->support.discovery->numa = 1;
1873-
topology->support.discovery->numa_memory = 1; // FIXME
1874-
topology->support.discovery->disallowed_numa = 1;
1875-
}
1869+
topology->support.discovery->numa = 1;
1870+
topology->support.discovery->numa_memory = 1; // FIXME
1871+
topology->support.discovery->disallowed_numa = 1;
18761872
}
18771873

18781874
if (data->look_done)

include/private/xml.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ struct hwloc_xml_backend_data_s {
4444
char * msgprefix;
4545
void *data; /* libxml2 doc, or nolibxml buffer */
4646
unsigned version_major, version_minor;
47-
unsigned nbnumanodes;
4847
unsigned char need_cuda_backend_info, need_nvml_backend_info, need_rsmi_backend_info, need_levelzero_backend_info, need_opencl_backend_info, need_gl_backend_info;
4948
};
5049

0 commit comments

Comments
 (0)