Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
grudge
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Show more breadcrumbs
Alexandru Fikl
grudge
Commits
8297285a
Commit
8297285a
authored
7 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Plain Diff
Merge branch 'basic-fusion' of
ssh://gitlab.tiker.net/inducer/grudge
into basic-fusion
parents
c744fbcc
aa913014
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
grudge/symbolic/compiler.py
+8
-2
8 additions, 2 deletions
grudge/symbolic/compiler.py
with
8 additions
and
2 deletions
grudge/symbolic/compiler.py
+
8
−
2
View file @
8297285a
...
@@ -109,7 +109,12 @@ class LoopyKernelInstruction(Instruction):
...
@@ -109,7 +109,12 @@ class LoopyKernelInstruction(Instruction):
if
isinstance
(
v
,
(
Variable
,
Subscript
)))
if
isinstance
(
v
,
(
Variable
,
Subscript
)))
def
__str__
(
self
):
def
__str__
(
self
):
knl_str
=
self
.
kernel_descriptor
.
loopy_kernel
.
stringify
(
"
di
"
)
knl_str
=
"
\n
"
.
join
(
"
%s = %s
"
%
(
insn
.
assignee
,
insn
.
expression
)
for
insn
in
self
.
kernel_descriptor
.
loopy_kernel
.
instructions
)
knl_str
=
knl_str
.
replace
(
"
grdg_
"
,
""
)
return
"
{ /* loopy */
\n
%s
\n
}
"
%
knl_str
.
replace
(
"
\n
"
,
"
\n
"
)
return
"
{ /* loopy */
\n
%s
\n
}
"
%
knl_str
.
replace
(
"
\n
"
,
"
\n
"
)
mapper_method
=
"
map_insn_loopy_kernel
"
mapper_method
=
"
map_insn_loopy_kernel
"
...
@@ -278,7 +283,8 @@ def dot_dataflow_graph(code, max_node_label_length=30,
...
@@ -278,7 +283,8 @@ def dot_dataflow_graph(code, max_node_label_length=30,
node_names
[
insn
]
=
node_name
node_names
[
insn
]
=
node_name
node_label
=
str
(
insn
)
node_label
=
str
(
insn
)
if
max_node_label_length
is
not
None
:
if
(
max_node_label_length
is
not
None
and
not
isinstance
(
insn
,
LoopyKernelInstruction
)):
node_label
=
node_label
[:
max_node_label_length
]
node_label
=
node_label
[:
max_node_label_length
]
if
label_wrap_width
is
not
None
:
if
label_wrap_width
is
not
None
:
...
...
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