You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by Andreas Diavastos via Apache TVM Discuss <no...@discuss.tvm.ai> on 2022/02/21 15:24:30 UTC

[Apache TVM Discuss] [Questions] Adding new device using VTA API


Hello,

We 've build a gem5 implementation of a VTA-like architecture that uses the VTA API. We are trying to run a simple application from VTA TVM on our implementation but always fails with this error: `"Check failed: (allow_missing) is false: Device API ext_dev is not enabled."` It crashes in here:
        
          int dtype_code = kDLFloat;
          int dtype_bits = 32;
          int dtype_lanes = 1;
          int device_type = kDLExtDev;
          int device_id = 0;
          tvm::runtime::Module mod = (*tvm::runtime::Registry::Get("tvm.graph_executor.create"))(json_data, mod_dylib, device_type, device_id);

Just some more information:
- We are using an ARM-based implementation so the TVM runtime and VTA runtime were compiled separately.
- We are using the vta-hw/apps/deploy example as our baseline. We had to make several updates because the one provided was not working mostly due to deprecated calls to the runtimes. 
- We simply replace the VTA fsim runtime with our implementation (the VTA runtime is the same but we use our own VTA driver). However, the execution never reaches the point to call our VTA driver anw.

Any help would be appreciated. If you need any more information please let me know.

Thanks,

andreas





---
[Visit Topic](https://discuss.tvm.apache.org/t/adding-new-device-using-vta-api/12135/1) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/d3e34a5bf0c1e4c4bdce2b87a00b5296427d94b29c1de9a2380e8d2c4b3bd088).