Skip to content

Commit 149f169

Browse files
bugfix the bugfix
1 parent afe70c9 commit 149f169

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel_tuner/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@ def compile_restrictions(
11181118
return noncompiled_restrictions + compiled_restrictions
11191119

11201120
def check_matching_problem_size(cached_problem_size, problem_size):
1121-
if not all(np.array(cached_problem_size) == np.array(problem_size)):
1121+
if not (np.array(cached_problem_size) == np.array(problem_size)).all():
11221122
ValueError(f"Cannot load cache which contains results for different problem_size, cache: {cached_data['problem_size']}, requested: {kernel_options.problem_size}")
11231123

11241124
def process_cache(cache, kernel_options, tuning_options, runner):

0 commit comments

Comments
 (0)