Skip to content

Commit 3072d16

Browse files
committed
xml/import: support a possible future Cluster type
No reason to only support Intel's Tile and Module when Cluster is already used for ARM (and Linux/x86 but mostly ignored there). Signed-off-by: Brice Goglin <[email protected]>
1 parent 64c809f commit 3072d16

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hwloc/topology-xml.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,10 @@ hwloc__xml_import_object(hwloc_topology_t topology,
694694
/* deal with possible future type */
695695
obj->type = HWLOC_OBJ_GROUP;
696696
obj->attr->group.kind = HWLOC_GROUP_KIND_INTEL_MODULE;
697+
} else if (!strcasecmp(attrvalue, "Cluster")) {
698+
/* deal with possible future type */
699+
obj->type = HWLOC_OBJ_GROUP;
700+
obj->attr->group.kind = HWLOC_GROUP_KIND_LINUX_CLUSTER;
697701
} else if (!strcasecmp(attrvalue, "MemCache")) {
698702
/* ignore possible future type */
699703
obj->type = _HWLOC_OBJ_FUTURE;

0 commit comments

Comments
 (0)