Skip to content

Commit b8159ba

Browse files
committed
upgrade cuda 10.0
1 parent 8f63218 commit b8159ba

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
FROM lablup/common-base:20.03-py36-cuda10
2+
3+
# Install TensorFlow
4+
ENV TENSORFLOW_VERSION=2.0.2
5+
6+
# Install ipython kernelspec
7+
Run python3 -m ipykernel install --display-name "TensorFlow 2.0.2 on Python 3.6 (CUDA 10)" && \
8+
cat /usr/local/share/jupyter/kernels/python3/kernel.json
9+
10+
RUN python3 -m pip install pip --no-cache-dir \
11+
pandas==1.0.1 \
12+
tensorflow-gpu==${TENSORFLOW_VERSION} \
13+
tensorboard==2.0 \
14+
ngraph-tensorflow-bridge \
15+
tensor2tensor==2.0 \
16+
jupyter-tensorboard==0.2.0 \
17+
tensorwatch==0.8.10
18+
19+
# Install Horovod, temporarily using CUDA stubs
20+
RUN ldconfig /usr/local/cuda/targets/x86_64-linux/lib/stubs && \
21+
HOROVOD_GPU_ALLREDUCE=NCCL HOROVOD_GPU_BROADCAST=NCCL \
22+
HOROVOD_WITH_TENSORFLOW=1 HOROVOD_WITHOUT_PYTORCH=1 HOROVOD_WITHOUT_MXNET=1 \
23+
pip install --no-cache-dir horovod==0.19.0 && \
24+
ldconfig
25+
26+
RUN python3 -m pip install --no-cache-dir \
27+
mpi4py==3.0.3 \
28+
nni
29+
30+
# Backend.AI specifics
31+
LABEL ai.backend.kernelspec="1" \
32+
ai.backend.envs.corecount="OPENBLAS_NUM_THREADS,OMP_NUM_THREADS,NPROC" \
33+
ai.backend.features="batch query uid-match user-input" \
34+
ai.backend.base-distro="ubuntu16.04" \
35+
ai.backend.resource.min.cpu="1" \
36+
ai.backend.resource.min.mem="1g" \
37+
ai.backend.resource.min.cuda.device=0 \
38+
ai.backend.resource.min.cuda.shares=0 \
39+
ai.backend.runtime-type="python" \
40+
ai.backend.runtime-path="/usr/bin/python3" \
41+
ai.backend.service-ports="jupyter:http:8080,jupyterlab:http:8090,ipython:pty:3000,tensorboard:http:6006"
42+
43+
WORKDIR /home/work
44+
# vim: ft=dockerfile

0 commit comments

Comments
 (0)