areusch commented on a change in pull request #7838:
URL: https://github.com/apache/tvm/pull/7838#discussion_r614968345



##########
File path: src/runtime/rpc/rpc_endpoint.cc
##########
@@ -1042,12 +1069,38 @@ class RPCClientSession : public RPCSession, public 
DeviceAPI {
   bool IsLocalSession() const final { return false; }
 
  private:
+  void RPCMaxTransferRemoteReturnValue(TVMArgs args) {
+    // Use args[1] as return value, args[0] is tcode
+    rpc_chunk_max_size_bytes_ = (uint64_t)args[1];
+  }
+
+  uint64_t GetRPCMaxTransferSize() {
+    PackedFuncHandle rpc_func = 
GetFunction("tvm.rpc.server.GetCRTMaxPacketSize");

Review comment:
       here you could also just do this once, too




-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to