Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hpvm-release
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
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
llvm
hpvm-release
Commits
a79276ba
Commit
a79276ba
authored
5 years ago
by
hsharif3
Browse files
Options
Downloads
Patches
Plain Diff
time estimation
parent
d79d8707
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
llvm/projects/hpvm-tensor-rt/bin/times.py
+78
-0
78 additions, 0 deletions
llvm/projects/hpvm-tensor-rt/bin/times.py
with
78 additions
and
0 deletions
llvm/projects/hpvm-tensor-rt/bin/times.py
0 → 100644
+
78
−
0
View file @
a79276ba
class
Config
:
def
__init__
(
self
):
self
.
runtime
=
0
self
.
fed_runs
=
0
self
.
full_runs
=
0
def
computeTimes
(
bench
):
conf_runs
=
60
fed_time
=
(
bench
.
runtime
*
100
)
+
(
bench
.
fed_runs
*
conf_runs
*
bench
.
runtime
)
fed_time_hrs
=
fed_time
/
(
60
*
60
)
full_time
=
(
bench
.
runtime
*
1000
)
+
(
bench
.
full_runs
*
conf_runs
*
bench
.
runtime
)
full_time_hrs
=
full_time
/
(
60
*
60
)
print
(
"
fedtime_hrs =
"
,
fed_time_hrs
,
"
full_time_hrs =
"
,
full_time_hrs
,
"
\n
"
)
if
__name__
==
"
__main__
"
:
resnet
=
Config
()
resnet
.
runtime
=
8
resnet
.
fed_runs
=
3
resnet
.
full_runs
=
5
computeTimes
(
resnet
)
alexnet
=
Config
()
alexnet
.
runtime
=
7.8
alexnet
.
fed_runs
=
47
alexnet
.
full_runs
=
274
computeTimes
(
alexnet
)
alexnet2
=
Config
()
alexnet2
.
runtime
=
2.3
alexnet2
.
fed_runs
=
62
alexnet2
.
full_runs
=
339
computeTimes
(
alexnet2
)
vgg1
=
Config
()
vgg1
.
runtime
=
7.4
vgg1
.
fed_runs
=
15
vgg1
.
full_runs
=
211
computeTimes
(
vgg1
)
vgg2
=
Config
()
vgg2
.
runtime
=
15.4
vgg2
.
fed_runs
=
8
vgg2
.
full_runs
=
150
computeTimes
(
vgg2
)
lenet
=
Config
()
lenet
.
runtime
=
0.98
lenet
.
fed_runs
=
64
lenet
.
full_runs
=
228
computeTimes
(
lenet
)
mobilenet
=
Config
()
mobilenet
.
runtime
=
11
mobilenet
.
fed_runs
=
32
mobilenet
.
full_runs
=
267
computeTimes
(
mobilenet
)
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