I tried to run the test_launcher.py using pytest on the Hexagon DSP. However, this error is preventing me from going forward:
Traceback (most recent call last):
File "<string>", line 6, in <module>
File "/home/osboxes/tvm/python/tvm/rpc/client.py", line 524, in connect
sess = _ffi_api.Connect(url, port, key, enable_logging, *session_constructor_args)
File "/home/osboxes/tvm/python/tvm/_ffi/_ctypes/packed_func.py", line 238, in __call__
raise get_last_ffi_error()
tvm.error.RPCError: Traceback (most recent call last):
8: TVMFuncCall
7: tvm::runtime::PackedFuncObj::Extractor<tvm::runtime::PackedFuncSubObj<tvm::runtime::{lambda(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)#1}> >::Call(tvm::runtime::PackedFuncObj const*, tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)
6: tvm::runtime::RPCClientConnect(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, tvm::runtime::TVMArgs)
5: tvm::runtime::RPCConnect(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, tvm::runtime::TVMArgs)
4: tvm::runtime::RPCEndpoint::InitRemoteSession(tvm::runtime::TVMArgs)
3: tvm::runtime::RPCEndpoint::HandleUntilReturnEvent(bool, std::function<void (tvm::runtime::TVMArgs)>)
2: tvm::runtime::RPCEndpoint::EventHandler::HandleNextEvent(bool, bool, std::function<void (tvm::runtime::TVMArgs)>)
1: tvm::runtime::RPCEndpoint::EventHandler::HandleProcessPacket(std::function<void (tvm::runtime::TVMArgs)>)
0: tvm::runtime::RPCEndpoint::EventHandler::HandleReturn(tvm::runtime::RPCCode, std::function<void (tvm::runtime::TVMArgs)>)
[bt] (8) ./tvm_rpc_android(+0x1a3d4) [0x556727c3d4]
[bt] (7) /data/local/tmp/hexagon_test/2023-06-13T09-53-07-kxwxwmwsge/libtvm_runtime.so(tvm::runtime::RPCServerLoop(int)+0xb4) [0x7f977b98f4]
[bt] (6) /data/local/tmp/hexagon_test/2023-06-13T09-53-07-kxwxwmwsge/libtvm_runtime.so(tvm::runtime::RPCEndpoint::ServerLoop()+0xe8) [0x7f9779ae38]
[bt] (5) /data/local/tmp/hexagon_test/2023-06-13T09-53-07-kxwxwmwsge/libtvm_runtime.so(tvm::runtime::RPCEndpoint::HandleUntilReturnEvent(bool, std::function<void (tvm::runtime::TVMArgs)>)+0x124) [0x7f9779a6fc]
[bt] (4) /data/local/tmp/hexagon_test/2023-06-13T09-53-07-kxwxwmwsge/libtvm_runtime.so(tvm::runtime::RPCEndpoint::EventHandler::HandleNextEvent(bool, bool, std::function<void (tvm::runtime::TVMArgs)>)+0x154) [0x7f977a50ec]
[bt] (3) /data/local/tmp/hexagon_test/2023-06-13T09-53-07-kxwxwmwsge/libtvm_runtime.so(tvm::runtime::RPCEndpoint::EventHandler::HandleProcessPacket(std::function<void (tvm::runtime::TVMArgs)>)+0x1c4) [0x7f977a4edc]
[bt] (2) /data/local/tmp/hexagon_test/2023-06-13T09-53-07-kxwxwmwsge/libtvm_runtime.so(tvm::runtime::RPCEndpoint::EventHandler::HandleInitServer()+0xb8c) [0x7f977a4234]
[bt] (1) ./tvm_rpc_android(tvm::runtime::detail::LogFatal::Entry::Finalize()+0x88) [0x556726f5b0]
[bt] (0) /data/local/tmp/hexagon_test/2023-06-13T09-53-07-kxwxwmwsge/libtvm_runtime.so(tvm::runtime::Backtrace[abi:cxx11]()+0x30) [0x7f97716d30]
[bt] (8) /data/local/tmp/hexagon_test/2023-06-13T09-53-07-kxwxwmwsge/libtvm_runtime.so(tvm::runtime::RPCEndpoint::ServerLoop()+0xe8) [0x7f9779ae38]
[bt] (7) /data/local/tmp/hexagon_test/2023-06-13T09-53-07-kxwxwmwsge/libtvm_runtime.so(tvm::runtime::RPCEndpoint::HandleUntilReturnEvent(bool, std::function<void (tvm::runtime::TVMArgs)>)+0x124) [0x7f9779a6fc]
[bt] (6) /data/local/tmp/hexagon_test/2023-06-13T09-53-07-kxwxwmwsge/libtvm_runtime.so(tvm::runtime::RPCEndpoint::EventHandler::HandleNextEvent(bool, bool, std::function<void (tvm::runtime::TVMArgs)>)+0x154) [0x7f977a50ec]
[bt] (5) /data/local/tmp/hexagon_test/2023-06-13T09-53-07-kxwxwmwsge/libtvm_runtime.so(tvm::runtime::RPCEndpoint::EventHandler::HandleProcessPacket(std::function<void (tvm::runtime::TVMArgs)>)+0x1c4) [0x7f977a4edc]
[bt] (4) /data/local/tmp/hexagon_test/2023-06-13T09-53-07-kxwxwmwsge/libtvm_runtime.so(tvm::runtime::RPCEndpoint::EventHandler::HandleInitServer()+0x1b4) [0x7f977a385c]
[bt] (3) /data/local/tmp/hexagon_test/2023-06-13T09-53-07-kxwxwmwsge/libtvm_runtime.so(+0x186578) [0x7f977fa578]
[bt] (2) /data/local/tmp/hexagon_test/2023-06-13T09-53-07-kxwxwmwsge/libtvm_runtime.so(+0x186178) [0x7f977fa178]
[bt] (1) ./tvm_rpc_android(tvm::runtime::detail::LogFatal::Entry::Finalize()+0x88) [0x556726f5b0]
[bt] (0) /data/local/tmp/hexagon_test/2023-06-13T09-53-07-kxwxwmwsge/libtvm_runtime.so(tvm::runtime::Backtrace[abi:cxx11]()+0x30) [0x7f97716d30]
File "/home/osboxes/tvm/src/runtime/rpc/rpc_endpoint.cc", line 376
RPCError: Error caught from RPC call:
[16:30:11] /home/osboxes/tvm/src/runtime/rpc/rpc_endpoint.cc:529: Server[SockServerLoop]: Error caught from session constructor tvm.contrib.hexagon.create_hexagon_session:
[16:30:11] /home/osboxes/tvm/src/runtime/hexagon/rpc/android/session.cc:56:
---------------------------------------------------------------
An error occurred during the execution of TVM.
For more information, please see: https://tvm.apache.org/docs/errors.html
---------------------------------------------------------------
Check failed: (rc == AEE_SUCCESS) is false: hexagon_rpc_open failed. URI: file:///libhexagon_rpc_skel.so?hexagon_rpc_skel_handle_invoke&_modver=1.0&_dom=cdsp
Any guess on how to fix this?