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

Fix libgomp linking #99

Merged
merged 1 commit into from
Aug 19, 2019
Merged

Conversation

jean-airoldie
Copy link
Contributor

Closes #95.

@LaurentMazare LaurentMazare merged commit fb79c6c into LaurentMazare:master Aug 19, 2019
@LaurentMazare
Copy link
Owner

Thanks!

@jean-airoldie jean-airoldie deleted the gomp branch August 19, 2019 19:52
mwilliammyers pushed a commit to mwilliammyers/tch-rs that referenced this pull request Sep 3, 2019
senokay pushed a commit to senokay/tch-rs that referenced this pull request Apr 12, 2024
This workaround originates from LaurentMazare#99. This was meant to solve LaurentMazare#95, which
was ultimately found to be caused by an incorrect shared library name.
In fact the current name of "tch-rs" is a result of the subsequent
renaming proposed by LaurentMazare#97, but the original PR was ultimately closed in
favor of the upstream fix instead.

As noted in LaurentMazare#355, libtorch never actually depends on the system libgomp
because it bundles its own version with an already mangled SONAME. There
is a symlink to the unmangled name as well, but that seems only
a compatibility measure for other libraries. Torch-sys doesn't require
any other library, so `-lgomp` can be safely removed.
senokay pushed a commit to senokay/tch-rs that referenced this pull request Apr 12, 2024
This workaround originates from LaurentMazare#99. This was meant to solve LaurentMazare#95, which
was ultimately found to be caused by an incorrect shared library name.
In fact the current name of "tch-rs" is a result of the subsequent
renaming proposed by LaurentMazare#97, but the original PR was ultimately closed in
favor of the upstream fix instead.

As noted in LaurentMazare#355, libtorch never actually depends on the system libgomp
because it bundles its own version with an already mangled SONAME. There
is a symlink to the unmangled name as well, but that seems only
a compatibility measure for other libraries. Torch-sys doesn't require
any other library, so `-lgomp` can be safely removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Linking error tch 0.1.1 & Centos 7
2 participants