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
982de019
Commit
982de019
authored
7 years ago
by
Dominic Kempf
Browse files
Options
Downloads
Patches
Plain Diff
Make sure that sumfact switches do not fail ordering
parent
9ecd2191
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/cgen/clazz.py
+2
-1
2 additions, 1 deletion
python/dune/perftool/cgen/clazz.py
python/dune/perftool/pdelab/localoperator.py
+1
-3
1 addition, 3 deletions
python/dune/perftool/pdelab/localoperator.py
with
3 additions
and
4 deletions
python/dune/perftool/cgen/clazz.py
+
2
−
1
View file @
982de019
...
...
@@ -34,9 +34,10 @@ class BaseClass(Generable):
class
ClassMember
(
Generable
):
def
__init__
(
self
,
member
,
access
=
AccessModifier
.
PUBLIC
):
def
__init__
(
self
,
member
,
access
=
AccessModifier
.
PUBLIC
,
name
=
None
):
self
.
member
=
member
self
.
access
=
access
self
.
name
=
name
if
isinstance
(
member
,
str
):
from
cgen
import
Line
...
...
This diff is collapsed.
Click to expand it.
python/dune/perftool/pdelab/localoperator.py
+
1
−
3
View file @
982de019
...
...
@@ -625,8 +625,6 @@ class TimerMethod(ClassMember):
class
LoopyKernelMethod
(
ClassMember
):
def
__init__
(
self
,
signature
,
kernel
,
add_timings
=
True
,
initializer_list
=
[]):
self
.
name
=
kernel
.
name
from
loopy
import
generate_body
from
cgen
import
LiteralLines
,
Block
content
=
signature
...
...
@@ -667,7 +665,7 @@ class LoopyKernelMethod(ClassMember):
content
.
append
(
'
'
+
'
HP_TIMER_STOP({});
'
.
format
(
timer_name
))
content
.
append
(
'
}
'
)
ClassMember
.
__init__
(
self
,
content
)
ClassMember
.
__init__
(
self
,
content
,
name
=
kernel
.
name
)
def
cgen_class_from_cache
(
tag
,
members
=
[]):
...
...
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