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
d3ed7056
Commit
d3ed7056
authored
8 years ago
by
René Heß
Browse files
Options
Downloads
Patches
Plain Diff
Clean up code and use old version for gradvec
Note: sumfact_poisson_fastdg_gradvec_nonquadvec does not work!
parent
d21c936f
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/sumfact/basis.py
+5
-2
5 additions, 2 deletions
python/dune/perftool/sumfact/basis.py
python/dune/perftool/sumfact/sumfact.py
+2
-1
2 additions, 1 deletion
python/dune/perftool/sumfact/sumfact.py
with
7 additions
and
3 deletions
python/dune/perftool/sumfact/basis.py
+
5
−
2
View file @
d3ed7056
...
...
@@ -93,7 +93,8 @@ def pymbolic_trialfunction_gradient(element, restriction, component, visitor):
if
insn_dep
is
None
:
insn_dep
=
frozenset
({
Writes
(
inp
)})
if
get_option
(
'
fastdg
'
):
# TODO: fastdg and vectorization
if
get_option
(
'
fastdg
'
)
and
index
is
not
None
:
# Name of direct input, shape and globalarg is set in sum_factorization_kernel
direct_input
=
name_coefficientcontainer
(
restriction
)
else
:
...
...
@@ -161,9 +162,11 @@ def pymbolic_trialfunction(element, restriction, component, visitor):
name
=
inp
,
)
if
get_option
(
'
fastdg
'
):
# TODO: fastdg and vectorization
if
get_option
(
'
fastdg
'
)
and
index
is
not
None
:
# Name of direct input, shape and globalarg is set in sum_factorization_kernel
direct_input
=
name_coefficientcontainer
(
restriction
)
setup_theta
(
inp
,
element
,
restriction
,
component
,
index
)
else
:
direct_input
=
None
# Setup the input!
...
...
This diff is collapsed.
Click to expand it.
python/dune/perftool/sumfact/sumfact.py
+
2
−
1
View file @
d3ed7056
...
...
@@ -362,7 +362,8 @@ def sum_factorization_kernel(a_matrices,
# this reinterprets the output of the previous iteration.
inp_shape
=
(
a_matrix
.
cols
,
product
(
mat
.
rows
for
mat
in
a_matrices
[:
l
])
*
product
(
mat
.
cols
for
mat
in
a_matrices
[
l
+
1
:]))
if
l
==
0
and
direct_input
is
not
None
:
# TODO: fastdg and vectorization
if
l
==
0
and
direct_input
is
not
None
and
not
a_matrix
.
vectorized
:
globalarg
(
direct_input
,
dtype
=
np
.
float64
,
shape
=
inp_shape
)
inp
=
direct_input
else
:
...
...
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