-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Link torch_global_deps to libtbb.so if USE_TBB is enabled #51741
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
Conversation
💊 CI failures summary and remediationsAs of commit 21546e8 (more details on the Dr. CI page): ✅ None of the CI failures appear to be your fault 💚
🚧 1 ongoing upstream failure:These were probably caused by upstream breakages that are not fixed yet.
This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group. |
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.
@cbalioglu has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Some distributions of MKL such as the one in the Conda default channel have an implicit dependency to TBB even though they do not list it explicitly in their ELF dynamic section (DT_NEEDED). Pre-loading torch_global_deps into a process that uses such an MKL distribution fails with an unresolved symbol error due to missing libtbb.so. This code change forces torch_global_deps to load libtbb.so into the process to avoid such issues. More over although we distribute our own TBB build, it is a widely-used third-party library and the same global namespace treatment rules should apply to it.
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.
@cbalioglu has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@cbalioglu merged this pull request in d22f700. |
) Summary: Some distributions of MKL such as the one in the Conda default channel have an implicit dependency to TBB even though they do not list it explicitly in their ELF dynamic section (DT_NEEDED). Pre-loading torch_global_deps into a process that uses such an MKL distribution fails with an unresolved symbol error due to missing libtbb.so. This code change forces torch_global_deps to load libtbb.so into the process to avoid such issues. More over although we distribute our own TBB build, it is a widely-used third-party library and the same global namespace treatment rules should apply to it. Pull Request resolved: pytorch#51741 Reviewed By: malfet Differential Revision: D26261214 Pulled By: cbalioglu fbshipit-source-id: 94491275f8ec82d5917695e57dd766a10da92726
Some distributions of MKL such as the one in the Conda default channel have an implicit dependency to TBB even though they do not list it explicitly in their ELF dynamic section (DT_NEEDED). Pre-loading torch_global_deps into a process that uses such an MKL distribution fails with an unresolved symbol error due to missing libtbb.so. This code change forces torch_global_deps to load libtbb.so into the process to avoid such issues.
More over although we distribute our own TBB build, it is a widely-used third-party library and the same global namespace treatment rules should apply to it.