Skip to content

Commit a2784e5

Browse files
committed
hardwired: add a Backend info attr
Signed-off-by: Brice Goglin <[email protected]>
1 parent 74e32c1 commit a2784e5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hwloc/topology-hardwired.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright © 2015-2020 Inria. All rights reserved.
2+
* Copyright © 2015-2023 Inria. All rights reserved.
33
* See COPYING in top-level directory.
44
*/
55

@@ -73,6 +73,7 @@ int hwloc_look_hardwired_fujitsu_k(struct hwloc_topology *topology)
7373
topology->support.discovery->pu = 1;
7474
hwloc_setup_pu_level(topology, 8);
7575

76+
hwloc_obj_add_info(topology->levels[0][0], "Backend", "hardwired:K-computer");
7677
return 0;
7778
}
7879

@@ -142,6 +143,7 @@ int hwloc_look_hardwired_fujitsu_fx10(struct hwloc_topology *topology)
142143
topology->support.discovery->pu = 1;
143144
hwloc_setup_pu_level(topology, 16);
144145

146+
hwloc_obj_add_info(topology->levels[0][0], "Backend", "hardwired:FX10");
145147
return 0;
146148
}
147149

@@ -221,5 +223,6 @@ int hwloc_look_hardwired_fujitsu_fx100(struct hwloc_topology *topology)
221223
topology->support.discovery->pu = 1;
222224
hwloc_setup_pu_level(topology, 34);
223225

226+
hwloc_obj_add_info(topology->levels[0][0], "Backend", "hardwired:FX100");
224227
return 0;
225228
}

0 commit comments

Comments
 (0)