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

dist: Change default library to libnccl-net-ofi.so #808

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bwbarrett
Copy link
Contributor

The NGC containers have added some logic to try and support multiple plugins by renaming the OFI plugin to libnccl-net-aws.so. Ignoring the naming for a second, it's clearly useful for us to conform to Sylvain's original expectation that everyone named plugins as libnccl-net-.so and providing a symlink to the generic name where appropriate. This patch causes us to generate the plugin as libnccl-net-ofi.so and create a symlink from libnccl-net-ofi.so to libnccl-net.so for backwards compatibility.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

The NGC containers have added some logic to try and support multiple
plugins by renaming the OFI plugin to libnccl-net-aws.so.  Ignoring
the naming for a second, it's clearly useful for us to conform to
Sylvain's original expectation that everyone named plugins as
libnccl-net-<network>.so and providing a symlink to the generic
name where appropriate.  This patch causes us to generate the plugin
as libnccl-net-ofi.so and create a symlink from libnccl-net-ofi.so to
libnccl-net.so for backwards compatibility.

Signed-off-by: Brian Barrett <[email protected]>
@@ -248,6 +248,12 @@ AS_IF([test -d "${srcdir}/.git" -a -z "${enable_werror}"],
CXXFLAGS="${werror_flags} ${CXXFLAGS} "
CFLAGS="${werror_flags} ${CFLAGS} "])

AC_ARG_ENABLE([nccl-net-symlink],
[AS_HELP_STRING([--disable-nccl-net-symlink],
[Create symlink libnccl-net.so to point at libnccl-net-ofi.so. Useful in all cases where
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This help string is worded incorrectly since it is describing the --disable-nccl-net-symlink option. It should say "Do not create ..." and so on.

@sielicki
Copy link

mind adding a 'fixes: #508' to the commit message?

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.

4 participants