diff --git a/src/tools/info/sys_info.c b/src/tools/info/sys_info.c index 6de08efe774..5fc0481a12a 100644 --- a/src/tools/info/sys_info.c +++ b/src/tools/info/sys_info.c @@ -1,5 +1,5 @@ /** -* Copyright (c) NVIDIA CORPORATION & AFFILIATES, 2001-2015. ALL RIGHTS RESERVED. +* Copyright (c) NVIDIA CORPORATION & AFFILIATES, 2001-2026. ALL RIGHTS RESERVED. * Copyright (C) Shanghai Zhaoxin Semiconductor Co., Ltd. 2020. ALL RIGHTS RESERVED. * Copyright (C) Tactical Computing Labs, LLC. 2022. ALL RIGHTS RESERVED. * Copyright (C) Advanced Micro Devices, Inc. 2024. ALL RIGHTS RESERVED. @@ -13,7 +13,8 @@ #include "ucx_info.h" -#include +#include +#include #include #include #include @@ -61,129 +62,147 @@ static double measure_memcpy_bandwidth(size_t size) return result; } -static void print_repeat_char(int ch, int count) +/* Add an empty row used as vertical padding around content rows */ +static void print_sys_topo_add_padding(ucs_table_t *table) { - int i; + ucs_table_row_h row; + unsigned i; - for (i = 0; i < count; ++i) { - putchar(ch); + ucs_table_add_row(table, &row); + + for (i = 0; i < table->config.n_cols; ++i) { + ucs_table_row_add_cell_empty(table, row, 1); } } -static void print_row_separator(int column_width, int first_column_width, - int num_columns, int fill_char, - int separator_char) +/* Add a header row of the shape "