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

Function check_remote

tests/python/relax/test_vm_build.py:1147–1158  ·  view source on GitHub ↗
(server)

Source from the content-addressed store, hash-verified

1145 # Server must use popen so it doesn't inherit the current process state. It
1146 # will crash otherwise.
1147 def check_remote(server):
1148 remote = rpc.connect(server.host, server.port, session_timeout=10)
1149
1150 # Upload the serialized Executable.
1151 remote.upload(path)
1152 # Get a handle to remote Executable.
1153 rexec = remote.load_module("vm_library.so")
1154
1155 device = remote.cpu()
1156 # Build a VM out of the executable and context.
1157 vm = relax.VirtualMachine(rexec, device=device)
1158 trial_func(vm, device)
1159
1160 check_remote(rpc.Server("127.0.0.1"))
1161

Callers 1

run_on_rpcFunction · 0.70

Calls 4

connectMethod · 0.45
uploadMethod · 0.45
load_moduleMethod · 0.45
cpuMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…