Skip to content

Commit

Permalink
Polybench: allow passing dataset size
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK committed Sep 27, 2024
1 parent 9efdcb4 commit 3a15a04
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mlonmcu/models/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1697,6 +1697,12 @@ def get_platform_config(self, platform):


class PolybenchFrontend(SimpleFrontend):

DEFAULTS = {
**Frontend.DEFAULTS,
"dataset": "large", # mini/small/medium/large/extralarge
}

REQUIRED = {"polybench.src_dir"}

def __init__(self, features=None, config=None):
Expand Down Expand Up @@ -1769,6 +1775,7 @@ def get_platform_defs(self, platform):
ret = {}
if platform == "mlif":
ret["POLYBENCH_DIR"] = Path(self.config["polybench.src_dir"])
ret["POLYBENCH_DATASET"] = self.config["dataset"].upper() + "_DATASET"
return ret

def get_platform_config(self, platform):
Expand Down

0 comments on commit 3a15a04

Please sign in to comment.