Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoTVM x86 Tutorial is broken on MacOS #2617

Closed
antinucleon opened this issue Feb 18, 2019 · 1 comment
Closed

AutoTVM x86 Tutorial is broken on MacOS #2617

antinucleon opened this issue Feb 18, 2019 · 1 comment

Comments

@antinucleon
Copy link
Contributor

python tune_relay_x86.py

Extract tasks...
Tuning...
[Task  1/12]  Current/Best:    0.00/   0.00 GFLOPS | Progress: (0/400) | 0.00 sTraceback (most recent call last):
  File "tune_relay_x86.py", line 183, in <module>
    tune_and_evaluate(tuning_option)
  File "tune_relay_x86.py", line 157, in tune_and_evaluate
    tune_kernels(tasks, **tuning_opt)
  File "tune_relay_x86.py", line 142, in tune_kernels
    autotvm.callback.log_to_file(log_filename)])
  File "/Users/bingxu/tvm/python/tvm/autotvm/tuner/tuner.py", line 92, in tune
    measure_batch = create_measure_batch(self.task, measure_option)
  File "/Users/bingxu/tvm/python/tvm/autotvm/measure/measure.py", line 236, in create_measure_batch
    attach_objects = runner.set_task(task)
  File "/Users/bingxu/tvm/python/tvm/autotvm/measure/measure_methods.py", line 326, in set_task
    super(LocalRunner, self).set_task(task)
  File "/Users/bingxu/tvm/autotvm/measure/measure_methods.py", line 196, in set_task
    raise RuntimeError("Cannot get remote devices from the tracker. "
RuntimeError: Cannot get remote devices from the tracker. Please check the status of tracker by 'python -m tvm.exec.query_rpc_tracker --port [THE PORT YOU USE]' and make sure you have free devices on the queue status.

python -m tvm.exec.query_rpc_tracker --port 9000

Tracker address localhost:9000

Server List
----------------------------
server-address	key
----------------------------
::1:50954	server:$local$device$9000
----------------------------

Queue Status
------------------------------------------
key                  total  free  pending
------------------------------------------
$local$device$9000   1      0     1
------------------------------------------
@antinucleon antinucleon changed the title AutoTVM x86 Tutorial is broken AutoTVM x86 Tutorial is broken on MacOS Feb 18, 2019
@eqy
Copy link
Contributor

eqy commented Feb 18, 2019

I think we have seen this issue before, but I am not sure how we should fix it in the tutorial. Does the workaround of changing localhost to a real address such as 127.0.0.1 work for you? macOS seems to have many more network interfaces than other systems we have tried AutoTVM on, so maybe there is something strange when resolving localhost.

antinucleon pushed a commit to antinucleon/tvm that referenced this issue Feb 18, 2019
antinucleon pushed a commit to antinucleon/tvm that referenced this issue Feb 19, 2019
@eqy eqy closed this as completed in #2619 Feb 20, 2019
eqy pushed a commit that referenced this issue Feb 20, 2019
wweic pushed a commit to neo-ai/tvm that referenced this issue Feb 20, 2019
@yzhliu yzhliu mentioned this issue Mar 2, 2019
28 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants