From 6391b3ca766a255526f37904e509351680b4eb31 Mon Sep 17 00:00:00 2001 From: xuchen-amd Date: Mon, 10 Feb 2025 16:11:03 -0500 Subject: [PATCH] Change profiler mode trace options, the different trace modes (kernel, kokkos (marker), and hip) are now exclusive of each other based on rocprofv3 updates. (#561) --- src/rocprof_compute_profile/profiler_rocprof_v3.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rocprof_compute_profile/profiler_rocprof_v3.py b/src/rocprof_compute_profile/profiler_rocprof_v3.py index b81e424537..b257d75ae9 100644 --- a/src/rocprof_compute_profile/profiler_rocprof_v3.py +++ b/src/rocprof_compute_profile/profiler_rocprof_v3.py @@ -48,10 +48,10 @@ class rocprof_v3_profiler(RocProfCompute_Base): if self.get_args().format_rocprof_output == "csv": rocprof_out_format = "csv" - if self.get_args().hip_trace: - trace_option += " " + "--hip-trace" if self.get_args().kokkos_trace: - trace_option += " " + "--kokkos-trace" + trace_option = "--kokkos-trace" + if self.get_args().hip_trace: + trace_option = "--hip-trace" args = [ "-E",