Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Add CUDA 7.5 and 8.0 Dockerfiles (#4114)
Browse files Browse the repository at this point in the history
* Add CUDA 7.5 and 8.0 Dockerfiles

* Use ~/mxnet as the workdir, set PYTHONPATH in dockerfile
  • Loading branch information
pineking authored and piiswrong committed Dec 7, 2016
1 parent 092ff44 commit 3f6cc9d
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 17 deletions.
25 changes: 25 additions & 0 deletions docker/cuda/7.5/Dockerfile
@@ -0,0 +1,25 @@
FROM nvidia/cuda:7.5-cudnn5-devel
MAINTAINER Qingsong Liu <liuqs.ustc@gmail.com>

RUN apt-get update && apt-get install -y \
git \
libopenblas-dev \
libopencv-dev \
python-dev \
python-numpy \
python-setuptools \
wget \
python-pip \
unzip

RUN cd /root && git clone --recursive https://github.com/dmlc/mxnet && cd mxnet && \
cp make/config.mk . && \
sed -i 's/USE_BLAS = atlas/USE_BLAS = openblas/g' config.mk && \
sed -i 's/USE_CUDA = 0/USE_CUDA = 1/g' config.mk && \
sed -i 's/USE_CUDA_PATH = NONE/USE_CUDA_PATH = \/usr\/local\/cuda/g' config.mk && \
sed -i 's/USE_CUDNN = 0/USE_CUDNN = 1/g' config.mk && \
make -j"$(nproc)"

ENV PYTHONPATH /root/mxnet/python

WORKDIR /root/mxnet
25 changes: 25 additions & 0 deletions docker/cuda/8.0/Dockerfile
@@ -0,0 +1,25 @@
FROM nvidia/cuda:8.0-cudnn5-devel
MAINTAINER Qingsong Liu <liuqs.ustc@gmail.com>

RUN apt-get update && apt-get install -y \
git \
libopenblas-dev \
libopencv-dev \
python-dev \
python-numpy \
python-setuptools \
wget \
python-pip \
unzip

RUN cd /root && git clone --recursive https://github.com/dmlc/mxnet && cd mxnet && \
cp make/config.mk . && \
sed -i 's/USE_BLAS = atlas/USE_BLAS = openblas/g' config.mk && \
sed -i 's/USE_CUDA = 0/USE_CUDA = 1/g' config.mk && \
sed -i 's/USE_CUDA_PATH = NONE/USE_CUDA_PATH = \/usr\/local\/cuda/g' config.mk && \
sed -i 's/USE_CUDNN = 0/USE_CUDNN = 1/g' config.mk && \
make -j"$(nproc)"

ENV PYTHONPATH /root/mxnet/python

WORKDIR /root/mxnet
17 changes: 0 additions & 17 deletions docker/cuda/Dockerfile

This file was deleted.

0 comments on commit 3f6cc9d

Please sign in to comment.