You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tvm.apache.org by Yuke Wang via Apache TVM Discuss <no...@discuss.tvm.ai> on 2022/01/08 20:11:39 UTC

[Apache TVM Discuss] [Development] BYOC backend Build Error


After implement my BYOC codegen, I call `relay.build` it returns me error like this 
```
File "../src/target/stackvm/codegen_stackvm.cc", 
TVMError: unknown function call Op(tir.call_pure_extern)
```
Is there any reason and solution to this?





---
[Visit Topic](https://discuss.tvm.apache.org/t/byoc-backend-build-error/11883/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/a48a159a4c154d9a5c90b24ae1182181966b91007f39c4ff3fbf2cce7684837b).

[Apache TVM Discuss] [Development] BYOC backend Build Error

Posted by Yuke Wang via Apache TVM Discuss <no...@discuss.tvm.ai>.

I follow the instructions at here https://tvm.apache.org/docs/dev/how_to/relay_bring_your_own_codegen.html#register-your-codegen to add the backend codegen for `myop`, this is code in my `codegen.cc`
```
runtime::Module MyopCompiler(const ObjectRef& ref) {
  MyopCodegen myop;
  return myop.CreateCSourceModule(ref);
}

TVM_REGISTER_GLOBAL("relay.ext.myop").set_body_typed(myopCompiler);
```





---
[Visit Topic](https://discuss.tvm.apache.org/t/byoc-backend-build-error/11883/3) 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/2e0e6656ebed480d8adaed89008ef54e2b1784dcd7f52183fb2dfba543cf5c4e).

[Apache TVM Discuss] [Development] BYOC backend Build Error

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

First, you shouldn't use `stackvm`. Use llvm for host codegen.

`unknown function call Op(tir.call_pure_extern)` means you have some backend-specific intrinsic functions our codegen doesn't know about. You can dump the intrinsic name.





---
[Visit Topic](https://discuss.tvm.apache.org/t/byoc-backend-build-error/11883/2) 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/b20c74b6d5fdbd1cb67520619c93271076621c710301eddbbad40891613652df).