tqchen commented on pull request #7875:
URL: https://github.com/apache/tvm/pull/7875#issuecomment-832848378


   Thanks @apeskov . This is an important step. Would be great if we can think 
about de-couple further to reverse the dependency. (e.g. make the macho depend 
on libtvm as a plugin).
   
   The main rationale is that depending on the license we may not want to 
directly make this as a submodule(which means we will package and distribute 
the source by default and there might be some license complications).
   
   Here is an idea:
   - We create another plugin module that depends on libtvm which registers an 
overrided version of so loader.
   - see https://github.com/apache/tvm/blob/main/src/runtime/dso_library.cc#L93
   - We can then run a plugin that registers the new loader back to TVM. see an 
example here https://github.com/apache/tvm/tree/main/apps/extension
   
   This way we do not need to hijack the dso library 
   
   
   
   
   


-- 
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]


Reply via email to