Skip to content

Commit bc3af14

Browse files
committed
transformation for cuBLAS
1 parent a807130 commit bc3af14

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tensorflow-whl/Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM 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.
55
ENV 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.
6672
RUN 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
7478
RUN cd /usr/local/src/tensorflow && \

0 commit comments

Comments
 (0)