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
4ab13135
Commit
4ab13135
authored
7 years ago
by
René Heß
Browse files
Options
Downloads
Patches
Plain Diff
Make it possible to report number of sf kernels
parent
16bf9329
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/logging.conf
+7
-1
7 additions, 1 deletion
python/dune/perftool/logging.conf
python/dune/perftool/sumfact/vectorization.py
+6
-0
6 additions, 0 deletions
python/dune/perftool/sumfact/vectorization.py
with
13 additions
and
1 deletion
python/dune/perftool/logging.conf
+
7
−
1
View file @
4ab13135
[
loggers
]
[
loggers
]
keys
=
root
,
dune
.
perftool
.
pdelab
.
localoperator
keys
=
root
,
dune
.
perftool
.
pdelab
.
localoperator
,
dune
.
perftool
.
sumfact
.
vectorization
[
handlers
]
[
handlers
]
keys
=
consoleHandler
keys
=
consoleHandler
...
@@ -16,6 +16,12 @@ handlers=consoleHandler
...
@@ -16,6 +16,12 @@ handlers=consoleHandler
qualname
=
dune
.
perftool
.
pdelab
.
localoperator
qualname
=
dune
.
perftool
.
pdelab
.
localoperator
propagate
=
0
propagate
=
0
[
logger_dune
.
perftool
.
sumfact
.
vectorization
]
level
=
INFO
handlers
=
consoleHandler
qualname
=
dune
.
perftool
.
sumfact
.
vectorization
propagate
=
0
[
handler_consoleHandler
]
[
handler_consoleHandler
]
class
=
StreamHandler
class
=
StreamHandler
formatter
=
simpleFormatter
formatter
=
simpleFormatter
...
...
This diff is collapsed.
Click to expand it.
python/dune/perftool/sumfact/vectorization.py
+
6
−
0
View file @
4ab13135
"""
Sum factorization vectorization
"""
"""
Sum factorization vectorization
"""
import
logging
from
dune.perftool.loopy.vcl
import
get_vcl_type_size
from
dune.perftool.loopy.vcl
import
get_vcl_type_size
from
dune.perftool.loopy.symbolic
import
SumfactKernel
,
VectorizedSumfactKernel
from
dune.perftool.loopy.symbolic
import
SumfactKernel
,
VectorizedSumfactKernel
from
dune.perftool.generation
import
(
generator_factory
,
from
dune.perftool.generation
import
(
generator_factory
,
...
@@ -136,10 +138,14 @@ def decide_vectorization_strategy():
...
@@ -136,10 +138,14 @@ def decide_vectorization_strategy():
Note that the vectorization of the quadrature loop is independent of this,
Note that the vectorization of the quadrature loop is independent of this,
as it is implemented through a post-processing (== loopy transformation) step.
as it is implemented through a post-processing (== loopy transformation) step.
"""
"""
logger
=
logging
.
getLogger
(
__name__
)
from
dune.perftool.generation
import
retrieve_cache_items
from
dune.perftool.generation
import
retrieve_cache_items
sumfacts
=
[
i
for
i
in
retrieve_cache_items
(
"
kernel_default and sumfactnodes
"
)]
sumfacts
=
[
i
for
i
in
retrieve_cache_items
(
"
kernel_default and sumfactnodes
"
)]
sfdict
=
{}
sfdict
=
{}
logger
.
debug
(
"
decide_vectorization_strategy: Found {} sum factorization nodes
"
.
format
(
len
(
sumfacts
)))
if
get_option
(
"
vectorize_grads
"
):
if
get_option
(
"
vectorize_grads
"
):
# Currently we base our idea here on the fact that we only group sum
# Currently we base our idea here on the fact that we only group sum
# factorization kernels with the same input.
# factorization kernels with the same input.
...
...
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