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
c7eabe27
Commit
c7eabe27
authored
7 years ago
by
Dominic Kempf
Browse files
Options
Downloads
Patches
Plain Diff
Add correct cache key implementation for horizontal vectorization
parent
2172c2e6
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/perftool/sumfact/symbolic.py
+4
-1
4 additions, 1 deletion
python/dune/perftool/sumfact/symbolic.py
with
4 additions
and
1 deletion
python/dune/perftool/sumfact/symbolic.py
+
4
−
1
View file @
c7eabe27
...
@@ -281,7 +281,7 @@ class SumfactKernel(SumfactKernelBase, ImmutableRecord, prim.Variable):
...
@@ -281,7 +281,7 @@ class SumfactKernel(SumfactKernelBase, ImmutableRecord, prim.Variable):
@property
@property
def
function_key
(
self
):
def
function_key
(
self
):
"""
Kernels sharing this key may use the same kernel implementation function
"""
"""
Kernels sharing this key may use the same kernel implementation function
"""
return
self
.
matrix_sequence
return
tuple
(
str
(
m
)
for
m
in
self
.
matrix_sequence
)
@property
@property
def
parallel_key
(
self
):
def
parallel_key
(
self
):
...
@@ -544,6 +544,9 @@ class VectorizedSumfactKernel(SumfactKernelBase, ImmutableRecord, prim.Variable)
...
@@ -544,6 +544,9 @@ class VectorizedSumfactKernel(SumfactKernelBase, ImmutableRecord, prim.Variable)
# Some cache key definitions
# Some cache key definitions
# Watch out for the documentation to see which key is used unter what circumstances
# Watch out for the documentation to see which key is used unter what circumstances
#
#
@property
def
function_key
(
self
):
return
tuple
(
str
(
m
)
for
m
in
self
.
matrix_sequence
)
@property
@property
def
cache_key
(
self
):
def
cache_key
(
self
):
...
...
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