31 lines
1.1 KiB
Docker
31 lines
1.1 KiB
Docker
FROM nvidia/cuda-ppc64le:9.2-cudnn7-devel-ubuntu16.04
|
|
|
|
LABEL maintainer="William Irons <wdirons@us.ibm.com>"
|
|
|
|
# In the Ubuntu 16.04 images, cudnn is placed in system paths. Move them to
|
|
# /usr/local/cuda
|
|
RUN cp -P /usr/include/cudnn.h /usr/local/cuda/include
|
|
RUN cp -P /usr/lib/powerpc64le-linux-gnu/libcudnn* /usr/local/cuda/lib64
|
|
|
|
# Copy and run the install scripts.
|
|
COPY install/*.sh /install/
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
RUN /install/install_bootstrap_deb_packages.sh
|
|
RUN add-apt-repository -y ppa:openjdk-r/ppa
|
|
RUN /install/install_deb_packages.sh
|
|
RUN /install/install_openblas_ppc64le.sh
|
|
RUN /install/install_hdf5_ppc64le.sh
|
|
RUN /install/install_pip_packages.sh
|
|
RUN /install/install_bazel_from_source.sh
|
|
RUN /install/install_golang_ppc64le.sh
|
|
|
|
# Set up the master bazelrc configuration file.
|
|
COPY install/.bazelrc /etc/bazel.bazelrc
|
|
ENV LD_LIBRARY_PATH /usr/local/cuda/extras/CUPTI/lib64:$LD_LIBRARY_PATH
|
|
|
|
# Configure the build for our CUDA configuration.
|
|
ENV TF_NEED_CUDA 1
|
|
ENV TF_CUDA_COMPUTE_CAPABILITIES 3.0
|
|
ENV TF_CUDA_VERSION 9.2
|
|
ENV CUDA_TOOLKIT_PATH /usr/local/cuda-9.2
|