trevor-m opened a new pull request #7436: URL: https://github.com/apache/tvm/pull/7436
After https://github.com/apache/tvm/pull/7417 the cmake rules for TensorRT and ACL BYOC would cause the runtime sources to be compiled twice if both runtime and codegen are enabled together, giving the following error: ``` MakeFiles/tvm_runtime_objs.dir/src/runtime/contrib/tensorrt/tensorrt_runtime.cc.o: In function `tvm::runtime::contrib::TensorRTRuntimeCreate(tvm::runtime::String const&, tvm::runtime::String const&, tvm::runtime::Array<tvm::runtime::String, void> const&)': tensorrt_runtime.cc:(.text+0x4e0): multiple definition of `tvm::runtime::contrib::TensorRTRuntimeCreate(tvm::runtime::String const&, tvm::runtime::String const&, tvm::runtime::Array<tvm::runtime::String, void> const&)' CMakeFiles/tvm_objs.dir/src/runtime/contrib/tensorrt/tensorrt_runtime.cc.o:tensorrt_runtime.cc:(.text+0x4e0): first defined here collect2: error: ld returned 1 exit status CMakeFiles/tvm.dir/build.make:842: recipe for target 'libtvm.so' failed make[2]: *** [libtvm.so] Error 1 CMakeFiles/Makefile2:131: recipe for target 'CMakeFiles/tvm.dir/all' failed make[1]: *** [CMakeFiles/tvm.dir/all] Error 2 Makefile:148: recipe for target 'all' failed make: *** [all] Error 2 ``` @lhutton1 ---------------------------------------------------------------- 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]
