Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pytorch/tensorexpr] Create LLJIT instance with an ObjectLinkingLayer #103824

Closed
wants to merge 1 commit into from

Conversation

skc7
Copy link
Contributor

@skc7 skc7 commented Jun 19, 2023

  • Upstream LLVM switched LLJIT's default JIT linker for ELF/x86-64 to JITLink: commit. 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.

cc @EikanWang @jgong5 @wenzhe-nrv @sanchitintel @jeffdaily

@pytorch-bot
Copy link

pytorch-bot bot commented Jun 19, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/103824

Note: Links to docs will display an error until the docs builds have been completed.

✅ 3 Unrelated Failures

As of commit 05fbe78:

UNSTABLE - The following jobs failed but were likely due to flakiness present on trunk and has been marked as unstable:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

Upstream LLVM switched LLJIT's default JIT linker for ELF/x86-64 to JITLink.
This patch updates PytorchLLVMJITImpl to set ObjectLinkingLayer on LLJIT creation.
@janeyx99 janeyx99 added oncall: jit Add this issue/PR to JIT oncall triage queue triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module labels Jun 21, 2023
@facebook-github-bot
Copy link
Contributor

@davidberard98 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@jeffdaily jeffdaily added the ciflow/trunk Trigger trunk jobs on your pull request label Jun 22, 2023
@davidberard98
Copy link
Contributor

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

jithunnair-amd pushed a commit to ROCm/pytorch that referenced this pull request Jul 3, 2023
…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)
jithunnair-amd pushed a commit to ROCm/pytorch that referenced this pull request Jul 3, 2023
…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)
jithunnair-amd pushed a commit to ROCm/pytorch that referenced this pull request Jul 3, 2023
…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)
jithunnair-amd pushed a commit to ROCm/pytorch that referenced this pull request Jul 3, 2023
…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)
jithunnair-amd pushed a commit to ROCm/pytorch that referenced this pull request Jul 3, 2023
…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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request Merged NNC oncall: jit Add this issue/PR to JIT oncall triage queue open source release notes: jit release notes category triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants