File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
tools/manylinux1/build_scripts Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /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
+
3
11
DIR=" /nccl2"
4
12
mkdir -p $DIR
5
13
# we cached the nccl2 deb package in BOS, so we can download it with wget
6
14
# 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
9
16
10
17
cd $DIR && ar x $DEB && tar xf data.tar.xz
11
18
DEBS=$( find ./var/ -name " *.deb" )
You can’t perform that action at this time.
0 commit comments