Skip to content
Snippets Groups Projects
Commit efeb0e05 authored by Markus Holzer's avatar Markus Holzer
Browse files

Added conditional for non type

parent 0012c81b
No related branches found
No related tags found
1 merge request!226Fix field size
...@@ -375,9 +375,11 @@ def create_function_boilerplate_code(parameter_info, name, ast_node, insert_chec ...@@ -375,9 +375,11 @@ def create_function_boilerplate_code(parameter_info, name, ast_node, insert_chec
np_dtype = field.dtype.numpy_dtype np_dtype = field.dtype.numpy_dtype
item_size = np_dtype.itemsize item_size = np_dtype.itemsize
aligned = any([a.lhs.args[2] for a in ast_node.assignments aligned = False
if hasattr(a, 'lhs') and isinstance(a.lhs, cast_func) if ast_node.assignments:
and hasattr(a.lhs, 'dtype') and isinstance(a.lhs.dtype, VectorType)]) aligned = any([a.lhs.args[2] for a in ast_node.assignments
if hasattr(a, 'lhs') and isinstance(a.lhs, cast_func)
and hasattr(a.lhs, 'dtype') and isinstance(a.lhs.dtype, VectorType)])
if ast_node.instruction_set and aligned: if ast_node.instruction_set and aligned:
byte_width = ast_node.instruction_set['width'] * item_size byte_width = ast_node.instruction_set['width'] * item_size
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment