Skip to content

Commit

Permalink
fix sperf
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenworsley committed May 15, 2024
1 parent 5743a44 commit 23413a9
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions benchmarks/bm_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def add_arguments(self) -> None:
)

@staticmethod
def csperf(args: argparse.Namespace, run_type: Literal["cperf", "sperf"]) -> None:
def csperf(args: argparse.Namespace, run_type: str) -> None:
_setup_common()

publish_dir = Path(args.publish_dir)
Expand Down Expand Up @@ -289,16 +289,6 @@ def csperf(args: argparse.Namespace, run_type: Literal["cperf", "sperf"]) -> Non
)


class CPerf(_CSPerf):
"""Class for parsing and running the 'cperf' argument."""

name = "cperf"
description = _CSPerf.description.format("CPerf")
epilog = _CSPerf.epilog.format("cperf")

@staticmethod
def func(args: argparse.Namespace) -> None:
_CSPerf.csperf(args, "cperf")


class SPerf(_CSPerf):
Expand All @@ -310,7 +300,7 @@ class SPerf(_CSPerf):

@staticmethod
def func(args: argparse.Namespace) -> None:
_CSPerf.csperf(args, "sperf")
_CSPerf.csperf(args, ".*Scalability.*")


class Custom(_SubParserGenerator):
Expand Down Expand Up @@ -345,7 +335,7 @@ def main():
)
subparsers = parser.add_subparsers(required=True)

for gen in (Branch, CPerf, SPerf, Custom):
for gen in (Branch, SPerf, Custom):
_ = gen(subparsers).subparser

parsed = parser.parse_args()
Expand Down

0 comments on commit 23413a9

Please sign in to comment.