code formatting updates
Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
This commit is contained in:
committed by
Karl W. Schulz
parent
4bcbc73080
commit
79b877d679
@@ -25,7 +25,7 @@
|
||||
import os
|
||||
import sys
|
||||
import logging
|
||||
import glob
|
||||
import glob
|
||||
import re
|
||||
import subprocess
|
||||
import pandas as pd
|
||||
@@ -34,6 +34,7 @@ from utils.utils import error
|
||||
|
||||
cache = dict()
|
||||
|
||||
|
||||
# Note: shortener is now dependent on a rocprof install with llvm
|
||||
def kernel_name_shortener(workload_dir, level):
|
||||
def shorten_file(df, level):
|
||||
@@ -134,6 +135,8 @@ def kernel_name_shortener(workload_dir, level):
|
||||
modified_df = shorten_file(orig_df, level)
|
||||
modified_df.to_csv(fpath, index=False)
|
||||
except pd.errors.EmptyDataError:
|
||||
logging.debug("[profiling] Skipping shortening on empty csv: %s" % str(fpath))
|
||||
logging.debug(
|
||||
"[profiling] Skipping shortening on empty csv: %s" % str(fpath)
|
||||
)
|
||||
|
||||
logging.info("[profiling] Kernel_Name shortening complete.")
|
||||
logging.info("[profiling] Kernel_Name shortening complete.")
|
||||
|
||||
Reference in New Issue
Block a user