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

2022-01-08 Thread Yuke Wang via Apache TVM Discuss
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.Crea

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

2022-01-08 Thread masahi via Apache TVM Discuss
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/byo

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

2022-01-08 Thread Yuke Wang via Apache TVM Discuss
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