FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Reflect TF's own build instructions (from their Dockerfile). · HadokenCode/docker-python@fac0bf0 · GitHub

Commit fac0bf0

Browse files
Seb Boving
committed
Reflect TF's own build instructions (from their Dockerfile).
1 parent da9877f commit fac0bf0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎Dockerfile‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ ENV TF_NEED_CUDA=1
8787
ENV TF_CUDA_VERSION=9.1
8888
# Precompile for Tesla k80 and p100. See https://developer.nvidia.com/cuda-gpus.
8989
ENV TF_CUDA_COMPUTE_CAPABILITIES=3.7,6.0
90+
ENV TF_CUDNN_VERSION=7
9091
RUN apt-get install -y python-software-properties zip && \
9192
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list && \
9293
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list && \
@@ -99,8 +100,8 @@ RUN apt-get install -y python-software-properties zip && \
99100
curl https://bazel.build/bazel-release.pub.gpg | apt-key add - && \
100101
apt-get update && apt-get install -y bazel && apt-get upgrade -y bazel && \
101102
cd /usr/local/src && git clone https://github.com/tensorflow/tensorflow && \
102-
cd tensorflow && echo "\n" | ./configure && \
103-
bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package && \
103+
cd tensorflow && cat /dev/null | ./configure && \
104+
bazel build --config=opt --config=cuda --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" //tensorflow/tools/pip_package:build_pip_package && \
104105
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg && \
105106
pip install /tmp/tensorflow_pkg/tensorflow*.whl && \
106107
rm -Rf /tmp/tensorflow_pkg

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL