diff --git a/kernel_tuner/strategies/common.py b/kernel_tuner/strategies/common.py index 58a6f044..ceb77152 100644 --- a/kernel_tuner/strategies/common.py +++ b/kernel_tuner/strategies/common.py @@ -94,9 +94,9 @@ def __call__(self, x, check_restrictions=True): # else check if this is a legal (non-restricted) configuration if check_restrictions and self.searchspace.restrictions: - params_dict = dict(zip(self.searchspace.tune_params.keys(), params)) - legal = util.check_restrictions(self.searchspace.restrictions, params_dict, self.tuning_options.verbose) + legal = self.searchspace.is_param_config_valid(tuple(params)) if not legal: + params_dict = dict(zip(self.searchspace.tune_params.keys(), params)) result = params_dict result[self.tuning_options.objective] = util.InvalidConfig()