Skip to content

Commit

Permalink
Ensure sort on rocprof input (#304)
Browse files Browse the repository at this point in the history
Signed-off-by: colramos-amd <colramos@amd.com>
  • Loading branch information
coleramos425 committed Mar 6, 2024
1 parent f4511e7 commit e538d3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/omniperf_profile/profiler_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e538d3e

Please sign in to comment.