Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pytorch/tensorexpr] Create LLJIT instance with an ObjectLinkingLayer (…
…pytorch#103824) - Upstream LLVM switched LLJIT's default JIT linker for ELF/x86-64 to JITLink: [commit](llvm/llvm-project@b92839c). This commit mandates clients to use JITLink plugins, following the example in "llvm/examples/OrcV2Examples/LLJITWithCustomObjectLinkingLayer". - Current change updates PytorchLLVMJITImpl to set ObjectLinkingLayer on LLJIT creation. - If setObjectLinkingLayerCreator not set, RTDyldObjectLinkingLayer will be constructed. This is currently causing "Symbols not found: [ llvm_orc_registerEHFrameSectionWrapper ]" error for tests in test_quantization.py when pytorch is built to use latest LLVM. Pull Request resolved: pytorch#103824 Approved by: https://github.com/jeffdaily, https://github.com/davidberard98 (cherry picked from commit d2d3394)
- Loading branch information