Skip to content

Find NCCL2 debians in Tensorflow configure - #22519

Merged
tensorflow-copybara merged 5 commits into
tensorflow:masterfrom
jayfurmanek:nccl2_configure
Oct 2, 2018
Merged

tensorflow-copybara merged 5 commits into
tensorflow:masterfrom
jayfurmanek:nccl2_configure

Conversation

@jayfurmanek

Copy link
Copy Markdown
Contributor

Continuation of #20155

The Tensorlfow configure doesn't work with NCCL2 when it is installed via the debians.
This PR adds code that will handle the following scenarios:

NCCL2 installed via unpacked .tar file and not listed in ldconfig
NCCL2 installed via unpacked .tar file and listed properly in ldconfig
NCCL2 installed via debian file and not listed in ldconfig
NCCL2 installed via debian file and listed properly in ldconfig

The debian places the lib and header in the system paths (/usr/lib/*-linux-gnu and /usr/include). A new environment variable NCCL_HDR_PATH was created to deal with the divergence in the lib and header paths in this scenario. The third_party/nccl/nccl_configure.bzl file was changed to look up the new environment variable for the header location.

@tfboyd

tfboyd commented Sep 27, 2018

Copy link
Copy Markdown
Member

NCCL 2 is open source which should allow us to make this easier. Not to side track the effort. :-)

@jayfurmanek

Copy link
Copy Markdown
Contributor Author

Yup, just posted:
https://docs.nvidia.com/deeplearning/sdk/nccl-release-notes/rel_2.3.5.html
https://github.com/NVIDIA/nccl

I think this PR is still valid for folks that have installed .debs manually on their system or perfer to use the .debs for package management.

@tfboyd

tfboyd commented Sep 27, 2018 via email

Copy link
Copy Markdown
Member

@chsigg chsigg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you very much for taking care of my TODO item. The code looks good to me.

We are working on allowing to build NCCL from source, but it won't be ready for the 1.12 release, so this is a very welcome contribution.

@smit-hinsu

Copy link
Copy Markdown
Contributor

Marking as "ready to pull" to start pull process while tests are running so that this PR can make it to TF 1.12.

@smit-hinsu smit-hinsu added the ready to pull PR ready for merge process label Oct 1, 2018
@tensorflow-copybara
tensorflow-copybara merged commit 49978a8 into tensorflow:master Oct 2, 2018
tensorflow-copybara pushed a commit that referenced this pull request Oct 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes ready to pull PR ready for merge process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants