This is an automated email from the ASF dual-hosted git repository. jroesch pushed a change to branch rust-tvm-sys in repository https://gitbox.apache.org/repos/asf/incubator-tvm.git.
discard 5662f8e Add tvm-sys add 12e737f Make "none" DataType explicit (#5491) add 3f33b25 [Hexagon] Change "scalar" and "stack" in IDL from "inrout" to "in" (#5487) add 967d731 [MXNET]broadcast and logical op support (#5461) add 9c1e74c [REFACTOR][BOYC] Non recursive partitioning (#5493) add 360027d Link necessary libraries when building runtime for Android (#5496) add 8599f7c [TFLite] Model importer to be compatible with tflite 2.1.0 (#5497) add c7a16d8 [Rust] Fixes for wasm32 target (#5489) add 6347406 [uTVM] Reset target and wait for runtime initialization on connect. (#5499) add 0abf581 bump tophub rocm version (#5504) add 6bbab4c Fix Canonical Simplifier (#5505) add 7e88030 [RUST][RUNTIME] Fix workspace (#5503) add 95e06b3 [REFACTOR][RPC][PROCOTOL-CHANGE] Modularize the RPC infra (#5484) add 70a5902 [RPC] Call sync in remote cpu to gpu copies (#5512) add 32a094c [QNN] Support CallNode inputs in qnn.concatenate (#5360) add 4c9724d [RPC][BUGFIX][BACKPORT-0.6] Fix bug in rpc ring buffer shrink (#5516) add 7cbc0ca [PATCH] [ring_buffer.h] Improve commentary for RingBuffer (#5518) add 16cb571 [TFLITE]Nit: Function names made consitent (#5515) add 7eb2451 fix prelu importer and add tests: (#5521) add dd2bcd0 Add tvm-sys This update added new revisions after undoing existing revisions. That is to say, some revisions that were in the old version of the branch are not in the new version. This situation occurs when a user --force pushes a change and generates a repository containing something like this: * -- * -- B -- O -- O -- O (5662f8e) \ N -- N -- N refs/heads/rust-tvm-sys (dd2bcd0) You should already have received notification emails for all of the O revisions, and so the following emails describe only the N revisions from the common base, B. Any revisions marked "omit" are not gone; other references still refer to them. Any revisions marked "discard" are gone forever. No new revisions were added by this update. Summary of changes: .gitignore | 3 +- 3rdparty/dmlc-core | 2 +- CMakeLists.txt | 26 +- apps/cpp_rpc/rpc_server.cc | 20 +- apps/cpp_rpc/rpc_tracker_client.h | 2 +- cmake/modules/Hexagon.cmake | 6 +- golang/sample/gen_mobilenet_lib.py | 8 +- include/tvm/runtime/c_runtime_api.h | 48 + include/tvm/runtime/data_type.h | 20 +- include/tvm/runtime/device_api.h | 10 +- .../java/org/apache/tvm/contrib/GraphRuntime.java | 53 +- .../src/main/java/org/apache/tvm/rpc/Client.java | 2 +- .../java/org/apache/tvm/rpc/NativeServerLoop.java | 2 +- .../main/java/org/apache/tvm/rpc/RPCSession.java | 4 +- python/tvm/_ffi/_ctypes/packed_func.py | 8 +- python/tvm/_ffi/_cython/packed_func.pxi | 8 +- python/tvm/_ffi/base.py | 1 - python/tvm/autotvm/tophub.py | 2 +- python/tvm/contrib/cc.py | 10 +- python/tvm/contrib/graph_runtime.py | 9 +- python/tvm/error.py | 5 + python/tvm/relay/frontend/mxnet.py | 37 +- python/tvm/relay/frontend/onnx.py | 7 +- python/tvm/relay/frontend/tflite.py | 38 +- python/tvm/relay/qnn/op/qnn.py | 13 +- python/tvm/rpc/__init__.py | 4 +- python/tvm/{ir => rpc}/_ffi_api.py | 4 +- python/tvm/rpc/base.py | 7 - python/tvm/rpc/client.py | 108 +- python/tvm/rpc/minrpc.py | 86 ++ python/tvm/rpc/proxy.py | 3 +- python/tvm/rpc/server.py | 7 +- python/tvm/runtime/module.py | 6 +- rust/Cargo.toml | 1 + rust/common/build.rs | 1 + rust/common/src/array.rs | 1 + rust/common/src/lib.rs | 9 +- rust/runtime/src/array.rs | 1 + rust/runtime/src/graph.rs | 13 +- rust/runtime/src/module/mod.rs | 12 +- rust/runtime/src/threading.rs | 9 +- rust/runtime/src/workspace.rs | 10 +- rust/runtime/tests/test_wasm32/.cargo/config | 2 + .../tests/{test_tvm_dso => test_wasm32}/Cargo.toml | 2 +- .../tests/{test_tvm_basic => test_wasm32}/build.rs | 34 +- .../src/build_test_lib.py | 2 +- .../{test_tvm_basic => test_wasm32}/src/main.rs | 18 +- src/arith/canonical_simplify.cc | 1 + src/relay/qnn/op/concatenate.cc | 14 +- src/relay/transforms/partition_graph.cc | 393 ++---- src/runtime/c_runtime_api.cc | 37 + .../hexagon/target/fastrpc/include/tvm_remote.idl | 4 +- .../target/fastrpc/include/tvm_remote_nd.idl | 4 +- .../hexagon/target/fastrpc/src/tvm_remote_imp.cc | 4 +- .../target/fastrpc/src/tvm_remote_nd_imp.cc | 4 +- src/runtime/micro/openocd_low_level_device.cc | 7 +- src/runtime/module.cc | 2 +- src/runtime/registry.cc | 22 +- src/runtime/rpc/minrpc/minrpc_server.h | 608 ++++++++++ src/runtime/rpc/minrpc/posix_popen_server.cc | 74 ++ .../stackvm_module.h => rpc/rpc_channel.cc} | 46 +- src/runtime/rpc/rpc_channel.h | 98 ++ src/runtime/rpc/rpc_device_api.cc | 53 +- src/runtime/rpc/rpc_endpoint.cc | 1059 ++++++++++++++++ src/runtime/rpc/rpc_endpoint.h | 226 ++++ src/runtime/rpc/rpc_event_impl.cc | 18 +- src/runtime/rpc/rpc_local_session.cc | 152 +++ src/runtime/rpc/rpc_local_session.h | 82 ++ src/runtime/rpc/rpc_module.cc | 402 +++++-- src/runtime/rpc/rpc_pipe_impl.cc | 133 +++ src/runtime/rpc/rpc_protocol.h | 487 ++++++++ src/runtime/rpc/rpc_server_env.cc | 7 +- src/runtime/rpc/rpc_session.cc | 1263 +------------------- src/runtime/rpc/rpc_session.h | 407 +++---- src/runtime/rpc/rpc_socket_impl.cc | 59 +- src/support/arena.h | 163 ++- src/support/ring_buffer.h | 36 +- src/target/llvm/codegen_llvm.cc | 3 + src/tir/ir/op.cc | 7 +- tests/lint/check_file_type.py | 3 +- tests/python/frontend/mxnet/test_forward.py | 71 +- tests/python/frontend/onnx/test_forward.py | 29 + tests/python/frontend/tflite/test_forward.py | 8 +- tests/python/relay/test_op_qnn_concatenate.py | 25 + .../unittest/test_arith_canonical_simplify.py | 2 +- tests/python/unittest/test_runtime_rpc.py | 145 ++- tests/python/unittest/test_target_codegen_llvm.py | 12 + tests/scripts/task_rust.sh | 6 + tutorials/frontend/from_tflite.py | 19 +- web/tvm_runtime.js | 2 +- 90 files changed, 4584 insertions(+), 2297 deletions(-) copy python/tvm/{ir => rpc}/_ffi_api.py (92%) create mode 100644 python/tvm/rpc/minrpc.py create mode 100644 rust/runtime/tests/test_wasm32/.cargo/config copy rust/runtime/tests/{test_tvm_dso => test_wasm32}/Cargo.toml (97%) copy rust/runtime/tests/{test_tvm_basic => test_wasm32}/build.rs (74%) copy rust/runtime/tests/{test_tvm_basic => test_wasm32}/src/build_test_lib.py (91%) copy rust/runtime/tests/{test_tvm_basic => test_wasm32}/src/main.rs (86%) create mode 100644 src/runtime/rpc/minrpc/minrpc_server.h create mode 100644 src/runtime/rpc/minrpc/posix_popen_server.cc copy src/runtime/{stackvm/stackvm_module.h => rpc/rpc_channel.cc} (58%) create mode 100644 src/runtime/rpc/rpc_channel.h create mode 100644 src/runtime/rpc/rpc_endpoint.cc create mode 100644 src/runtime/rpc/rpc_endpoint.h create mode 100644 src/runtime/rpc/rpc_local_session.cc create mode 100644 src/runtime/rpc/rpc_local_session.h create mode 100644 src/runtime/rpc/rpc_pipe_impl.cc create mode 100644 src/runtime/rpc/rpc_protocol.h