Skip to content

Commit c7ea1ed

Browse files
committed
lstopo/graphics: fix the displaying of LevelZero non-HBM size
It was divided by 1048576, ie 16KiB instead of 16GiB. Signed-off-by: Brice Goglin <[email protected]>
1 parent ff4db1e commit c7ea1ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/lstopo/lstopo-draw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,7 @@ prepare_text(struct lstopo_output *loutput, hwloc_obj_t obj)
13261326
if (!valueMem)
13271327
valueMem = hwloc_obj_get_info_by_name(obj, "LevelZeroMemorySize");
13281328
if (valueMem) {
1329-
unsigned long long bytes = strtoull(valueMem, NULL, 10) / 1024;
1329+
unsigned long long bytes = strtoull(valueMem, NULL, 10) * 1024;
13301330
hwloc_memory_size_snprintf(lud->text[lud->ntext++].text, sizeof(lud->text[0].text), bytes, loutput->obj_snprintf_flags);
13311331
}
13321332
valueSl = hwloc_obj_get_info_by_name(obj, "LevelZeroNumSlices");

0 commit comments

Comments
 (0)