26 Commits

Author SHA1 Message Date
Tianqi Chen aa2e609136 [LINT] Modernize lint to use pre-commit hooks (#18807)
This PR migrates existing lint to use pre-commit hooks
2026-02-22 11:03:21 -05:00
Qiang Zhang 7a00843d14 [RPC] Add Missing Command Line Option "through-proxy" of RPC Server (#10188) 2022-02-10 09:36:58 +00:00
Robert Kimball f4a680d80c Replace 0.0.0.0 with 127.0.0.1 for client connections (#7766)
* Rename references to 0.0.0.0 to localhost. Also change references to 127.0.0.1 to localhost so that all references are consistent. 0.0.0.0 is not the same as localhost.
2021-05-02 07:43:12 -04:00
Tianqi Chen 8bd857d6fa [RPC][REFACTOR] Use PopenWorker to handle RPC Server. (#7889)
Previously the rpc server relies multiprocessing to start a new process and does not work under jupyter.
It also have a popen mode that does ensure the socket start listening before returning the port number.

This PR switches the implementations use PopenWorker. The port number is returned after the socket
get binded, which resolves some of the RPC flaky issues(need sleep to wait the server to start).
It also makes the RPC server jupyter friendly.
2021-04-20 15:04:48 -07:00
Andrew Reusch c7ff88516f Add µTVM Zephyr support + QEMU regression test (#6603)
* Split transport classes into transport package.

* Introduce transport timeouts.

* black format

* Add metadata-only artifacts

* Simplify utvm rpc server API and ease handling of short packets.

* add zephyr test against qemu

* Add qemu build config

* fix typo

* cleanup zephyr main

* fix nonblocking piping on some linux kernels

* don't double-open transport

* validate FD are in non-blocking mode

* gitignore test debug files

* cleanup zephyr compiler

* re-comment serial until added

* remove logging

* add zephyr exclusions to check_file_type

* add asf header

* lint

* black format

* more pylint

* kill utvm rpc_server bindings, which don't work anymore and fail pylint

* fix compiler warning

* fixes related to pylint

* clang-format again

* more black format

* add qemu regression

* Fix paths for qemu/ dir

* fix typo

* fix SETFL logic

* export SessionTerminatedError and update except after moving

* fix test_micro_artifact

* retrigger staging CI

* fix jenkins syntax hopefully

* one last syntax error

* Add ci_qemu to Jenkinsfile

* build in qemu

* address liangfu comments

* fix new bug with list passing

* retrigger CI
2020-10-15 15:55:45 +08:00
lhutton1 de0c3a4240 [RPC] Lazily import micro when starting an RPC server (#6505)
* [RPC] Lazily import micro when starting an RPC server

Since #6334 the RPC server cannot be started unless USE_MICRO is enabled. I've tracked this down to an import in `python/tvn/exec/rpc_server.py`: `from tvm import micro` in the top level list of imports. This will mean that we try to import micro when it's not been built. Fix this by lazily importing micro when initializing an rpc server with micro enabled.

Change-Id: I8f22d81e215cfe4ac0662b0a99bdf02a3e91f90c

* fix lint

Change-Id: I8b78b678374bc82b3b66a7b3595ed4f1684e7d90
2020-09-17 14:49:32 -07:00
Jared Roesch f13fed55cf [Format] Convert all Python code w/o CI (#6448)
* Add black setup

* Tweak pyproject.toml

* Fix syntax issues

* Fix

* Tweak

* Black all Python code
2020-09-11 22:17:24 +09:00
Andrew Reusch 8d72496887 [RUNTIME][uTVM] AutoTVM + uTVM for Cortex-M7 (#5417)
* Prototype for micro TVM.

* Cleanup and sync micro tvm prototype.

* Use /std:c++14 with MSVC.

 * Per tqchen: project has already moved to C++14
 * Presubmit failed for code that built locally on gcc.

* fix ASF lint, and fix add_asf_header too

* Compiles with USE_MICRO=OFF.

* Cleanup TargetPtr and word size representations.

* fix compile warning

* address logan's comments

* address logan and liangfu comments

* address thierry's comments

* address u99127, liangfu, tmoreau89 comments

Co-authored-by: Logan Weber <weberlo@cs.washington.edu>
2020-04-30 10:59:33 -07:00
Logan Weber 47c870a9eb [µTVM] Enable AutoTVM for ARM STM32F746XX Boards (#4274) 2019-12-02 10:38:12 -08:00
Tianqi Chen cffb4fba03 [HEADER] Add Header to Comply with ASF Release Policy (#2982)
* [HEADER] ASF header dir=include

* [HEADER] ASF Header dir=src

* [HEADER] ASF Header -dir=python

* [HEADER] ASF header dir=topi

* [HEADER] ASF Header dir=nnvm

* [HEADER] ASF Header -dir=tutorials

* [HEADER] ASF Header dir=tests

* [HEADER] ASF Header -dir=docker

* fix whitespace

* [HEADER] ASF Header -dir=jvm

* [HEADER] ASF Header -dir=web

* [HEADER] ASF Header --dir=apps

* [HEADER] ASF Header --dir=vta

* [HEADER] ASF Header -dir=go

* temp

* [HEADER] ASF Header --dir=rust

* [HEADER] Add ASF Header --dir=cmake

* [HEADER] ASF Header --dir=docs

* [HEADER] Header for Jenkinsfile

* [HEADER] ASF Header to toml and md

* [HEADER] ASF Header to gradle

* Finalize rat cleanup

* Fix permission

* Fix java test

* temporary remove nnvm onnx test
2019-04-07 21:14:02 -07:00
Alexander Pivovarov 3259e6b36a Fix PRC typo (#2939) 2019-03-31 23:05:12 -07:00
llyfacebook 0806b69e3f [RPC] Add the IPV6 support for server side auto tuning (#2462)
* use IPV6 instead of IPV4

* backward compatible

* add error report

* fix linter

* more linter

* fix the python2 api
2019-01-20 18:08:03 -08:00
Lianmin Zheng 32076df815 [AUTOTVM] TOPI integration for ARM CPU (#1487) 2018-08-02 08:59:25 -07:00
Tianqi Chen 81db22c56a [RPC] graduate tvm.contrib.rpc -> tvm.rpc (#1410) 2018-07-09 15:23:41 -07:00
Lianmin Zheng d0eb2d3dbc Add silent mode to rpc server and rpc tracker (#1268) 2018-06-12 19:18:15 -07:00
eqy 5ba24773d6 support custom IP address from rpc server to tracker (PUT) (#1243) 2018-06-07 21:32:37 -07:00
Leyuan Wang dcf18a3c20 [RPC] default use spawn for fork safety (#1240) 2018-06-06 22:52:03 -07:00
Tianqi Chen 396393c2a5 [APP] ROCM RPC (#1155) 2018-05-10 20:24:35 -07:00
Tianqi Chen 51c40b4f8b [CODEGEN] Enable cross compile of AMDGPU without rocm, update rpc (#1154) 2018-05-10 19:27:55 -07:00
Tianqi Chen 6bd8dbc764 [RPC] Refactor, introduce tracker (#1080)
* [RPC] Refactor, introduce tracker

* [RPC] Change RPC hand shake convention, always get remote key.

* fix lint
2018-04-04 20:40:41 -07:00
Lianmin Zheng 07cc21f106 add exclusive mode for rpc server (#941) 2018-02-28 08:54:58 -08:00
ziheng bdcd325686 [FIX] Fix bug and typo in rpc_server (#263)
* [FIX] Fix bug and typo in rpc_server

* [FIX] Remove unnecessary condition
2017-07-18 23:19:25 -07:00
Tianqi Chen 7b6427e3a8 [RPC] Allow RPCServer to run without decorator (#257) 2017-07-17 13:40:42 -07:00
ziheng 204e9cb429 [EXECUTOR] Fix bug and improve (#252)
* [EXECUTOR] Fix bug and improve

* [EXECUTOR] Enhance test case
2017-07-16 14:54:08 -07:00
ziheng c6d4f5af20 [EXECUTOR] Enable load executor remotely (#245)
* [EXECUTOR] Enable load executor remotely

* [EXECUTOR] Pipeline

* Pass bytearray directly

* Enable load dynamic library in rpc_server.py

* Fix

* lint

* Return Module from remote side directly

* Remove unused header file

* Fix

* fix
2017-07-15 13:03:30 -07:00
Tianqi Chen 1d0d876b7c [TEST/CI] 32bit compatibility and CI. (#159) 2017-05-24 19:06:32 -07:00