Skip to content

Commit d381011

Browse files
committed
added check on strategy_options
1 parent 123fba5 commit d381011

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel_tuner/strategies/brute_force.py

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
def tune(searchspace: Searchspace, runner, tuning_options):
1010

1111
if isinstance(runner, ParallelRunner):
12+
if tuning_options.strategy_options is None:
13+
tuning_options.strategy_options = {}
1214
tuning_options.strategy_options['check_and_retrieve'] = False
1315
cache_manager = CacheManager.remote(tuning_options.cache, tuning_options.cachefile)
1416
return runner.run(parameter_space=searchspace.sorted_list(), tuning_options=tuning_options, cache_manager=cache_manager)

0 commit comments

Comments
 (0)