Skip to content

Commit

Permalink
Automated rollback of commit 220e8e0
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 249052565
  • Loading branch information
aaroey authored and tensorflower-gardener committed May 20, 2019
1 parent ba6a887 commit 935ac2b
Show file tree
Hide file tree
Showing 21 changed files with 71 additions and 50 deletions.
6 changes: 4 additions & 2 deletions tensorflow/tools/ci_build/Dockerfile.gpu
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ RUN cp -P /usr/include/cudnn.h /usr/local/cuda/include
RUN cp -P /usr/lib/x86_64-linux-gnu/libcudnn* /usr/local/cuda/lib64

# Installs TensorRT, which is not included in NVIDIA Docker containers.
RUN apt-get update && apt-get install -y --no-install-recommends \
libnvinfer5=5.1.5-1+cuda10.0 libnvinfer-dev=5.1.5-1+cuda10.0
RUN apt-get update \
&& apt-get install nvinfer-runtime-trt-repo-ubuntu1604-5.0.2-ga-cuda10.0 \
&& apt-get update \
&& apt-get install -y --no-install-recommends libnvinfer5=5.0.2-1+cuda10.0 libnvinfer-dev=5.0.2-1+cuda10.0

# Copy and run the install scripts.
COPY install/*.sh /install/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates
ENV CUDA_VERSION 10.0.130
ENV CUDA_PKG_VERSION 10-0=$CUDA_VERSION-1
ENV CUDNN_VERSION 7.3.1.20
ENV TENSORRT_VERSION 5.1.5
ENV TENSORRT_VERSION 5.0.2
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
ENV NVIDIA_REQUIRE_CUDA "cuda>=10.0,driver>=410"
ENV NVIDIA_VISIBLE_DEVICES all
Expand Down Expand Up @@ -47,6 +47,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libcudnn7=$CUDNN_VERSION-1+cuda10.0 \
libcudnn7=$CUDNN_VERSION-1+cuda10.0 \
libcudnn7-dev=$CUDNN_VERSION-1+cuda10.0 \
nvinfer-runtime-trt-repo-ubuntu1604-$TENSORRT_VERSION-ga-cuda10.0 && \
apt-get update && apt-get install -y --no-install-recommends \
libnvinfer5=$TENSORRT_VERSION-1+cuda10.0 \
libnvinfer-dev=$TENSORRT_VERSION-1+cuda10.0 && \
ln -s cuda-10.0 /usr/local/cuda && \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ENV PATH /usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH}
ENV NVIDIA_VISIBLE_DEVICES all
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
ENV NVIDIA_REQUIRE_CUDA "cuda>=9.0"
ENV TENSORRT_VERSION 5.1.5
ENV TENSORRT_VERSION 5.0.2
ENV CUDNN_VERSION 7.1.4.18

# TODO(b/110903506): /usr/loca/cuda/lib64/stubs should not be needed in
Expand All @@ -52,6 +52,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
cuda-cublas-dev-9-0=9.0.176.4-1 \
libcudnn7-dev=$CUDNN_VERSION-1+cuda9.0 \
libcudnn7=$CUDNN_VERSION-1+cuda9.0 \
nvinfer-runtime-trt-repo-ubuntu1604-$TENSORRT_VERSION-ga-cuda9.0 && \
apt-get update && apt-get install -y --no-install-recommends \
libnvinfer5=$TENSORRT_VERSION-1+cuda9.0 \
libnvinfer-dev=$TENSORRT_VERSION-1+cuda9.0 && \
ln -s cuda-9.0 /usr/local/cuda && \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# throughout. Please refer to the TensorFlow dockerfiles documentation
# for more information.

ARG UBUNTU_VERSION=18.04
ARG UBUNTU_VERSION=16.04

FROM ubuntu:${UBUNTU_VERSION} as base

Expand Down
2 changes: 1 addition & 1 deletion tensorflow/tools/dockerfiles/dockerfiles/cpu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# throughout. Please refer to the TensorFlow dockerfiles documentation
# for more information.

ARG UBUNTU_VERSION=18.04
ARG UBUNTU_VERSION=16.04

FROM ubuntu:${UBUNTU_VERSION} as base

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# throughout. Please refer to the TensorFlow dockerfiles documentation
# for more information.

ARG UBUNTU_VERSION=18.04
ARG UBUNTU_VERSION=16.04

FROM ubuntu:${UBUNTU_VERSION} AS base

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# throughout. Please refer to the TensorFlow dockerfiles documentation
# for more information.

ARG UBUNTU_VERSION=18.04
ARG UBUNTU_VERSION=16.04

FROM ubuntu:${UBUNTU_VERSION} AS base

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# throughout. Please refer to the TensorFlow dockerfiles documentation
# for more information.

ARG UBUNTU_VERSION=18.04
ARG UBUNTU_VERSION=16.04

ARG ARCH=
ARG CUDA=10.0
Expand Down Expand Up @@ -61,10 +61,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
find /usr/local/cuda-${CUDA}/lib64/ -type f -name 'lib*_static.a' -not -name 'libcudart_static.a' -delete && \
rm /usr/lib/${LIB_DIR_PREFIX}-linux-gnu/libcudnn_static_v7.a

RUN [[ "${ARCH}" = "ppc64le" ]] || { apt-get update \
RUN [[ "${ARCH}" = "ppc64le" ]] || { apt-get update && \
apt-get install nvinfer-runtime-trt-repo-ubuntu1604-5.0.2-ga-cuda${CUDA} \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
libnvinfer5=5.1.5-1+cuda${CUDA} \
libnvinfer-dev=5.1.5-1+cuda${CUDA} \
libnvinfer5=5.0.2-1+cuda${CUDA} \
libnvinfer-dev=5.0.2-1+cuda${CUDA} \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*; }

Expand Down
10 changes: 6 additions & 4 deletions tensorflow/tools/dockerfiles/dockerfiles/devel-gpu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# throughout. Please refer to the TensorFlow dockerfiles documentation
# for more information.

ARG UBUNTU_VERSION=18.04
ARG UBUNTU_VERSION=16.04

ARG ARCH=
ARG CUDA=10.0
Expand Down Expand Up @@ -61,10 +61,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
find /usr/local/cuda-${CUDA}/lib64/ -type f -name 'lib*_static.a' -not -name 'libcudart_static.a' -delete && \
rm /usr/lib/${LIB_DIR_PREFIX}-linux-gnu/libcudnn_static_v7.a

RUN [[ "${ARCH}" = "ppc64le" ]] || { apt-get update \
RUN [[ "${ARCH}" = "ppc64le" ]] || { apt-get update && \
apt-get install nvinfer-runtime-trt-repo-ubuntu1604-5.0.2-ga-cuda${CUDA} \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
libnvinfer5=5.1.5-1+cuda${CUDA} \
libnvinfer-dev=5.1.5-1+cuda${CUDA} \
libnvinfer5=5.0.2-1+cuda${CUDA} \
libnvinfer-dev=5.0.2-1+cuda${CUDA} \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# throughout. Please refer to the TensorFlow dockerfiles documentation
# for more information.

ARG UBUNTU_VERSION=18.04
ARG UBUNTU_VERSION=16.04

ARG ARCH=
ARG CUDA=10.0
Expand Down Expand Up @@ -50,9 +50,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
software-properties-common \
unzip

RUN [ ${ARCH} = ppc64le ] || (apt-get update \
&& apt-get install -y --no-install-recommends \
libnvinfer5=5.1.5-1+cuda${CUDA} \
RUN [ ${ARCH} = ppc64le ] || (apt-get update && \
apt-get install nvinfer-runtime-trt-repo-ubuntu1604-5.0.2-ga-cuda${CUDA} \
&& apt-get update \
&& apt-get install -y --no-install-recommends libnvinfer5=5.0.2-1+cuda${CUDA} \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*)

Expand Down
9 changes: 5 additions & 4 deletions tensorflow/tools/dockerfiles/dockerfiles/gpu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# throughout. Please refer to the TensorFlow dockerfiles documentation
# for more information.

ARG UBUNTU_VERSION=18.04
ARG UBUNTU_VERSION=16.04

ARG ARCH=
ARG CUDA=10.0
Expand Down Expand Up @@ -50,9 +50,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
software-properties-common \
unzip

RUN [ ${ARCH} = ppc64le ] || (apt-get update \
&& apt-get install -y --no-install-recommends \
libnvinfer5=5.1.5-1+cuda${CUDA} \
RUN [ ${ARCH} = ppc64le ] || (apt-get update && \
apt-get install nvinfer-runtime-trt-repo-ubuntu1604-5.0.2-ga-cuda${CUDA} \
&& apt-get update \
&& apt-get install -y --no-install-recommends libnvinfer5=5.0.2-1+cuda${CUDA} \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# throughout. Please refer to the TensorFlow dockerfiles documentation
# for more information.

ARG UBUNTU_VERSION=18.04
ARG UBUNTU_VERSION=16.04

FROM ubuntu:${UBUNTU_VERSION} as base

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# throughout. Please refer to the TensorFlow dockerfiles documentation
# for more information.

ARG UBUNTU_VERSION=18.04
ARG UBUNTU_VERSION=16.04

FROM ubuntu:${UBUNTU_VERSION} as base

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# throughout. Please refer to the TensorFlow dockerfiles documentation
# for more information.

ARG UBUNTU_VERSION=18.04
ARG UBUNTU_VERSION=16.04

FROM ubuntu:${UBUNTU_VERSION} AS base

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# throughout. Please refer to the TensorFlow dockerfiles documentation
# for more information.

ARG UBUNTU_VERSION=18.04
ARG UBUNTU_VERSION=16.04

FROM ubuntu:${UBUNTU_VERSION} AS base

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# throughout. Please refer to the TensorFlow dockerfiles documentation
# for more information.

ARG UBUNTU_VERSION=18.04
ARG UBUNTU_VERSION=16.04

ARG ARCH=
ARG CUDA=10.0
Expand Down Expand Up @@ -61,10 +61,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
find /usr/local/cuda-${CUDA}/lib64/ -type f -name 'lib*_static.a' -not -name 'libcudart_static.a' -delete && \
rm /usr/lib/${LIB_DIR_PREFIX}-linux-gnu/libcudnn_static_v7.a

RUN [[ "${ARCH}" = "ppc64le" ]] || { apt-get update \
RUN [[ "${ARCH}" = "ppc64le" ]] || { apt-get update && \
apt-get install nvinfer-runtime-trt-repo-ubuntu1604-5.0.2-ga-cuda${CUDA} \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
libnvinfer5=5.1.5-1+cuda${CUDA} \
libnvinfer-dev=5.1.5-1+cuda${CUDA} \
libnvinfer5=5.0.2-1+cuda${CUDA} \
libnvinfer-dev=5.0.2-1+cuda${CUDA} \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# throughout. Please refer to the TensorFlow dockerfiles documentation
# for more information.

ARG UBUNTU_VERSION=18.04
ARG UBUNTU_VERSION=16.04

ARG ARCH=
ARG CUDA=10.0
Expand Down Expand Up @@ -61,10 +61,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
find /usr/local/cuda-${CUDA}/lib64/ -type f -name 'lib*_static.a' -not -name 'libcudart_static.a' -delete && \
rm /usr/lib/${LIB_DIR_PREFIX}-linux-gnu/libcudnn_static_v7.a

RUN [[ "${ARCH}" = "ppc64le" ]] || { apt-get update \
RUN [[ "${ARCH}" = "ppc64le" ]] || { apt-get update && \
apt-get install nvinfer-runtime-trt-repo-ubuntu1604-5.0.2-ga-cuda${CUDA} \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
libnvinfer5=5.1.5-1+cuda${CUDA} \
libnvinfer-dev=5.1.5-1+cuda${CUDA} \
libnvinfer5=5.0.2-1+cuda${CUDA} \
libnvinfer-dev=5.0.2-1+cuda${CUDA} \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# throughout. Please refer to the TensorFlow dockerfiles documentation
# for more information.

ARG UBUNTU_VERSION=18.04
ARG UBUNTU_VERSION=16.04

ARG ARCH=
ARG CUDA=10.0
Expand Down Expand Up @@ -50,9 +50,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
software-properties-common \
unzip

RUN [ ${ARCH} = ppc64le ] || (apt-get update \
&& apt-get install -y --no-install-recommends \
libnvinfer5=5.1.5-1+cuda${CUDA} \
RUN [ ${ARCH} = ppc64le ] || (apt-get update && \
apt-get install nvinfer-runtime-trt-repo-ubuntu1604-5.0.2-ga-cuda${CUDA} \
&& apt-get update \
&& apt-get install -y --no-install-recommends libnvinfer5=5.0.2-1+cuda${CUDA} \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# throughout. Please refer to the TensorFlow dockerfiles documentation
# for more information.

ARG UBUNTU_VERSION=18.04
ARG UBUNTU_VERSION=16.04

ARG ARCH=
ARG CUDA=10.0
Expand Down Expand Up @@ -50,9 +50,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
software-properties-common \
unzip

RUN [ ${ARCH} = ppc64le ] || (apt-get update \
&& apt-get install -y --no-install-recommends \
libnvinfer5=5.1.5-1+cuda${CUDA} \
RUN [ ${ARCH} = ppc64le ] || (apt-get update && \
apt-get install nvinfer-runtime-trt-repo-ubuntu1604-5.0.2-ga-cuda${CUDA} \
&& apt-get update \
&& apt-get install -y --no-install-recommends libnvinfer5=5.0.2-1+cuda${CUDA} \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
find /usr/local/cuda-${CUDA}/lib64/ -type f -name 'lib*_static.a' -not -name 'libcudart_static.a' -delete && \
rm /usr/lib/${LIB_DIR_PREFIX}-linux-gnu/libcudnn_static_v7.a

RUN [[ "${ARCH}" = "ppc64le" ]] || { apt-get update \
RUN [[ "${ARCH}" = "ppc64le" ]] || { apt-get update && \
apt-get install nvinfer-runtime-trt-repo-ubuntu1804-5.0.2-ga-cuda${CUDA} \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
libnvinfer5=5.1.5-1+cuda${CUDA} \
libnvinfer-dev=5.1.5-1+cuda${CUDA} \
libnvinfer5=5.0.2-1+cuda${CUDA} \
libnvinfer-dev=5.0.2-1+cuda${CUDA} \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
software-properties-common \
unzip

RUN [ ${ARCH} = ppc64le ] || (apt-get update \
&& apt-get install -y --no-install-recommends \
libnvinfer5=5.1.5-1+cuda${CUDA} \
RUN [ ${ARCH} = ppc64le ] || (apt-get update && \
apt-get install nvinfer-runtime-trt-repo-ubuntu1804-5.0.2-ga-cuda${CUDA} \
&& apt-get update \
&& apt-get install -y --no-install-recommends libnvinfer5=5.0.2-1+cuda${CUDA} \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*)

Expand Down

0 comments on commit 935ac2b

Please sign in to comment.