Skip to content

Conversation

cbalioglu
Copy link
Contributor

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.

@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Feb 4, 2021

💊 CI failures summary and remediations

As 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.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a 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 cbalioglu requested a review from ezyang February 4, 2021 21:05
@ezyang ezyang requested review from cpuhrsch and malfet and removed request for ezyang February 5, 2021 15:13
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.
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a 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.

@facebook-github-bot
Copy link
Contributor

@cbalioglu merged this pull request in d22f700.

xsacha pushed a commit to xsacha/pytorch that referenced this pull request Mar 31, 2021
)

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants