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
8cd376a3
Commit
8cd376a3
authored
6 years ago
by
René Heß
Browse files
Options
Downloads
Patches
Plain Diff
[skip ci] Rename setup output
parent
38072649
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/codegen/sumfact/accumulation.py
+2
-2
2 additions, 2 deletions
python/dune/codegen/sumfact/accumulation.py
python/dune/codegen/sumfact/symbolic.py
+4
-3
4 additions, 3 deletions
python/dune/codegen/sumfact/symbolic.py
with
6 additions
and
5 deletions
python/dune/codegen/sumfact/accumulation.py
+
2
−
2
View file @
8cd376a3
...
...
@@ -173,7 +173,7 @@ class AccumulationOutput(SumfactKernelInterfaceBase, ImmutableRecord):
return
prim
.
Subscript
(
prim
.
Variable
(
inp
),
inames
+
vec_iname
)
def
setup
_output
(
self
,
sf
,
result
,
insn_dep
,
inames
=
None
,
additional_inames
=
()):
def
accumulate
_output
(
self
,
sf
,
result
,
insn_dep
,
inames
=
None
,
additional_inames
=
()):
trial_leaf_element
=
get_leaf
(
self
.
trial_element
,
self
.
trial_element_index
)
if
self
.
trial_element
is
not
None
else
None
basis_size
=
tuple
(
mat
.
basis_size
for
mat
in
sf
.
matrix_sequence_quadrature_permuted
)
...
...
@@ -566,4 +566,4 @@ def generate_accumulation_instruction(expr, visitor):
result
,
insn_dep
=
realize_sum_factorization_kernel
(
vsf
.
copy
(
insn_dep
=
vsf
.
insn_dep
.
union
(
insn_dep
)))
if
not
get_form_option
(
"
fastdg
"
):
insn_dep
=
vsf
.
interface
.
setup
_output
(
vsf
,
result
,
insn_dep
)
insn_dep
=
vsf
.
interface
.
accumulate
_output
(
vsf
,
result
,
insn_dep
)
This diff is collapsed.
Click to expand it.
python/dune/codegen/sumfact/symbolic.py
+
4
−
3
View file @
8cd376a3
...
...
@@ -65,7 +65,7 @@ class SumfactKernelInterfaceBase(object):
"""
raise
NotImplementedError
def
setup
_output
(
self
,
sf
,
result
,
insn_dep
,
inames
=
None
,
additional_inames
=
()):
def
accumulate
_output
(
self
,
sf
,
result
,
insn_dep
,
inames
=
None
,
additional_inames
=
()):
"""
Generate accumulate instruction after sumfact kernel function (non fastdg)
This happens after the function call.
...
...
@@ -111,6 +111,7 @@ class SumfactKernelInterfaceBase(object):
TODO: Add note about permutation
TODO: Document input arguments
"""
raise
NotImplementedError
@property
def
quadrature_permutation
(
self
):
...
...
@@ -368,7 +369,7 @@ class VectorSumfactKernelOutput(SumfactKernelInterfaceBase):
return
deps
def
setup
_output
(
self
,
sf
,
result
,
insn_dep
):
def
accumulate
_output
(
self
,
sf
,
result
,
insn_dep
):
# TODO: vector_cost_permutation not used!
outputs
=
set
(
self
.
interfaces
)
...
...
@@ -385,7 +386,7 @@ class VectorSumfactKernelOutput(SumfactKernelInterfaceBase):
deps
=
frozenset
()
for
o
in
outputs
:
hadd_result
=
self
.
_add_hadd
(
o
,
maybe_wrap_subscript
(
result
,
tuple
(
prim
.
Variable
(
iname
)
for
iname
in
inames
+
(
veciname
,))))
deps
=
deps
.
union
(
o
.
setup
_output
(
sf
,
hadd_result
,
insn_dep
,
inames
=
inames
,
additional_inames
=
(
veciname
,)))
deps
=
deps
.
union
(
o
.
accumulate
_output
(
sf
,
hadd_result
,
insn_dep
,
inames
=
inames
,
additional_inames
=
(
veciname
,)))
return
deps
...
...
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