Improve kokkos trace handling. (#573)
* Improve kokkos trace is handling.
* Fix formatting.
* Syntax fix and adding comments.
[ROCm/rocprofiler-compute commit: 10e1d57bfb]
Этот коммит содержится в:
@@ -77,6 +77,26 @@ class RocProfCompute_Base:
|
||||
out = self.__args.path + "/pmc_perf.csv"
|
||||
files = glob.glob(self.__args.path + "/" + "pmc_perf_*.csv")
|
||||
files.extend(glob.glob(self.__args.path + "/" + "SQ_*.csv"))
|
||||
|
||||
if self.get_args().hip_trace:
|
||||
# remove hip api trace ouputs from this list
|
||||
files = [
|
||||
f
|
||||
for f in files
|
||||
if not re.compile(r"^.*_hip_api_trace\.csv$").match(
|
||||
os.path.basename(f)
|
||||
)
|
||||
]
|
||||
|
||||
if self.get_args().kokkos_trace:
|
||||
# remove marker api trace ouputs from this list
|
||||
files = [
|
||||
f
|
||||
for f in files
|
||||
if not re.compile(r"^.*_marker_api_trace\.csv$").match(
|
||||
os.path.basename(f)
|
||||
)
|
||||
]
|
||||
elif type(self.__args.path) == list:
|
||||
files = self.__args.path
|
||||
else:
|
||||
|
||||
Ссылка в новой задаче
Block a user