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
Model registry
Operate
Environments
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
Stephan Seitz
pystencils
Commits
3d8dd38f
"README.md" did not exist on "2d925329a8a53ae7a77a402a379dc7261a60a793"
Commit
3d8dd38f
authored
6 years ago
by
Nils Kohl
Committed by
Martin Bauer
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Relaxed assertion in vectorization
parent
e012de4b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pystencils/cpu/vectorization.py
+4
-2
4 additions, 2 deletions
pystencils/cpu/vectorization.py
with
4 additions
and
2 deletions
pystencils/cpu/vectorization.py
+
4
−
2
View file @
3d8dd38f
...
@@ -92,8 +92,10 @@ def vectorize_inner_loops_and_adapt_load_stores(ast_node, vector_width, assume_a
...
@@ -92,8 +92,10 @@ def vectorize_inner_loops_and_adapt_load_stores(ast_node, vector_width, assume_a
loop_node
.
stop
=
new_stop
loop_node
.
stop
=
new_stop
else
:
else
:
cutting_point
=
modulo_floor
(
loop_range
,
vector_width
)
+
loop_node
.
start
cutting_point
=
modulo_floor
(
loop_range
,
vector_width
)
+
loop_node
.
start
loop_nodes
=
cut_loop
(
loop_node
,
[
cutting_point
])
loop_nodes
=
[
l
for
l
in
cut_loop
(
loop_node
,
[
cutting_point
]).
args
if
isinstance
(
l
,
ast
.
LoopOverCoordinate
)]
assert
len
(
loop_nodes
)
in
(
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
:
continue
loop_node
=
loop_nodes
[
0
]
loop_node
=
loop_nodes
[
0
]
# Find all array accesses (indexed) that depend on the loop counter as offset
# Find all array accesses (indexed) that depend on the loop counter as offset
...
...
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