Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sumpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Andreas Klöckner
sumpy
Commits
4f9b02ae
There was a problem fetching the pipeline summary.
Commit
4f9b02ae
authored
8 years ago
by
Matt Wala
Browse files
Options
Downloads
Patches
Plain Diff
Add a timing message.
parent
8f184c6c
No related branches found
No related tags found
Loading
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sumpy/assignment_collection.py
+5
-1
5 additions, 1 deletion
sumpy/assignment_collection.py
with
5 additions
and
1 deletion
sumpy/assignment_collection.py
+
5
−
1
View file @
4f9b02ae
...
...
@@ -159,6 +159,9 @@ class SymbolicAssignmentCollection(object):
return
new_name
def
run_global_cse
(
self
,
extra_exprs
=
[]):
import
time
start_time
=
time
.
time
()
logger
.
info
(
"
common subexpression elimination: start
"
)
assign_names
=
sorted
(
self
.
assignments
)
...
...
@@ -185,7 +188,8 @@ class SymbolicAssignmentCollection(object):
assert
isinstance
(
name
,
sp
.
Symbol
)
self
.
add_assignment
(
name
.
name
,
value
)
logger
.
info
(
"
common subexpression elimination: done
"
)
logger
.
info
(
"
common subexpression elimination: done after {dur:.2f} s
"
.
format
(
dur
=
time
.
time
()
-
start_time
))
return
new_extra_exprs
def
kill_trivial_assignments
(
self
,
exprs
):
...
...
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