code formatting updates
Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
[ROCm/rocprofiler-compute commit: 79b877d679]
This commit is contained in:
کامیت شده توسط
Karl W. Schulz
والد
abdaee0a2d
کامیت
4bfcf9b8a8
@@ -201,9 +201,9 @@ def show_all(args, runs, archConfigs, output):
|
||||
)
|
||||
|
||||
# Only show top N kernels (as specified in --max-kernel-num) in "Top Stats" section
|
||||
if(
|
||||
type == "raw_csv_table"
|
||||
and (table_config["source"] == "pmc_kernel_top.csv" or table_config["source"] == "pmc_dispatch_info.csv")
|
||||
if type == "raw_csv_table" and (
|
||||
table_config["source"] == "pmc_kernel_top.csv"
|
||||
or table_config["source"] == "pmc_dispatch_info.csv"
|
||||
):
|
||||
df = df.head(args.max_stat_num)
|
||||
# NB:
|
||||
@@ -251,7 +251,9 @@ def show_kernel_stats(args, runs, archConfigs, output):
|
||||
# sorted when load_table_data.
|
||||
if table_config["id"] == 1:
|
||||
print("\n" + "-" * 80, file=output)
|
||||
print("Detected Kernels (sorted decending by duration)", file=output)
|
||||
print(
|
||||
"Detected Kernels (sorted decending by duration)", file=output
|
||||
)
|
||||
df = pd.concat([df, single_df["Kernel_Name"]], axis=1)
|
||||
|
||||
if table_config["id"] == 2:
|
||||
@@ -268,4 +270,3 @@ def show_kernel_stats(args, runs, archConfigs, output):
|
||||
),
|
||||
file=output,
|
||||
)
|
||||
|
||||
|
||||
مرجع در شماره جدید
Block a user