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

Function test_popen_ffi

tests/python/support/test_popen_pool.py:148–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146
147
148def test_popen_ffi():
149 proc = PopenWorker(register_ffi)
150
151 # call python function via ffi
152 initargs = [0]
153 proc.send(call_py_ffi, initargs)
154 assert proc.recv() == initargs[0]
155
156 # call cpp function (testing.echo) via ffi
157 initargs = [1]
158 proc.send(call_cpp_ffi, initargs)
159 assert proc.recv() == initargs[0]
160
161 # call python function from ffi registry via cross-language dispatch
162 initargs = [2]
163 proc.send(call_cpp_py_ffi, initargs)
164 assert proc.recv() == initargs[0]
165
166
167def test_popen_pool_executor_timeout():

Callers 1

test_popen_pool.pyFile · 0.85

Calls 3

sendMethod · 0.95
recvMethod · 0.95
PopenWorkerClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…