-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8708 from Yancey1989/fix_manylinux_nccl_version
Fix nccl version in manylinux develop Docker image
- Loading branch information
Showing
2 changed files
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
DEB="nccl-repo-ubuntu1604-2.1.4-ga-cuda8.0_1-1_amd64.deb" | ||
DIR="/nccl2" | ||
mkdir -p $DIR | ||
# we cached the nccl2 deb package in BOS, so we can download it with wget | ||
# install nccl2: http://docs.nvidia.com/deeplearning/sdk/nccl-install-guide/index.html#down | ||
wget -O $DIR/$DEB \ | ||
"http://nccl2-deb.gz.bcebos.com/nccl-repo-ubuntu1604-2.1.4-ga-cuda8.0_1-1_amd64.deb?responseContentDisposition=attachment" | ||
|
||
cd $DIR && ar x $DEB && tar xf data.tar.xz | ||
DEBS=$(find ./var/ -name "*.deb") | ||
for sub_deb in $DEBS; do | ||
echo $sub_deb | ||
ar x $sub_deb && tar xf data.tar.xz | ||
done | ||
mv -f usr/include/nccl.h /usr/local/include/ | ||
mv -f usr/lib/libnccl* /usr/local/lib/ | ||
rm -rf $DIR |