You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/09/02 08:50:43 UTC
[GitHub] [tvm] Wanger-SJTU commented on pull request #8492: [AutoScheduler] Use PopenPool instead of multiprocessing.pool
Wanger-SJTU commented on pull request #8492:
URL: https://github.com/apache/tvm/pull/8492#issuecomment-911407652
@tqchen @shingjan @tkonolige @junrushao1994 @vinx13 this pr make ` builder=auto_scheduler.LocalBuilder(build_func="ndk" if use_ndk else "default")` fail. No matter what `build_func` specific, the `build_func` will fall back to `default`.
and with this pr, the demo code `tutorials/auto_scheduler/tune_network_arm.py` run failed.
```
python tune_network_arm.py
default
> /home/framework/tvm/python/tvm/auto_scheduler/measure.py(341)__init__()
-> if build_func == "default":
(Pdb) c
Get model...
Extract tasks...
Begin tuning...
ndk
> /home/framework/tvm/python/tvm/auto_scheduler/measure.py(341)__init__()
-> if build_func == "default":
(Pdb) c
Get devices for measurement successfully!
> /home/framework/tvm/tutorials/auto_scheduler/tune_network_arm.py(326)tune_and_evaluate()
-> tuner.tune(tune_option)
(Pdb) c
----------------------------------------------------------------------
------------------------------ [ Task Scheduler ]
----------------------------------------------------------------------
| ID | Latency (ms) | Speed (GFLOPS) | Trials |
-------------------------------------------------
| 0 | - | - | 0 |
| 1 | - | - | 0 |
| 2 | - | - | 0 |
| 3 | - | - | 0 |
| 4 | - | - | 0 |
| 5 | - | - | 0 |
| 6 | - | - | 0 |
| 7 | - | - | 0 |
| 8 | - | - | 0 |
| 9 | - | - | 0 |
| 10 | - | - | 0 |
| 11 | - | - | 0 |
| 12 | - | - | 0 |
| 13 | - | - | 0 |
| 14 | - | - | 0 |
| 15 | - | - | 0 |
| 16 | - | - | 0 |
| 17 | - | - | 0 |
| 18 | - | - | 0 |
| 19 | - | - | 0 |
| 20 | - | - | 0 |
| 21 | - | - | 0 |
-------------------------------------------------
Estimated total latency: - ms Trials: 0 Used time : 1 s Next ID: 0
----------------------------------------------------------------------
------------------------------ [ Search ]
----------------------------------------------------------------------
Generate Sketches #s: 3
Sample Initial Population #s: 1658 fail_ct: 194 Time elapsed: 0.97
GA Iter: 0 Max score: 0.9999 Min score: 0.9896 #Pop: 18 #M+: 0 #M-: 0
GA Iter: 4 Max score: 1.0000 Min score: 0.9985 #Pop: 18 #M+: 1374 #M-: 76
EvolutionarySearch #s: 18 Time elapsed: 3.82
----------------------------------------------------------------------
------------------------------ [ Measure ]
----------------------------------------------------------------------
Get 9 programs to measure:
default
default
> /home/framework/tvm/python/tvm/auto_scheduler/measure.py(341)__init__()
-> if build_func == "default":default
> /home/framework/tvm/python/tvm/auto_scheduler/measure.py(341)__init__()
-> if build_func == "default":(Pdb)
(Pdb) > /home/framework/tvm/python/tvm/auto_scheduler/measure.py(341)__init__()
-> if build_func == "default":
(Pdb) default
> /home/framework/tvm/python/tvm/auto_scheduler/measure.py(341)__init__()
-> if build_func == "default":
(Pdb) default
> /home/framework/tvm/python/tvm/auto_scheduler/measure.py(341)__init__()
-> if build_func == "default":
(Pdb) default
> /home/framework/tvm/python/tvm/auto_scheduler/measure.py(341)__init__()
-> if build_func == "default":
(Pdb) default
default
> /home/framework/tvm/python/tvm/auto_scheduler/measure.py(341)__init__()
-> if build_func == "default":
(Pdb) > /home/framework/tvm/python/tvm/auto_scheduler/measure.py(341)__init__()
-> if build_func == "default":
(Pdb)
Traceback (most recent call last):
File "/home/anaconda3/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/anaconda3/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/framework/tvm/python/tvm/exec/popen_worker.py", line 105, in <module>
main()
File "/home/framework/tvm/python/tvm/exec/popen_worker.py", line 77, in main
fn, args, kwargs, timeout = cloudpickle.loads(reader.read(bytes_size))
File "/home/framework/tvm/python/tvm/auto_scheduler/__init__.py", line 21, in <module>
from . import dispatcher
File "/home/framework/tvm/python/tvm/auto_scheduler/dispatcher.py", line 37, in <module>
from .search_task import SearchTask, TuningOptions
File "/home/framework/tvm/python/tvm/auto_scheduler/search_task.py", line 635, in <module>
def auto_schedule(task, search_policy=None, tuning_options=TuningOptions()):
File "/home/framework/tvm/python/tvm/auto_scheduler/search_task.py", line 184, in __init__
builder = LocalBuilder()
File "/home/framework/tvm/python/tvm/auto_scheduler/measure.py", line 341, in __init__
if build_func == "default":
File "/home/framework/tvm/python/tvm/auto_scheduler/measure.py", line 341, in __init__
if build_func == "default":
File "/home/anaconda3/lib/python3.8/bdb.py", line 88, in trace_dispatch
return self.dispatch_line(frame)
File "/home/anaconda3/lib/python3.8/bdb.py", line 113, in dispatch_line
if self.quitting: raise BdbQuit
bdb.BdbQuit
default
> /home/framework/tvm/python/tvm/auto_scheduler/measure.py(341)__init__()
-> if build_func == "default":
(Pdb)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org