We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dc9b63 commit 5c5ff1aCopy full SHA for 5c5ff1a
kernel_tuner/util.py
@@ -195,6 +195,8 @@ def check_stop_criterion(to):
195
if "max_fevals" in to and len(to.unique_results) >= to.max_fevals:
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.startup_time) > to.time_limit):
198
+ if to.startup_time > to.time_limit:
199
+ raise RuntimeError(f"Time budget of {to.time_limit} seconds was already exceeded during startup ({to.startup_time} seconds).")
200
raise StopCriterionReached("time limit exceeded")
201
202
0 commit comments