Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make gemmbench flags more uniform #17

Merged
merged 1 commit into from
Oct 8, 2024
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: 4 additions & 4 deletions gemmbench/gemm_bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import logging
import itertools
from pathlib import Path
import csv
import argparse
import sys
from utils import *
Expand Down Expand Up @@ -47,15 +46,16 @@ def compile_gemm(tag, config, kernel_dir, vmfb_dir, target, extra_compiler_args,
help="Extra command line arguments passed to the IREE compiler. The flags need to be specified without the `--` or `-`"
)
parser.add_argument(
"--dtypes", action='append', help="List of data types to benchmark. Defaults to all supported types."
"--dtypes", nargs='+', default=[], help="List of data types to benchmark. Defaults to all supported types."
)
parser.add_argument(
"--variants",
action='append',
nargs='+',
default=[],
help="List of matmul variants to benchmark. Default to all variants: NN, NT, TN, and TT."
)
parser.add_argument(
"--tag-regex",
"--tag_regex",
help="Regular expression for allowed benchmark tags. Defaults to all tags allowed.",
default=".*"
)
Expand Down
Loading