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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to