[PATCH 3/5] umr: Add command line support for "--gpu-metrics"
Luben Tuikov
luben.tuikov at amd.com
Sun Mar 27 10:42:12 UTC 2022
Add command line support for --gpu-metrics, to fall in line with the rest
of the command line arguments' format.
Cc: Tom StDenis <tom.stdenis at amd.com>
Cc: Jinzhou.Su <Jinzhou.Su at amd.com>
Signed-off-by: Luben Tuikov <luben.tuikov at amd.com>
---
src/app/main.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/app/main.c b/src/app/main.c
index 62ea2f42145f60..6cfbe09bea7b4d 100644
--- a/src/app/main.c
+++ b/src/app/main.c
@@ -861,7 +861,9 @@ int main(int argc, char **argv)
if (umr_print_pp_table(asic, NULL) != 0)
fprintf(stderr, "[ERROR]: can not print pp table info.\n");
}
- } else if (!strcmp(argv[i], "--gpu_metrics") || !strcmp(argv[i], "-gm")) {
+ } else if (!strcmp(argv[i], "--gpu-metrics") ||
+ !strcmp(argv[i], "--gpu_metrics") ||
+ !strcmp(argv[i], "-gm")) {
if (!asic)
asic = get_asic();
if (umr_print_gpu_metrics(asic) != 0)
--
2.35.1.607.gf01e51a7cf
More information about the amd-gfx
mailing list