guberti opened a new issue, #12033:
URL: https://github.com/apache/tvm/issues/12033

   Currently, the test 
`tests/micro/arduino/test_arduino_rpc_server.py::test_byoc_microtvm` fails. We 
have a similar test for Zephyr which runs fine, so the issue appears to be 
Arduino-specific. Below is a log of the test failure - it seems like 
`ndarray.h` got moved or something.
   ```
   guberti@guberti-Precision-7540:~/tvm$ python -m pytest 
tests/micro/arduino/test_arduino_rpc_server.py::test_byoc_microtvm 
--arduino-board=due
   [13:59:04] /home/guberti/tvm/src/target/target_kind.cc:163: Warning: Unable 
to detect CUDA version, default to "-arch=sm_20" instead
   enabled targets: llvm
   pytest marker: 
   ====================================================== test session starts 
=======================================================
   platform linux -- Python 3.8.10, pytest-7.1.1, pluggy-0.13.1
   rootdir: /home/guberti/tvm
   plugins: cov-3.0.0, anyio-3.5.0, typeguard-2.13.2
   collected 1 item                                                             
                                                    
   
   tests/micro/arduino/test_arduino_rpc_server.py F                             
                                              [100%]
   
   ============================================================ FAILURES 
============================================================
   ____________________________________________________ test_byoc_microtvm[due] 
_____________________________________________________
   
   board = 'due', arduino_cli_cmd = 'arduino-cli', tvm_debug = False
   workspace_dir = <tvm.contrib.utils.TempDirectory object at 0x7fc46bc0e7f0>
   ... (omitted for brevity) ...
   E           subprocess.CalledProcessError: Command '['arduino-cli', 
'compile', './project/', '--fqbn', 'arduino:sam:arduino_due_x_dbg', 
'--build-path', 
PosixPath('/home/guberti/tvm/tests/micro/arduino/workspace_arduino_rpc_server_due/2022-07-07T13-59-04/project/build')]'
 returned non-zero exit status 1.
   
   python/tvm/micro/project_api/client.py:135: ServerError
   ------------------------------------------------------ Captured stdout call 
------------------------------------------------------
   
   
   Used platform Version Path                                                   
      
   arduino:sam   1.6.12  
/home/guberti/.arduino15/packages/arduino/hardware/sam/1.6.12
   
   ------------------------------------------------------ Captured stderr call 
------------------------------------------------------
   
   
   A new release of Arduino CLI is available: 0.23.0 → 0.24.0
   https://arduino.github.io/arduino-cli/latest/installation/#latest-packages
   
/home/guberti/tvm/tests/micro/arduino/workspace_arduino_rpc_server_due/2022-07-07T13-59-04/project/src/model/default_lib3.c:7:33:
 fatal error: tvm/runtime/ndarray.h: No such file or directory
    #include "tvm/runtime/ndarray.h"
                                    ^
   compilation terminated.
   
   Error during build: exit status 1
   ======================================================== warnings summary 
========================================================
   ../.local/lib/python3.8/site-packages/onnx/mapping.py:27
     /home/guberti/.local/lib/python3.8/site-packages/onnx/mapping.py:27: 
DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. 
To silence this warning, use `object` by itself. Doing this will not modify any 
behavior and is safe. 
     Deprecated in NumPy 1.20; for more details and guidance: 
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
       int(TensorProto.STRING): np.dtype(np.object)
   
   -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
   ==================================================== short test summary info 
=====================================================
   FAILED 
tests/micro/arduino/test_arduino_rpc_server.py::test_byoc_microtvm[due] - 
tvm.micro.project_api.server.ServerError: call...
   ================================================== 1 failed, 1 warning in 
3.13s ==================================================
   ```


-- 
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