MCPcopy Index your code
hub / github.com/apache/tvm / check_minrpc

Function check_minrpc

tests/python/runtime/test_runtime_rpc.py:196–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

194 check(client, False)
195
196 def check_minrpc():
197 if tvm.get_global_func("rpc.CreatePipeClient", allow_missing=True) is None:
198 return
199 # Test minrpc server.
200 temp = utils.tempdir()
201 minrpc_exec = temp.relpath("minrpc")
202 tvm.rpc.with_minrpc(cc.create_executable)(minrpc_exec, [])
203 check(rpc.PopenSession(minrpc_exec), False)
204 # minrpc on the remote
205 server = rpc.Server()
206 client = rpc.connect(
207 "127.0.0.1",
208 server.port,
209 session_constructor_args=["rpc.PopenSession", open(minrpc_exec, "rb").read()],
210 )
211 check(client, False)
212
213 # skip for now until we upgrade to new FFI
214 # check_minrpc()

Callers 2

test_rpc_remote_moduleFunction · 0.85

Calls 15

get_global_funcMethod · 0.80
relpathMethod · 0.80
ServerMethod · 0.80
system_libMethod · 0.80
uniformMethod · 0.80
numpyMethod · 0.80
checkFunction · 0.70
readMethod · 0.65
connectMethod · 0.45
compileMethod · 0.45
with_attrMethod · 0.45
export_libraryMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…