From 35b07e041f62fb3fbaf344dea55ea62cb619127c Mon Sep 17 00:00:00 2001 From: Ben Richard <143630488+benrichard-amd@users.noreply.github.com> Date: Mon, 20 Oct 2025 16:36:55 -0400 Subject: [PATCH] [rocprof-compute] Run roofline test on GPU 0 by default (#1390) * rocprof-compute: Default roofline to GPU 0 Previously was running the roofline test on ALL GPUs but only selecting the first entry in the roofline.csv. So even in default ALL case, GPU 0 was selected. * Update CHANGELOG.MD * Use better wording in changelog entry --- projects/rocprofiler-compute/CHANGELOG.md | 2 ++ projects/rocprofiler-compute/src/argparser.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/rocprofiler-compute/CHANGELOG.md b/projects/rocprofiler-compute/CHANGELOG.md index cdd362d2cb..26afbd4cda 100644 --- a/projects/rocprofiler-compute/CHANGELOG.md +++ b/projects/rocprofiler-compute/CHANGELOG.md @@ -146,6 +146,8 @@ Full documentation for ROCm Compute Profiler is available at [https://rocm.docs. * Default rocprof interface changed from rocprofv3 to rocprofiler-sdk * Use ROCPROF=rocprofv3 to use rocprofv3 interface +* Roofline analysis now runs on GPU 0 by default instead of all GPUs. + ### Removed * Usage of `rocm-smi` in favor of `amd-smi`. diff --git a/projects/rocprofiler-compute/src/argparser.py b/projects/rocprofiler-compute/src/argparser.py index e625b04d02..e0fdf367a1 100644 --- a/projects/rocprofiler-compute/src/argparser.py +++ b/projects/rocprofiler-compute/src/argparser.py @@ -413,9 +413,9 @@ Examples: "--device", metavar="", required=False, - default=-1, + default=0, type=int, - help="\t\t\tTarget GPU device ID. (DEFAULT: ALL)", + help="\t\t\tTarget GPU device ID. (DEFAULT: 0)", ) roofline_group.add_argument( "--kernel-names",