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 Pratik Fegade via TVM Discuss <no...@discuss.tvm.ai> on 2020/06/17 20:14:26 UTC

[TVM Discuss] [Application] Building TVM with 'c' runtime support


Hi all,

I see that TVM can lower a tensor computation c code. However when I try to execute this lowered c code, TVM throws an error saying "C Source module cannot execute, to get executable module build TVM with 'c' runtime support". How do I go about building TVM with the said 'c' runtime support?

Thanks!





---
[Visit Topic](https://discuss.tvm.ai/t/building-tvm-with-c-runtime-support/7006/1) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/efaad55836273fbb92903083f63e4fcc1fe2c3798eae3ef484aedb81475be1b7).

[TVM Discuss] [Application] Building TVM with 'c' runtime support

Posted by Pratik Fegade via TVM Discuss <no...@discuss.tvm.ai>.

Okay thanks! That worked.





---
[Visit Topic](https://discuss.tvm.ai/t/building-tvm-with-c-runtime-support/7006/5) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/68f9f7b0ceeac0e017003fd6816803f5578415a5a46906f31ce1b8171a443c12).

[TVM Discuss] [Application] Building TVM with 'c' runtime support

Posted by tqchen via TVM Discuss <no...@discuss.tvm.ai>.

you can call into the specific name you pass to the build function `tvm.build(..., name="myfunc")`.

```
mod["myfunc"](args)
```





---
[Visit Topic](https://discuss.tvm.ai/t/building-tvm-with-c-runtime-support/7006/4) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/bcffd671cb320401a269f72f875e63acb225c379e196932d5fe858453617d9e4).

[TVM Discuss] [Application] Building TVM with 'c' runtime support

Posted by Pratik Fegade via TVM Discuss <no...@discuss.tvm.ai>.

I could export and import the shared object, but I'm unsure about how to invoke the function in the library. I'm getting an error now which says "Check failed: entry_name!= nullptr: Symbol __tvm_main__ is not presented". Is there a shim or something what I'm supposed to call?





---
[Visit Topic](https://discuss.tvm.ai/t/building-tvm-with-c-runtime-support/7006/3) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/5439a2f60b3460d046c6d218967bfe89e3e57d757f008c24576b89e31aef29dd).

[TVM Discuss] [Application] Building TVM with 'c' runtime support

Posted by tqchen via TVM Discuss <no...@discuss.tvm.ai>.

We will need to export the library as a shared library before executing it. You can do `lib.export_library("xyz.so")` then load it back





---
[Visit Topic](https://discuss.tvm.ai/t/building-tvm-with-c-runtime-support/7006/2) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/b91957006f29820896de3291655aa6f64e07a07e1976ddf80985e348e4c8edf1).