Skip to content

Commit 28a8409

Browse files
committed
backport to other distros
1 parent 07f5b31 commit 28a8409

19 files changed

+1432
-420
lines changed

tensorflow/centos-6.6/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ RUN wget "https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh"
2727

2828
COPY build.sh /build.sh
2929
COPY build2.sh /build2.sh
30-
COPY setup_cuda.sh /setup_cuda.sh
30+
COPY cuda.sh /cuda.sh
3131

3232
CMD bash build.sh

tensorflow/centos-6.6/build.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ set -e
44
source /root/.bashrc
55

66
if [ "$USE_GPU" -eq "1" ]; then
7-
bash setup_cuda.sh
7+
export CUDA_HOME="/usr/local/cuda"
8+
alias sudo=""
9+
source cuda.sh
10+
cuda.install $CUDA_VERSION $CUDNN_VERSION $NCCL_VERSION
11+
cd /
812
fi
913

1014
# Enable GCC 6

tensorflow/centos-6.6/build2.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ set -ex
44
gcc --version
55

66
# Install an appropriate Python environment
7+
conda config --add channels conda-forge
78
conda create --yes -n tensorflow python==$PYTHON_VERSION
89
source activate tensorflow
910
conda install --yes numpy wheel bazel==$BAZEL_VERSION
10-
conda install --yes -c conda-forge keras-applications keras-preprocessing
11+
pip install keras-applications keras-preprocessing
1112

1213
# Compile TensorFlow
1314

0 commit comments

Comments
 (0)