Skip to content
Snippets Groups Projects
Commit dc9b711b authored by Frederik Hennig's avatar Frederik Hennig
Browse files

fix sanity check for deprecated cpu_vectorize_info

parent a837cb73
No related branches found
No related tags found
1 merge request!460Fix data types in boundary handling. Fix deprecation checks.
Pipeline #77912 passed
......@@ -682,7 +682,7 @@ class CreateKernelConfig(ConfigBase):
if cpu_vectorize_info is not None:
_deprecated_option("cpu_vectorize_info", "cpu_optim.vectorize")
if "instruction_set" in cpu_vectorize_info:
if self.target != Target.GenericCPU:
if self.target is not None and self.target != Target.GenericCPU:
raise ValueError(
"Setting 'instruction_set' in the deprecated 'cpu_vectorize_info' option is only "
"valid if `target == Target.CPU`."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment