Skip to content

Commit

Permalink
When an invalid strategy name is given, the valid strategy names are …
Browse files Browse the repository at this point in the history
…listed in the error
  • Loading branch information
fjwillemsen committed Nov 3, 2023
1 parent 08fb58e commit 6e94e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel_tuner/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ def tune_kernel(
if strategy in strategy_map:
strategy = strategy_map[strategy]
else:
raise ValueError("Strategy %s not recognized" % strategy)
raise ValueError(f"Unkown strategy {strategy}, must be one of: {', '.join(list(strategy_map.keys()))}")

# make strategy_options into an Options object
if tuning_options.strategy_options:
Expand Down

0 comments on commit 6e94e01

Please sign in to comment.