Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
27843a9f
Commit
27843a9f
authored
Feb 20, 2019
by
Bing Xu
Committed by
eqy
Feb 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[autotvm] fix #2617 (#2619)
parent
9e53b3d6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
python/tvm/autotvm/measure/measure_methods.py
+2
-2
tutorials/autotvm/tune_relay_arm.py
+2
-2
tutorials/autotvm/tune_relay_cuda.py
+4
-4
tutorials/autotvm/tune_relay_mobile_gpu.py
+2
-2
No files found.
python/tvm/autotvm/measure/measure_methods.py
View file @
27843a9f
...
...
@@ -313,9 +313,9 @@ class LocalRunner(RPCRunner):
from
...rpc.tracker
import
Tracker
from
...rpc.server
import
Server
tracker
=
Tracker
(
'
localhost
'
,
port
=
9000
,
port_end
=
10000
,
silent
=
True
)
tracker
=
Tracker
(
'
0.0.0.0
'
,
port
=
9000
,
port_end
=
10000
,
silent
=
True
)
device_key
=
'$local$device$
%
d'
%
tracker
.
port
server
=
Server
(
'
localhost
'
,
port
=
9000
,
port_end
=
10000
,
server
=
Server
(
'
0.0.0.0
'
,
port
=
9000
,
port_end
=
10000
,
key
=
device_key
,
use_popen
=
True
,
silent
=
True
,
tracker_addr
=
(
tracker
.
host
,
tracker
.
port
))
...
...
tutorials/autotvm/tune_relay_arm.py
View file @
27843a9f
...
...
@@ -193,7 +193,7 @@ tuning_option = {
builder
=
autotvm
.
LocalBuilder
(
build_func
=
'ndk'
if
use_android
else
'default'
),
runner
=
autotvm
.
RPCRunner
(
device_key
,
host
=
'
localhost
'
,
port
=
9190
,
device_key
,
host
=
'
0.0.0.0
'
,
port
=
9190
,
number
=
5
,
timeout
=
10
,
),
...
...
@@ -327,7 +327,7 @@ def tune_and_evaluate(tuning_opt):
# upload module to device
print
(
"Upload..."
)
remote
=
autotvm
.
measure
.
request_remote
(
device_key
,
'
localhost
'
,
9190
,
remote
=
autotvm
.
measure
.
request_remote
(
device_key
,
'
0.0.0.0
'
,
9190
,
timeout
=
10000
)
remote
.
upload
(
tmp
.
relpath
(
filename
))
rlib
=
remote
.
load_module
(
filename
)
...
...
tutorials/autotvm/tune_relay_cuda.py
View file @
27843a9f
...
...
@@ -112,7 +112,7 @@ tuning_option = {
#runner=autotvm.LocalRunner(number=20, repeat=3, timeout=4, min_repeat_ms=150),
runner
=
autotvm
.
RPCRunner
(
'1080ti'
,
# change the device key to your key
'
localhost
'
,
9190
,
'
0.0.0.0
'
,
9190
,
number
=
20
,
repeat
=
3
,
timeout
=
4
,
min_repeat_ms
=
150
)
),
}
...
...
@@ -327,13 +327,13 @@ def tune_and_evaluate(tuning_opt):
#
# .. code-block:: bash
#
# python -m tvm.exec.rpc_server --tracker=
localhost
:9190 --key=1080ti
# python -m tvm.exec.rpc_server --tracker=
0.0.0.0
:9190 --key=1080ti
#
# After registering devices, we can confirm it by querying rpc_tracker
#
# .. code-block:: bash
#
# python -m tvm.exec.query_rpc_tracker --host=
localhost
--port=9190
# python -m tvm.exec.query_rpc_tracker --host=
0.0.0.0
--port=9190
#
# For example, if we have four 1080ti, two titanx and one gfx900, the output can be
#
...
...
@@ -362,7 +362,7 @@ tuning_option = {
builder
=
autotvm
.
LocalBuilder
(
timeout
=
10
),
runner
=
autotvm
.
RPCRunner
(
'1080ti'
,
# change the device key to your key
'
localhost
'
,
9190
,
'
0.0.0.0
'
,
9190
,
number
=
20
,
repeat
=
3
,
timeout
=
4
,
min_repeat_ms
=
150
),
),
}
tutorials/autotvm/tune_relay_mobile_gpu.py
View file @
27843a9f
...
...
@@ -196,7 +196,7 @@ tuning_option = {
builder
=
autotvm
.
LocalBuilder
(
build_func
=
'ndk'
if
use_android
else
'default'
),
runner
=
autotvm
.
RPCRunner
(
device_key
,
host
=
'
localhost
'
,
port
=
9190
,
device_key
,
host
=
'
0.0.0.0
'
,
port
=
9190
,
number
=
10
,
timeout
=
5
,
),
...
...
@@ -309,7 +309,7 @@ def tune_and_evaluate(tuning_opt):
# upload module to device
print
(
"Upload..."
)
remote
=
autotvm
.
measure
.
request_remote
(
device_key
,
'
localhost
'
,
9190
,
remote
=
autotvm
.
measure
.
request_remote
(
device_key
,
'
0.0.0.0
'
,
9190
,
timeout
=
10000
)
remote
.
upload
(
tmp
.
relpath
(
filename
))
rlib
=
remote
.
load_module
(
filename
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment