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
f0c48b5b
Commit
f0c48b5b
authored
6 years ago
by
René Heß
Committed by
Dominic Kempf
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add option to throw error if program was not fully vectorized
parent
e26918a1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
python/dune/perftool/options.py
+1
-0
1 addition, 0 deletions
python/dune/perftool/options.py
python/dune/perftool/sumfact/vectorization.py
+3
-0
3 additions, 0 deletions
python/dune/perftool/sumfact/vectorization.py
with
4 additions
and
0 deletions
python/dune/perftool/options.py
+
1
−
0
View file @
f0c48b5b
...
@@ -80,6 +80,7 @@ class PerftoolFormOptionsArray(ImmutableRecord):
...
@@ -80,6 +80,7 @@ class PerftoolFormOptionsArray(ImmutableRecord):
sumfact
=
PerftoolOption
(
default
=
False
,
helpstr
=
"
Use sumfactorization
"
)
sumfact
=
PerftoolOption
(
default
=
False
,
helpstr
=
"
Use sumfactorization
"
)
vectorization_quadloop
=
PerftoolOption
(
default
=
False
,
helpstr
=
"
whether to generate code with explicit vectorization
"
)
vectorization_quadloop
=
PerftoolOption
(
default
=
False
,
helpstr
=
"
whether to generate code with explicit vectorization
"
)
vectorization_strategy
=
PerftoolOption
(
default
=
"
none
"
,
helpstr
=
"
The identifier of the vectorization cost model. Possible values: none|explicit|model
"
)
vectorization_strategy
=
PerftoolOption
(
default
=
"
none
"
,
helpstr
=
"
The identifier of the vectorization cost model. Possible values: none|explicit|model
"
)
vectorization_not_fully_vectorized_error
=
PerftoolOption
(
default
=
False
,
helpstr
=
"
throw an error if nonquadloop vectorization did not fully vectorize
"
)
vectorization_horizontal
=
PerftoolOption
(
default
=
None
,
helpstr
=
"
an explicit value for horizontal vectorization read by the
'
explicit
'
strategy
"
)
vectorization_horizontal
=
PerftoolOption
(
default
=
None
,
helpstr
=
"
an explicit value for horizontal vectorization read by the
'
explicit
'
strategy
"
)
vectorization_vertical
=
PerftoolOption
(
default
=
None
,
helpstr
=
"
an explicit value for vertical vectorization read by the
'
explicit
'
strategy
"
)
vectorization_vertical
=
PerftoolOption
(
default
=
None
,
helpstr
=
"
an explicit value for vertical vectorization read by the
'
explicit
'
strategy
"
)
vectorization_padding
=
PerftoolOption
(
default
=
None
,
helpstr
=
"
an explicit value for the allowed padding in vectorization
"
)
vectorization_padding
=
PerftoolOption
(
default
=
None
,
helpstr
=
"
an explicit value for the allowed padding in vectorization
"
)
...
...
This diff is collapsed.
Click to expand it.
python/dune/perftool/sumfact/vectorization.py
+
3
−
0
View file @
f0c48b5b
...
@@ -32,6 +32,9 @@ import math
...
@@ -32,6 +32,9 @@ import math
@generator_factory
(
item_tags
=
(
"
vecinfo
"
,
"
dryrundata
"
),
cache_key_generator
=
lambda
o
,
n
:
o
)
@generator_factory
(
item_tags
=
(
"
vecinfo
"
,
"
dryrundata
"
),
cache_key_generator
=
lambda
o
,
n
:
o
)
def
_cache_vectorization_info
(
old
,
new
):
def
_cache_vectorization_info
(
old
,
new
):
if
get_form_option
(
"
vectorization_not_fully_vectorized_error
"
):
if
not
isinstance
(
new
,
VectorizedSumfactKernel
):
raise
PerftoolVectorizationError
(
"
Did not fully vectorize!
"
)
if
new
is
None
:
if
new
is
None
:
raise
PerftoolVectorizationError
(
"
Vectorization info for sum factorization kernel was not gathered correctly!
"
)
raise
PerftoolVectorizationError
(
"
Vectorization info for sum factorization kernel was not gathered correctly!
"
)
return
new
return
new
...
...
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