File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 11FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04 AS nvidia
2- FROM gcr.io/deeplearning-platform-release/base-cpu:latest
2+ FROM gcr.io/deeplearning-platform-release/base-cpu:m46
33
44# Avoid interactive configuration prompts/dialogs during apt-get.
55ENV DEBIAN_FRONTEND=noninteractive
@@ -62,13 +62,17 @@ RUN apt-get install -y gnupg zip openjdk-8-jdk && \
6262 dpkg -i bazel_*.deb && \
6363 rm bazel_*.deb
6464
65+ # CUDA 10.1 changed the location of the toolkit (libcublas): https://forums.developer.nvidia.com/t/cublas-for-10-1-is-missing/71015/17
66+ RUN cp /usr/local/cuda-10.2/targets/x86_64-linux/include/cublas_api.h /usr/local/cuda-10.1/targets/x86_64-linux/include/ && \
67+ cp /usr/local/cuda-10.2/lib64/libcublas.so.10.2.2.214 /usr/local/cuda-10.1/lib64/ && \
68+ ln /usr/local/cuda-10.1/lib64/libcublas.so.10.2.2.214 /usr/local/cuda-10.1/lib64/libcublas.so.10.1 && \
69+ ln -s /usr/local/cuda-10.1/lib64/libcublas.so.10.1 /usr/local/cuda-10.1/lib64/libcublas.so
70+
6571# Fetch TensorFlow & install dependencies.
6672RUN cd /usr/local/src && \
6773 git clone https://github.com/tensorflow/tensorflow && \
6874 cd tensorflow && \
69- git checkout tags/v2.3.1 && \
70- pip install keras_applications --no-deps && \
71- pip install keras_preprocessing --no-deps
75+ git checkout tags/v2.3.1
7276
7377# Create a TensorFlow wheel for CPU
7478RUN cd /usr/local/src/tensorflow && \
You can’t perform that action at this time.
0 commit comments