Skip to content

Commit

Permalink
Add a checker for roofline.csv in --bottleneck-trace option
Browse files Browse the repository at this point in the history
Signed-off-by: coleramos425 <colramos@amd.com>
  • Loading branch information
coleramos425 committed Jun 19, 2024
1 parent a13b9e6 commit e4af11f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/utils/workload_characterization.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ def parse_omniperf(self):
perf_df = pd.read_csv(
os.path.join(self.input_dirs["omniperf"][0][0], "pmc_perf.csv")
)
# Verify that roofline.csv exists
if not os.path.exists(
os.path.abspath(
os.path.join(self.input_dirs["omniperf"][0][0], "roofline.csv")
)
):
console_error(
f"The Omniperf file {os.path.join(self.input_dirs['omniperf'][0][0], 'roofline.csv')} is required to use the --bottleneck-trace flag."
)
roofline_df = pd.read_csv(
os.path.join(self.input_dirs["omniperf"][0][0], "roofline.csv")
)
Expand Down

0 comments on commit e4af11f

Please sign in to comment.