gromero commented on issue #10619:
URL: https://github.com/apache/tvm/issues/10619#issuecomment-1068420973


   Pasting here the error before GH vanishes with the logs and we can never 
refer to it anymore in the future:
   
   ```
   [2022-03-15T16:15:01.660Z] =================================== FAILURES 
===================================
   [2022-03-15T16:15:01.660Z] _______________________ 
test_platform_timer[mps3_an547] ________________________
   [2022-03-15T16:15:01.660Z] 
   [2022-03-15T16:15:01.660Z] temp_dir = <tvm.contrib.utils.TempDirectory 
object at 0x7ffb0e7eadd8>
   [2022-03-15T16:15:01.660Z] board = 'mps3_an547', west_cmd = 'west', 
tvm_debug = False
   [2022-03-15T16:15:01.660Z] 
   [2022-03-15T16:15:01.660Z]     @tvm.testing.requires_micro
   [2022-03-15T16:15:01.660Z]     def test_platform_timer(temp_dir, board, 
west_cmd, tvm_debug):
   [2022-03-15T16:15:01.660Z]         """Test compiling the on-device 
runtime."""
   [2022-03-15T16:15:01.660Z]     
   [2022-03-15T16:15:01.660Z]         model = test_utils.ZEPHYR_BOARDS[board]
   [2022-03-15T16:15:01.660Z]         build_config = {"debug": tvm_debug}
   [2022-03-15T16:15:01.660Z]     
   [2022-03-15T16:15:01.660Z]         # NOTE: run test in a nested function so 
cPython will delete arrays before closing the session.
   [2022-03-15T16:15:01.660Z]         def test_basic_add(sess):
   [2022-03-15T16:15:01.660Z]             A_data = tvm.nd.array(np.array([2, 
3], dtype="int8"), device=sess.device)
   [2022-03-15T16:15:01.660Z]             assert (A_data.numpy() == 
np.array([2, 3])).all()
   [2022-03-15T16:15:01.660Z]             B_data = tvm.nd.array(np.array([4], 
dtype="int8"), device=sess.device)
   [2022-03-15T16:15:01.660Z]             assert (B_data.numpy() == 
np.array([4])).all()
   [2022-03-15T16:15:01.660Z]             C_data = tvm.nd.array(np.array([0, 
0], dtype="int8"), device=sess.device)
   [2022-03-15T16:15:01.660Z]             assert (C_data.numpy() == 
np.array([0, 0])).all()
   [2022-03-15T16:15:01.660Z]     
   [2022-03-15T16:15:01.660Z]             system_lib = sess.get_system_lib()
   [2022-03-15T16:15:01.660Z]             time_eval_f = 
system_lib.time_evaluator(
   [2022-03-15T16:15:01.660Z]                 "add", sess.device, number=20, 
repeat=3, min_repeat_ms=40
   [2022-03-15T16:15:01.660Z]             )
   [2022-03-15T16:15:01.660Z]             result = time_eval_f(A_data, B_data, 
C_data)
   [2022-03-15T16:15:01.660Z]             assert (C_data.numpy() == 
np.array([6, 7])).all()
   [2022-03-15T16:15:01.660Z]             assert result.mean > 0
   [2022-03-15T16:15:01.660Z]             assert len(result.results) == 3
   [2022-03-15T16:15:01.660Z]     
   [2022-03-15T16:15:01.660Z]         with _make_add_sess(temp_dir, model, 
board, west_cmd, build_config) as sess:
   [2022-03-15T16:15:01.660Z] >           test_basic_add(sess)
   [2022-03-15T16:15:01.660Z] 
   [2022-03-15T16:15:01.660Z] tests/micro/zephyr/test_zephyr.py:165: 
   [2022-03-15T16:15:01.660Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
   [2022-03-15T16:15:01.660Z] tests/micro/zephyr/test_zephyr.py:148: in 
test_basic_add
   [2022-03-15T16:15:01.660Z]     A_data = tvm.nd.array(np.array([2, 3], 
dtype="int8"), device=sess.device)
   [2022-03-15T16:15:01.660Z] python/tvm/runtime/ndarray.py:577: in array
   [2022-03-15T16:15:01.660Z]     return empty(arr.shape, arr.dtype, 
device).copyfrom(arr)
   [2022-03-15T16:15:01.660Z] python/tvm/runtime/ndarray.py:336: in empty
   [2022-03-15T16:15:01.660Z]     arr = 
_ffi_api.TVMArrayAllocWithScope(shape_ptr, ndim, dtype, device, mem_scope)
   [2022-03-15T16:15:01.660Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
   [2022-03-15T16:15:01.660Z] 
   [2022-03-15T16:15:01.660Z] self = <tvm.runtime.packed_func.PackedFunc object 
at 0x7ffa96bf9c60>
   [2022-03-15T16:15:01.660Z] args = (c_void_p(60685904), 1, int8, 
remote[1]:cpu(0), None), temp_args = []
   [2022-03-15T16:15:01.660Z] values = 
<tvm._ffi._ctypes.packed_func.TVMValue_Array_5 object at 0x7ffb0e7ed158>
   [2022-03-15T16:15:01.660Z] tcodes = 
<tvm._ffi._ctypes.packed_func.c_int_Array_5 object at 0x7ffb0e7ed840>
   [2022-03-15T16:15:01.660Z] 
   [2022-03-15T16:15:01.660Z]     def __call__(self, *args):
   [2022-03-15T16:15:01.660Z]         """Call the function with positional 
arguments
   [2022-03-15T16:15:01.660Z]     
   [2022-03-15T16:15:01.660Z]         args : list
   [2022-03-15T16:15:01.660Z]            The positional arguments to the 
function call.
   [2022-03-15T16:15:01.660Z]         """
   [2022-03-15T16:15:01.660Z]         temp_args = []
   [2022-03-15T16:15:01.660Z]         values, tcodes, num_args = 
_make_tvm_args(args, temp_args)
   [2022-03-15T16:15:01.660Z]         ret_val = TVMValue()
   [2022-03-15T16:15:01.660Z]         ret_tcode = ctypes.c_int()
   [2022-03-15T16:15:01.660Z]         if (
   [2022-03-15T16:15:01.660Z]             _LIB.TVMFuncCall(
   [2022-03-15T16:15:01.660Z]                 self.handle,
   [2022-03-15T16:15:01.660Z]                 values,
   [2022-03-15T16:15:01.660Z]                 tcodes,
   [2022-03-15T16:15:01.660Z]                 ctypes.c_int(num_args),
   [2022-03-15T16:15:01.660Z]                 ctypes.byref(ret_val),
   [2022-03-15T16:15:01.660Z]                 ctypes.byref(ret_tcode),
   [2022-03-15T16:15:01.660Z]             )
   [2022-03-15T16:15:01.660Z]             != 0
   [2022-03-15T16:15:01.660Z]         ):
   [2022-03-15T16:15:01.660Z] >           raise get_last_ffi_error()
   [2022-03-15T16:15:01.660Z] E           tvm._ffi.base.TVMError: 
MicroSessionTimeoutError: failed to read reply message after timeout 10s
   [2022-03-15T16:15:01.660Z] 
   [2022-03-15T16:15:01.660Z] python/tvm/_ffi/_ctypes/packed_func.py:237: 
TVMError
   [2022-03-15T16:15:01.660Z] =============================== warnings summary 
===============================
   [2022-03-15T16:15:01.660Z] 
tests/micro/zephyr/test_zephyr_aot.py::test_tflite[mps3_an547]
   [2022-03-15T16:15:01.660Z]   
/opt/tvm-venv/lib/python3.6/site-packages/flatbuffers/compat.py:19: 
DeprecationWarning: the imp module is deprecated in favour of importlib; see 
the module's documentation for alternative uses
   [2022-03-15T16:15:01.660Z]     import imp
   [2022-03-15T16:15:01.660Z] 
   [2022-03-15T16:15:01.660Z] -- Docs: 
https://docs.pytest.org/en/stable/warnings.html
   [2022-03-15T16:15:01.660Z] - generated xml file: 
/workspace/build/pytest-results/python-microtvm-zephyr-mps3_an547-ctypes.xml -
   [2022-03-15T16:15:01.660Z] =========================== short test summary 
info ============================
   [2022-03-15T16:15:01.660Z] FAILED 
tests/micro/zephyr/test_zephyr.py::test_platform_timer[mps3_an547] - t...
   [2022-03-15T16:15:01.660Z] === 1 failed, 9 passed, 2 skipped, 1 xfailed, 1 
warning in 177.30s (0:02:57) ===
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to