Skip to content

Commit 6e0b47b

Browse files
author
Yancey
authored
Merge pull request #10260 from Yancey1989/fix_nccl_version
fix nccl2 version in manylinux devel docker image
2 parents 01da258 + d2f54e9 commit 6e0b47b

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

tools/manylinux1/build_scripts/install_nccl2.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
#!/bin/bash
2-
DEB="nccl-repo-ubuntu1604-2.1.4-ga-cuda8.0_1-1_amd64.deb"
2+
VERSION=$(nvcc --version | grep release | grep -oEi "release ([0-9]+)\.([0-9])"| sed "s/release //")
3+
if [ "$VERSION" == "9.0" ]; then
4+
DEB="nccl-repo-ubuntu1604-2.1.15-ga-cuda9.0_1-1_amd64.deb"
5+
URL="http://nccl2-deb.gz.bcebos.com/nccl-repo-ubuntu1604-2.1.15-ga-cuda9.0_1-1_amd64.deb"
6+
else
7+
DEB="nccl-repo-ubuntu1604-2.1.15-ga-cuda8.0_1-1_amd64.deb"
8+
URL="http://nccl2-deb.gz.bcebos.com/nccl-repo-ubuntu1604-2.1.15-ga-cuda8.0_1-1_amd64.deb"
9+
fi
10+
311
DIR="/nccl2"
412
mkdir -p $DIR
513
# we cached the nccl2 deb package in BOS, so we can download it with wget
614
# install nccl2: http://docs.nvidia.com/deeplearning/sdk/nccl-install-guide/index.html#down
7-
wget -O $DIR/$DEB \
8-
"http://nccl2-deb.gz.bcebos.com/nccl-repo-ubuntu1604-2.1.4-ga-cuda8.0_1-1_amd64.deb?responseContentDisposition=attachment"
15+
wget -O $DIR/$DEB $URL
916

1017
cd $DIR && ar x $DEB && tar xf data.tar.xz
1118
DEBS=$(find ./var/ -name "*.deb")

0 commit comments

Comments
 (0)