Browse Source

update dockerfile, fix CUDA11.1 and dynamic python libraries

tags/v1.5.0-rc1
yanghaoran 4 years ago
parent
commit
a9bdcc7dc8
6 changed files with 10 additions and 8 deletions
  1. +3
    -1
      docker/OWNERS
  2. +1
    -1
      docker/mindspore-cpu/1.3.0/Dockerfile
  3. +1
    -1
      docker/mindspore-cpu/runtime/Dockerfile
  4. +1
    -1
      docker/mindspore-gpu/1.3.0/Dockerfile
  5. +2
    -2
      docker/mindspore-gpu/devel/Dockerfile
  6. +2
    -2
      docker/mindspore-gpu/runtime/Dockerfile

+ 3
- 1
docker/OWNERS View File

@@ -1,2 +1,4 @@
approvers:
- zhoufeng54
reviewers:
- HW_KK
- HW_KK

+ 1
- 1
docker/mindspore-cpu/1.3.0/Dockerfile View File

@@ -51,7 +51,7 @@ RUN apt install -y libffi-dev libssl-dev zlib1g-dev libbz2-dev libncurses5-dev \
&& tar -xvf v3.7.5.tar.gz \
&& cd /tmp/cpython-3.7.5 \
&& mkdir -p ${PYTHON_ROOT_PATH} \
&& ./configure --prefix=${PYTHON_ROOT_PATH} \
&& ./configure --prefix=${PYTHON_ROOT_PATH} --enable_shared \
&& make -j4 \
&& make install -j4 \
&& rm -f /usr/local/bin/python \


+ 1
- 1
docker/mindspore-cpu/runtime/Dockerfile View File

@@ -51,7 +51,7 @@ RUN apt install -y libffi-dev libssl-dev zlib1g-dev libbz2-dev libncurses5-dev \
&& tar -xvf v3.7.5.tar.gz \
&& cd /tmp/cpython-3.7.5 \
&& mkdir -p ${PYTHON_ROOT_PATH} \
&& ./configure --prefix=${PYTHON_ROOT_PATH} \
&& ./configure --prefix=${PYTHON_ROOT_PATH} --enable_shared \
&& make -j4 \
&& make install -j4 \
&& rm -f /usr/local/bin/python \


+ 1
- 1
docker/mindspore-gpu/1.3.0/Dockerfile View File

@@ -53,7 +53,7 @@ RUN apt install -y libffi-dev libssl-dev zlib1g-dev libbz2-dev libncurses5-dev \
&& tar -xvf v3.7.5.tar.gz \
&& cd /tmp/cpython-3.7.5 \
&& mkdir -p ${PYTHON_ROOT_PATH} \
&& ./configure --prefix=${PYTHON_ROOT_PATH} \
&& ./configure --prefix=${PYTHON_ROOT_PATH} --enable_shared \
&& make -j4 \
&& make install -j4 \
&& rm -f /usr/local/bin/python \


+ 2
- 2
docker/mindspore-gpu/devel/Dockerfile View File

@@ -1,4 +1,4 @@
FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04
FROM nvidia/cuda:11.1-cudnn8-devel-ubuntu18.04

MAINTAINER leonwanghui <leon.wanghui@huawei.com>

@@ -43,7 +43,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt install -y \
libnuma-dev

# Configure cuDNN (v7.6.5)
RUN ln -s /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5 /usr/local/cuda/lib64/libcudnn.so
RUN ln -s /usr/lib/x86_64-linux-gnu/libcudnn.so.8.0.5 /usr/local/cuda/lib64/libcudnn.so

# Set bash
RUN echo "dash dash/sh boolean false" | debconf-set-selections


+ 2
- 2
docker/mindspore-gpu/runtime/Dockerfile View File

@@ -1,4 +1,4 @@
FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04
FROM nvidia/cuda:11.1-cudnn8-devel-ubuntu18.04

MAINTAINER leonwanghui <leon.wanghui@huawei.com>

@@ -53,7 +53,7 @@ RUN apt install -y libffi-dev libssl-dev zlib1g-dev libbz2-dev libncurses5-dev \
&& tar -xvf v3.7.5.tar.gz \
&& cd /tmp/cpython-3.7.5 \
&& mkdir -p ${PYTHON_ROOT_PATH} \
&& ./configure --prefix=${PYTHON_ROOT_PATH} \
&& ./configure --prefix=${PYTHON_ROOT_PATH} --enable_shared \
&& make -j4 \
&& make install -j4 \
&& rm -f /usr/local/bin/python \


Loading…
Cancel
Save