Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hyteg
pystencils
Commits
5d9f76d6
Commit
5d9f76d6
authored
1 year ago
by
Nils Kohl
Browse files
Options
Downloads
Patches
Plain Diff
Vectorizer did not seem to properly handle some loops that are smaller than the vector width.
parent
5f3be7b3
No related branches found
No related tags found
No related merge requests found
Pipeline
#66501
failed
1 year ago
Stage: pretest
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pystencils/cpu/vectorization.py
+2
-0
2 additions, 0 deletions
pystencils/cpu/vectorization.py
with
2 additions
and
0 deletions
pystencils/cpu/vectorization.py
+
2
−
0
View file @
5d9f76d6
...
@@ -172,6 +172,8 @@ def vectorize_inner_loops_and_adapt_load_stores(ast_node, assume_aligned, nontem
...
@@ -172,6 +172,8 @@ def vectorize_inner_loops_and_adapt_load_stores(ast_node, assume_aligned, nontem
assert
len
(
loop_nodes
)
in
(
0
,
1
,
2
)
# 2 for main and tail loop, 1 if loop range divisible by vector width
assert
len
(
loop_nodes
)
in
(
0
,
1
,
2
)
# 2 for main and tail loop, 1 if loop range divisible by vector width
if
len
(
loop_nodes
)
==
0
:
if
len
(
loop_nodes
)
==
0
:
continue
continue
if
len
(
loop_nodes
)
==
1
and
loop_nodes
[
0
].
stop
-
loop_nodes
[
0
].
start
<
vector_width
:
continue
for
loop
in
loop_nodes
:
for
loop
in
loop_nodes
:
loop
.
parent
=
loop_node
.
parent
loop
.
parent
=
loop_node
.
parent
loop_node
=
loop_nodes
[
0
]
loop_node
=
loop_nodes
[
0
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment