From 66fcfd3def65ecff5ecd5152d5fad0e6be388751 Mon Sep 17 00:00:00 2001 From: colramos-amd Date: Wed, 31 Jan 2024 18:31:27 -0600 Subject: [PATCH] General spell check and typo fixing Co-authored-by: Nick Curtis Signed-off-by: colramos-amd --- src/utils/file_io.py | 2 +- src/utils/parser.py | 4 ++-- src/utils/roofline_calc.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/utils/file_io.py b/src/utils/file_io.py index 47479eab80..ca1a5daff5 100644 --- a/src/utils/file_io.py +++ b/src/utils/file_io.py @@ -101,7 +101,7 @@ def create_df_kernel_top_stats( # NB: support ignoring the 1st n dispatched execution by '> n' # The better way may be parsing python slice string if ">" in filter_dispatch_ids[0]: - m = re.match("\> (\d+)", filter_dispatch_ids[0]) + m = re.match(r"\> (\d+)", filter_dispatch_ids[0]) df = df[df["Dispatch_ID"] > int(m.group(1))] else: df = df.loc[df["Dispatch_ID"].astype(str).isin(filter_dispatch_ids)] diff --git a/src/utils/parser.py b/src/utils/parser.py index 43e47b3431..7722d70cc5 100644 --- a/src/utils/parser.py +++ b/src/utils/parser.py @@ -784,7 +784,7 @@ def eval_metric(dfs, dfs_type, sys_info, soc_spec, raw_pmc_df, debug): print("~" * 40) except TypeError: print( - "skipping entry. Encounterd a missing counter" + "skipping entry. Encountered a missing counter" ) print(expr, " has been assigned to None") print(np.nan) @@ -794,7 +794,7 @@ def eval_metric(dfs, dfs_type, sys_info, soc_spec, raw_pmc_df, debug): == "'NoneType' object has no attribute 'get'" ): print( - "skipping entry. Encounterd a missing csv" + "skipping entry. Encountered a missing csv" ) print(np.nan) else: diff --git a/src/utils/roofline_calc.py b/src/utils/roofline_calc.py index 620621def9..a1cc8a9b0a 100644 --- a/src/utils/roofline_calc.py +++ b/src/utils/roofline_calc.py @@ -184,9 +184,9 @@ def calc_ceilings(roofline_parameters, dtype, benchmark_data): # ------------------------------------------------------------------------------------- # Overlay application performance # ------------------------------------------------------------------------------------- -# Calculate relevent metrics for ai calculation +# Calculate relevant metrics for ai calculation def calc_ai(sort_type, ret_df): - """Given counter data, caclulate arithmetic intensity for each kernel in the application. + """Given counter data, calculate arithmetic intensity for each kernel in the application. """ df = ret_df["pmc_perf"] # Sort by top kernels or top dispatches?