Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pycodegen
pystencils
Commits
54942f7f
Commit
54942f7f
authored
Feb 18, 2021
by
Markus Holzer
Browse files
Fix flake8
parent
ab176f9a
Pipeline
#30361
passed with stage
in 32 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pystencils/cpu/vectorization.py
View file @
54942f7f
...
...
@@ -152,8 +152,7 @@ def vectorize_inner_loops_and_adapt_load_stores(ast_node, vector_width, assume_a
vector_int_width
=
ast_node
.
instruction_set
[
'intwidth'
]
vector_loop_counter
=
cast_func
((
loop_counter_symbol
,)
*
vector_int_width
,
VectorType
(
loop_counter_symbol
.
dtype
,
vector_int_width
))
+
\
cast_func
(
tuple
(
range
(
vector_int_width
)),
VectorType
(
loop_counter_symbol
.
dtype
,
vector_int_width
))
cast_func
(
tuple
(
range
(
vector_int_width
)),
VectorType
(
loop_counter_symbol
.
dtype
,
vector_int_width
))
fast_subs
(
loop_node
,
{
loop_counter_symbol
:
vector_loop_counter
},
skip
=
lambda
e
:
isinstance
(
e
,
ast
.
ResolvedFieldAccess
)
or
isinstance
(
e
,
vector_memory_access
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment