comaniac commented on issue #4258: [WIP][TVM] Bring Your Own Codegen to TVM URL: https://github.com/apache/incubator-tvm/pull/4258#issuecomment-558389025 Hi @tqchen, Based on the runtime PR, we are now back to the approach of building external runtime module and integrate it to the DSO module. Specifically, when users invoke `build` and their external codegen attempts to generate a C source module, then we should build an extenral runtime module [here](https://github.com/apache/incubator-tvm/blob/master/python/tvm/build_module.py#L509). The design options are: 1. Build an external.so file using `system("g++ ...)` like we've done before, load it back and import to the DSO module. The drawback is that we will have that external.so file in the disk. 2. Invoke Clang frontend APIs to first compile the generated external code to LLVM IR, and then use `llvm::parseIR` like TVM LLVM backend to get an executable module. The uncertain part for this option is that we have no idea about how to accept compile flags from users. Please let us know which option do you prefer or you have a better solution. Thanks.
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
