You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/10/30 14:52:44 UTC

[GitHub] [tvm] tqchen edited a comment on issue #9362: [Bug] Stop using RTLD_GLOBAL or fix symbol crash with PyTorch by other means

tqchen edited a comment on issue #9362:
URL: https://github.com/apache/tvm/issues/9362#issuecomment-955263494


   OK, digged a bit into this. I think I know the possible cause. This is because of the conflict of LLVM symbols(due to different versions of LLVM being used). PyTorch also starts to ship with LLVM. To avoid the problem, we need to do two things
   
   - Turn on static linking of LLVM, this will directly link llvm code into libtvm without relying on dynamic library (that creates global symbols) 
      - `set(USE_LLVM "/path/to/llvm-config --link-static")` 
   -  Turn on `set(HIDE_PRIVATE_SYMBOLS ON)`. This will effectively hide the LLVM related symbols when we load globally from pytorch.
   
   I did a quick experiment locally and when we turn both options ON, things are good, and there will be conflict with either option off.
   
   


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

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org