Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-codegen
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Christian Heinigk
dune-codegen
Commits
9e9392e1
Commit
9e9392e1
authored
6 years ago
by
Marcel Koch
Browse files
Options
Downloads
Patches
Plain Diff
find suitable vcl size
parent
406d2502
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
python/dune/codegen/blockstructured/vectorization.py
+6
-2
6 additions, 2 deletions
python/dune/codegen/blockstructured/vectorization.py
with
6 additions
and
2 deletions
python/dune/codegen/blockstructured/vectorization.py
+
6
−
2
View file @
9e9392e1
...
@@ -483,7 +483,11 @@ def vectorize_micro_elements(knl):
...
@@ -483,7 +483,11 @@ def vectorize_micro_elements(knl):
outer_iname
=
vec_iname
+
'
_outer
'
outer_iname
=
vec_iname
+
'
_outer
'
tail_size
=
iname_bound
%
vcl_size
tail_size
=
iname_bound
%
vcl_size
vectorize_tail
=
((
vcl_size
//
2
)
>
1
)
and
(
tail_size
>=
(
vcl_size
//
2
))
tail_vcl_size
=
vcl_size
while
tail_vcl_size
>
tail_size
:
tail_vcl_size
=
tail_vcl_size
//
2
assert
(
tail_vcl_size
>
0
)
vectorize_tail
=
tail_vcl_size
>
1
# manually add tail, since split_iname with slabs tries to vectorize the tail
# manually add tail, since split_iname with slabs tries to vectorize the tail
if
tail_size
>
0
:
if
tail_size
>
0
:
...
@@ -512,7 +516,7 @@ def vectorize_micro_elements(knl):
...
@@ -512,7 +516,7 @@ def vectorize_micro_elements(knl):
knl
=
add_vcl_access
(
knl
,
inner_iname
,
vcl_size
,
level
)
knl
=
add_vcl_access
(
knl
,
inner_iname
,
vcl_size
,
level
)
if
tail_size
>
0
and
vectorize_tail
:
if
tail_size
>
0
and
vectorize_tail
:
knl
=
_do_vectorization
(
knl
,
tail_iname
,
tail_size
,
vcl_size
//
2
,
level
+
1
)
knl
=
_do_vectorization
(
knl
,
tail_iname
,
tail_size
,
tail_
vcl_size
,
level
+
1
)
return
knl
return
knl
...
...
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