46 lines
1.7 KiB
Docker
46 lines
1.7 KiB
Docker
# Copyright 2026 The TensorFlow Authors. All Rights Reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
# ==============================================================================
|
|
|
|
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
|