From e538d3ea16e8a99b537ea6b0f1e0bf1aad022655 Mon Sep 17 00:00:00 2001 From: colramos-amd Date: Wed, 6 Mar 2024 17:05:24 -0600 Subject: [PATCH] Ensure sort on rocprof input (#304) Signed-off-by: colramos-amd --- src/omniperf_profile/profiler_base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/omniperf_profile/profiler_base.py b/src/omniperf_profile/profiler_base.py index 447cb49b6..dfe9e7298 100644 --- a/src/omniperf_profile/profiler_base.py +++ b/src/omniperf_profile/profiler_base.py @@ -325,8 +325,10 @@ def run_profiling(self, version: str, prog: str): else: logging.info("KernelName verbose: " + str(self.__args.kernel_verbose)) + input_files = glob.glob(self.get_args().path + "/perfmon/*.txt") + input_files.sort() # Run profiling on each input file - for fname in glob.glob(self.get_args().path + "/perfmon/*.txt"): + for fname in input_files: # Kernel filtering (in-place replacement) if not self.__args.kernel == None: success, output = capture_subprocess_output(