File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -684,6 +684,7 @@ def tune_kernel(
684
684
685
685
# call the strategy to execute the tuning process
686
686
tuning_options ["start_time" ] = perf_counter ()
687
+ tuning_options ["startup_time" ] = perf_counter () - start_overhead_time
687
688
results = strategy .tune (searchspace , runner , tuning_options )
688
689
env = runner .get_environment (tuning_options )
689
690
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ def check_stop_criterion(to):
194
194
"""Checks if max_fevals is reached or time limit is exceeded."""
195
195
if "max_fevals" in to and len (to .unique_results ) >= to .max_fevals :
196
196
raise StopCriterionReached ("max_fevals reached" )
197
- if "time_limit" in to and (((time .perf_counter () - to .start_time ) + (to .simulated_time * 1e-3 )) > to .time_limit ):
197
+ if "time_limit" in to and (((time .perf_counter () - to .start_time ) + (to .simulated_time * 1e-3 ) + to . startup_time ) > to .time_limit ):
198
198
raise StopCriterionReached ("time limit exceeded" )
199
199
200
200
You can’t perform that action at this time.
0 commit comments