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

[tuner] Remove args.mode #100

Merged
merged 2 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
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
5 changes: 1 addition & 4 deletions tuning/libtuner.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,6 @@ def parse_arguments() -> argparse.Namespace:
parser = argparse.ArgumentParser(description="Autotune script")

# Required arguments
parser.add_argument(
"mode", choices=["default", "winograd"], help="Compilation mode"
)
parser.add_argument(
"input_file", type=Path, help="Path to the input benchmark file (.mlir)"
)
Expand Down Expand Up @@ -379,7 +376,7 @@ def parse_arguments() -> argparse.Namespace:


def setup_logging(args: argparse.Namespace, path_config: PathConfig):
log_file_name = f"autotune_{args.mode}_{args.input_file.stem}.log"
log_file_name = f"autotune_{args.input_file.stem}.log"
run_log_path = path_config.base_dir / log_file_name
path_config._set_run_log(run_log_path)

Expand Down
6 changes: 3 additions & 3 deletions tuning/punet_autotune.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
"""
Sample Usage:

python punet_autotune.py winograd 1286.mlir --lhs-dims=bmk --rhs-dims=bkn --tile-dims=*mnk --devices=hip://0,hip://1 --num-candidates=64
python punet_autotune.py 1286.mlir --lhs-dims=bmk --rhs-dims=bkn --tile-dims=*mnk --devices=hip://0,hip://1 --num-candidates=64


Recommended Trial Run:

python punet_autotune.py winograd 1286.mlir --num-candidates=1
python punet_autotune.py 1286.mlir --num-candidates=1


Dry Run Test (no gpu requried):

python punet_autotune.py winograd 1286.mlir --num-candidates=64 --num-model-candidates=10 --dry-run
python punet_autotune.py 1286.mlir --num-candidates=64 --num-model-candidates=10 --dry-run

"""

Expand Down
Loading