Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions scoreboard/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
import yaml
import csv
from jinja2 import Environment, FileSystemLoader
import logging

logging.basicConfig(level=logging.INFO, format="%(levelname)s: %(message)s")
logger = logging.getLogger(__name__)

task_types = ["all", "mpi", "omp", "seq", "stl", "tbb"]

Expand Down Expand Up @@ -56,7 +60,7 @@
"mpi": "N/A",
}
else:
print(f"Warning: Performance stats CSV not found at {perf_stat_file_path}")
logger.warning("Performance stats CSV not found at %s", perf_stat_file_path)

rows = []
for dir in sorted(directories.keys()):
Expand Down Expand Up @@ -109,4 +113,4 @@
with open(output_file, "w") as file:
file.write(html_content)

print(f"HTML page generated at {output_file}")
logger.info("HTML page generated at %s", output_file)
Loading