Skip to content

Commit

Permalink
lstopo/draw: fix the displaying of non-HBM L0 device memory
Browse files Browse the repository at this point in the history
Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed Oct 26, 2022
1 parent e135669 commit 4630002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/lstopo/lstopo-draw.c
Expand Up @@ -1328,7 +1328,7 @@ prepare_text(struct lstopo_output *loutput, hwloc_obj_t obj)
if (valueMem) {
unsigned long long mb = strtoull(valueMem, NULL, 10) / 1024;
snprintf(lud->text[lud->ntext++].text, sizeof(lud->text[0].text),
mb >= 10240 ? "%llu GB HBM" : "%llu MB",
mb >= 10240 ? "%llu GB" : "%llu MB",
mb >= 10240 ? mb/1024 : mb);
}
valueSl = hwloc_obj_get_info_by_name(obj, "LevelZeroNumSlices");
Expand Down

0 comments on commit 4630002

Please sign in to comment.