Add benchmarks directory and add script to run benchmarks in it.

This commit is contained in:
Jonathan Woodruff
2025-03-20 16:59:25 +00:00
parent 5331162e3c
commit 824b575dc5
5 changed files with 407 additions and 7 deletions

View File

@@ -25,6 +25,7 @@ help:
@echo ''
@echo ' make test Runs simulation executable on rv32ui-p-add or rv64ui-p-add'
@echo ' make isa_tests Runs simulation executable on all relevant standard RISC-V ISA tests'
@echo ' make benchmarks Runs simulation executable on a set of benchmarks'
@echo ''
@echo ' make clean Remove intermediate build-files unnecessary for execution'
@echo ' make full_clean Restore to pristine state (pre-building anything)'
@@ -54,6 +55,7 @@ BSC_COMPILATION_FLAGS += \
-D Near_Mem_Caches \
-D FABRIC64 \
-D BLUESIM \
-D RVFI \
-D PERFORMANCE_MONITORING \
-keep-fires -aggressive-conditions -no-warn-action-shadowing -check-assert \
-suppress-warnings G0020 -steps-max-intervals 10000000 \
@@ -96,6 +98,16 @@ isa_tests:
$(REPO)/Tests/Run_regression.py ./exe_HW_sim $(REPO) ./Logs $(ARCH)
@echo "Finished running regressions; saved logs in Logs/"
# ================================================================
# Benchmarks
.PHONY: benchmarks
benchmarks:
@echo "Running benchmarks; saving logs in Logs/"
$(REPO)/Tests/Run_benchmarks.py ./exe_HW_sim $(REPO) ./Logs
@echo "Finished running benchmarks"
$(REPO)/Tests/benchmarks/report_log.sh Logs/*.bin.log
# ================================================================
# Generate Bluespec CHERI tag controller source file
CAPSIZE = 128