-
Notifications
You must be signed in to change notification settings - Fork 228
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
Windows use mkl static lib. #1790
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, let's battle test it, started a re-run in https://github.com/pytorch/pytorch/actions/runs/8812796613/job/24205331140
This reverts commit 9f33088.
This reverts commit 9f33088 as it breaks the build, see https://github.com/pytorch/pytorch/actions/runs/8812796613/job/24205331140
@xuhancn reverted, please do not hesitate to open new PR, but this time test it using |
@malfet I don‘t have permittion to submit dummy builder tester PR. |
resubmit #1790 with fix PR #1797. From pytorch issue: pytorch/pytorch#124009 I found libtorch seems use shared mkl lib and missing some mkl dll files. 1. Currently pytorch Linux already use static mkl lib. 2. Windows can also support static mkl lib, I have validated as pytorch/pytorch#116946 Tested in https://github.com/pytorch/pytorch/actions/runs/8836875904/job/24264643410
# Background I have fixed pytorch Windows missing mkl shared library dependency issue: #124009 The solution is change torch_cpu module static link mkl library: 1. pytorch static link mkl PR: #124925 2. builder install mkl static library: pytorch/builder#1790 Double confirmed current build is using mkl static link: #124009 (comment) # Goal Remove setup.py `install_requires` will install mkl shared lib on pytorch Windows. It is not required now, due to we have static linked it. It will reduce the pytorch install network traffic and avoid install useless mkl shared library package. Pull Request resolved: #129493 Approved by: https://github.com/malfet
# Background I have fixed pytorch Windows missing mkl shared library dependency issue: #124009 The solution is change torch_cpu module static link mkl library: 1. pytorch static link mkl PR: #124925 2. builder install mkl static library: pytorch/builder#1790 Double confirmed current build is using mkl static link: #124009 (comment) # Goal Remove setup.py `install_requires` will install mkl shared lib on pytorch Windows. It is not required now, due to we have static linked it. It will reduce the pytorch install network traffic and avoid install useless mkl shared library package. Pull Request resolved: #129493 Approved by: https://github.com/malfet (cherry picked from commit 424068d)
[Windows] remove mkl shared library dependency. (#129493) # Background I have fixed pytorch Windows missing mkl shared library dependency issue: #124009 The solution is change torch_cpu module static link mkl library: 1. pytorch static link mkl PR: #124925 2. builder install mkl static library: pytorch/builder#1790 Double confirmed current build is using mkl static link: #124009 (comment) # Goal Remove setup.py `install_requires` will install mkl shared lib on pytorch Windows. It is not required now, due to we have static linked it. It will reduce the pytorch install network traffic and avoid install useless mkl shared library package. Pull Request resolved: #129493 Approved by: https://github.com/malfet (cherry picked from commit 424068d) Co-authored-by: Xu Han <[email protected]>
From pytorch issue: pytorch/pytorch#124009 I found libtorch seems use shared mkl lib and missing some mkl dll files.
So, this PR will switch pytorch to use static mkl lib.
I have tested PR on my local PC: