Skip to content

Commit fccccab

Browse files
authored
updated CUDA to version 10 (#1138)
* updated CUDA to version 10 * updated tensorflow * added comment about NVIDIA_REQUIRE_CUDA env varOF
1 parent d9fe712 commit fccccab

File tree

4 files changed

+20
-14
lines changed

4 files changed

+20
-14
lines changed

components/cuda/docker-compose.cuda.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,9 @@ services:
1515
environment:
1616
NVIDIA_VISIBLE_DEVICES: all
1717
NVIDIA_DRIVER_CAPABILITIES: compute,utility
18-
NVIDIA_REQUIRE_CUDA: "cuda>=9.0"
18+
# That environment variable is used by the Nvidia Container Runtime.
19+
# The Nvidia Container Runtime parses this as:
20+
# :space:: logical OR
21+
# ,: Logical AND
22+
# https://gitlab.com/nvidia/container-images/cuda/issues/31#note_149432780
23+
NVIDIA_REQUIRE_CUDA: "cuda>=10.0 brand=tesla,driver>=384,driver<385 brand=tesla,driver>=410,driver<411"

components/cuda/install.sh

+12-11
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,25 @@ echo "$NVIDIA_GPGKEY_SUM cudasign.pub" | sha256sum -c --strict - && rm cudasign
1414
echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 /" > /etc/apt/sources.list.d/cuda.list && \
1515
echo "deb http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 /" > /etc/apt/sources.list.d/nvidia-ml.list
1616

17-
CUDA_VERSION=9.0.176
18-
NCCL_VERSION=2.1.15
19-
CUDNN_VERSION=7.6.2.24
20-
CUDA_PKG_VERSION="9-0=${CUDA_VERSION}-1"
17+
CUDA_VERSION=10.0.130
18+
NCCL_VERSION=2.5.6
19+
CUDNN_VERSION=7.6.5.32
20+
CUDA_PKG_VERSION="10-0=$CUDA_VERSION-1"
2121
echo 'export PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH}' >> ${HOME}/.bashrc
2222
echo 'export LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64:${LD_LIBRARY_PATH}' >> ${HOME}/.bashrc
2323

2424
apt-get update && apt-get install -y --no-install-recommends --allow-unauthenticated \
25-
libprotobuf-dev \
26-
libprotoc-dev \
27-
protobuf-compiler \
2825
cuda-cudart-$CUDA_PKG_VERSION \
26+
cuda-compat-10-0 \
2927
cuda-libraries-$CUDA_PKG_VERSION \
30-
libnccl2=$NCCL_VERSION-1+cuda9.0 \
31-
libcudnn7=$CUDNN_VERSION-1+cuda9.0 && \
32-
ln -s cuda-9.0 /usr/local/cuda && \
28+
cuda-nvtx-$CUDA_PKG_VERSION \
29+
libnccl2=$NCCL_VERSION-1+cuda10.0 \
30+
libcudnn7=$CUDNN_VERSION-1+cuda10.0 && \
31+
ln -s cuda-10.0 /usr/local/cuda && \
32+
apt-mark hold libnccl2 libcudnn7 && \
3333
rm -rf /var/lib/apt/lists/* \
3434
/etc/apt/sources.list.d/nvidia-ml.list /etc/apt/sources.list.d/cuda.list
3535

3636
python3 -m pip uninstall -y tensorflow
37-
python3 -m pip install --no-cache-dir tensorflow-gpu==1.13.1
37+
python3 -m pip install --no-cache-dir tensorflow-gpu==1.15.2
38+

cvat/requirements/base.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ django-rest-auth[with_social]==0.9.5
3939
cython==0.29.13
4040
matplotlib==3.0.3
4141
scikit-image==0.15.0
42-
tensorflow==1.13.1
42+
tensorflow==1.15.2
4343
keras==2.2.5
4444
opencv-python==4.1.0.25
4545
h5py==2.9.0

utils/tfrecords/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
argparse==1.1
2-
tensorflow==1.13.1
2+
tensorflow==1.15.2
33
pathlib==1.0.1

0 commit comments

Comments
 (0)