RPC test test_runtime_rpc.py failed when connecting to an actual server


#1

When I run tests/python/unittest/test_runtime_rpc.py test_rpc_remote_module function by providing an actual server ip. It gives me the following error, is the test out-dated? @tqchen

Traceback (most recent call last):
  File "../tvm-1/tests/python/unittest/test_runtime_rpc.py", line 335, in <module>
    test_rpc_remote_module()
  File "../tvm-1/tests/python/unittest/test_runtime_rpc.py", line 190, in test_rpc_remote_module
    check_remote(client)
  File "../tvm-1/tests/python/unittest/test_runtime_rpc.py", line 134, in check_remote
    f1 = remote.load_module("dev_lib.so")
  File "/home/laurawly/workplace/tvm-1/python/tvm/rpc/client.py", line 148, in load_module
    return base._LoadRemoteModule(self._sess, path)
  File "/home/laurawly/workplace/tvm-1/python/tvm/_ffi/_ctypes/function.py", line 209, in __call__
    raise get_last_ffi_error()
tvm._ffi.base.TVMError: Traceback (most recent call last):
  [bt] (8) /media/linaro/f2d39802-80fe-4bcf-93fc-5c52e2ead22a/workplace/tvm/build/libtvm.so(+0x83d99c) [0x7f6f78d99c]
  [bt] (7) /media/linaro/f2d39802-80fe-4bcf-93fc-5c52e2ead22a/workplace/tvm/build/libtvm.so(+0x83d6d8) [0x7f6f78d6d8]
  [bt] (6) /media/linaro/f2d39802-80fe-4bcf-93fc-5c52e2ead22a/workplace/tvm/build/libtvm.so(+0x843310) [0x7f6f793310]
  [bt] (5) /media/linaro/f2d39802-80fe-4bcf-93fc-5c52e2ead22a/workplace/tvm/build/libtvm.so(+0x842c50) [0x7f6f792c50]
  [bt] (4) /media/linaro/f2d39802-80fe-4bcf-93fc-5c52e2ead22a/workplace/tvm/build/libtvm.so(+0x841a44) [0x7f6f791a44]
  [bt] (3) /media/linaro/f2d39802-80fe-4bcf-93fc-5c52e2ead22a/workplace/tvm/build/libtvm.so(+0x83d1e8) [0x7f6f78d1e8]
  [bt] (2) /media/linaro/f2d39802-80fe-4bcf-93fc-5c52e2ead22a/workplace/tvm/build/libtvm.so(+0x841400) [0x7f6f791400]
  [bt] (1) /media/linaro/f2d39802-80fe-4bcf-93fc-5c52e2ead22a/workplace/tvm/build/libtvm.so(+0x83c1d0) [0x7f6f78c1d0]
  [bt] (0) /media/linaro/f2d39802-80fe-4bcf-93fc-5c52e2ead22a/workplace/tvm/build/libtvm.so(+0x7fec4c) [0x7f6f74ec4c]
  File "/home/linaro/workplace/tvm/python/tvm/_ffi/_ctypes/function.py", line 71, in cfun
    rv = local_pyfunc(*pyargs)
  File "/home/linaro/workplace/tvm/python/tvm/rpc/server.py", line 66, in load_module
    m = _load_module(path)
  File "/home/linaro/workplace/tvm/python/tvm/module.py", line 260, in load
    return _LoadFromFile(path, fmt)
  File "/home/linaro/workplace/tvm/python/tvm/_ffi/_ctypes/function.py", line 206, in __call__
    raise get_last_ffi_error()
  [bt] (3) /media/linaro/f2d39802-80fe-4bcf-93fc-5c52e2ead22a/workplace/tvm/build/libtvm.so(TVMFuncCall+0x5c) [0x7f6f751ac4]
  [bt] (2) /media/linaro/f2d39802-80fe-4bcf-93fc-5c52e2ead22a/workplace/tvm/build/libtvm.so(+0x811ef4) [0x7f6f761ef4]
  [bt] (1) /media/linaro/f2d39802-80fe-4bcf-93fc-5c52e2ead22a/workplace/tvm/build/libtvm.so(tvm::runtime::Module::LoadFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x3a8) [0x7f6f75f0a0]
  [bt] (0) /media/linaro/f2d39802-80fe-4bcf-93fc-5c52e2ead22a/workplace/tvm/build/libtvm.so(+0x806074) [0x7f6f756074]
  File "/home/linaro/workplace/tvm/src/runtime/dso_module.cc", line 112
TVMError: Except caught from RPC call: TVMError: Check failed: lib_handle_ != nullptr: Failed to load dynamic shared library /tmp/tmpy9wz64qw/dev_lib.so /tmp/tmpy9wz64qw/dev_lib.so: cannot open shared object file: No such file or directory

#2

load_lib = tvm.module.load("./mobilenetv2.so",“so”)