Ensure sort on rocprof input (#304)

Signed-off-by: colramos-amd <colramos@amd.com>


[ROCm/rocprofiler-compute commit: e538d3ea16]
Tento commit je obsažen v:
colramos-amd
2024-03-06 17:05:24 -06:00
rodič 4585750893
revize f2c8a35887
+3 -1
Zobrazit soubor
@@ -325,8 +325,10 @@ class OmniProfiler_Base:
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(