Skip to content

Commit bcbcc48

Browse files
authored
[MLU] update sdk version (#863)
1 parent 55f88eb commit bcbcc48

File tree

4 files changed

+35
-35
lines changed

4 files changed

+35
-35
lines changed

backends/mlu/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@ Please refer to the following steps to compile, install and verify the custom de
88

99
| Module | Version |
1010
| --------- | -------- |
11-
| cntoolkit | 3.6.1-1 |
12-
| cnnl | 1.20.4-1 |
13-
| cnnlextra | 1.4.1-1 |
14-
| cncl | 1.11.0-1 |
15-
| mluops | 0.8.1-1 |
11+
| cntoolkit | 3.7.2-1 |
12+
| cnnl | 1.22.0-1 |
13+
| cnnlextra | 1.5.0-1 |
14+
| cncl | 1.13.0-1 |
15+
| mluops | 0.10.0-1 |
1616

1717
## Prepare environment and source code
1818

1919
```bash
2020
# 1. pull PaddlePaddle Cambricon MLU development docker image
2121
# dockerfile of the image is in tools/dockerfile directory
22-
docker pull registry.baidubce.com/device/paddle-mlu:cntoolkit3.4.2-1-cnnl1.17.0-1-gcc82
22+
docker pull registry.baidubce.com/device/paddle-mlu:cntoolkit3.7.2-1-cnnl1.22.0-1-gcc82
2323

2424
# 2. refer to the following commands to start docker container
2525
docker run -it --name paddle-mlu-dev -v `pwd`:/workspace \
2626
--shm-size=128G --network=host -w=/workspace \
2727
--cap-add=SYS_PTRACE --security-opt seccomp=unconfined \
2828
--privileged -v /usr/bin/cnmon:/usr/bin/cnmon \
29-
registry.baidubce.com/device/paddle-mlu:cntoolkit3.4.2-1-cnnl1.17.0-1-gcc82 /bin/bash
29+
registry.baidubce.com/device/paddle-mlu:cntoolkit3.7.2-1-cnnl1.22.0-1-gcc82 /bin/bash
3030

3131
# 3. clone the source code
3232
git clone https://github.com/PaddlePaddle/PaddleCustomDevice
@@ -69,12 +69,12 @@ python -c "import paddle; print(paddle.device.get_all_custom_device_type())"
6969
python -c "import paddle_custom_device; paddle_custom_device.mlu.version()"
7070
# expected output
7171
version: 0.0.0
72-
commit: 7a45dfc420caa6176c36e89f325f908632c7a739
73-
cntoolkit: 3.6.1
74-
cnnl: 1.20.4
75-
cnnlextra: 1.4.1
76-
cncl: 1.11.0
77-
mluops: 0.8.1
72+
commit: 55f88ebff9297f2f4b90d61e211d2cf2784f2ad9
73+
cntoolkit: 3.7.2
74+
cnnl: 1.22.0
75+
cnnlextra: 1.5.0
76+
cncl: 1.13.0
77+
mluops: 0.10.0
7878

7979
# 3. demo for training, evaluation and inference
8080
python tests/test_LeNet_MNIST.py

backends/mlu/README_cn.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@
88

99
| 模块名称 | 版本 |
1010
| --------- | -------- |
11-
| cntoolkit | 3.6.1-1 |
12-
| cnnl | 1.20.4-1 |
13-
| cnnlextra | 1.4.1-1 |
14-
| cncl | 1.11.0-1 |
15-
| mluops | 0.8.1-1 |
11+
| cntoolkit | 3.7.2-1 |
12+
| cnnl | 1.22.0-1 |
13+
| cnnlextra | 1.5.0-1 |
14+
| cncl | 1.13.0-1 |
15+
| mluops | 0.10.0-1 |
1616

1717
## 环境准备与源码同步
1818

1919
```bash
2020
# 1) 拉取镜像,注意此镜像仅为开发环境,镜像中不包含预编译的飞桨安装包
2121
# 此镜像的构建脚本与 dockerfile 位于 tools/dockerfile 目录下
22-
docker pull registry.baidubce.com/device/paddle-mlu:cntoolkit3.4.2-1-cnnl1.17.0-1-gcc82
22+
docker pull registry.baidubce.com/device/paddle-mlu:cntoolkit3.7.2-1-cnnl1.22.0-1-gcc82
2323

2424
# 2) 参考如下命令启动容器
2525
docker run -it --name paddle-mlu-dev -v `pwd`:/workspace \
2626
--shm-size=128G --network=host -w=/workspace \
2727
--cap-add=SYS_PTRACE --security-opt seccomp=unconfined \
2828
--privileged -v /usr/bin/cnmon:/usr/bin/cnmon \
29-
registry.baidubce.com/device/paddle-mlu:cntoolkit3.4.2-1-cnnl1.17.0-1-gcc82 /bin/bash
29+
registry.baidubce.com/device/paddle-mlu:cntoolkit3.7.2-1-cnnl1.22.0-1-gcc82 /bin/bash
3030

3131

3232
# 3) 克隆 PaddleCustomDevice 源码
@@ -69,12 +69,12 @@ python -c "import paddle; print(paddle.device.get_all_custom_device_type())"
6969
python -c "import paddle_custom_device; paddle_custom_device.mlu.version()"
7070
# 预期得到如下输出结果
7171
version: 0.0.0
72-
commit: 7a45dfc420caa6176c36e89f325f908632c7a739
73-
cntoolkit: 3.6.1
74-
cnnl: 1.20.4
75-
cnnlextra: 1.4.1
76-
cncl: 1.11.0
77-
mluops: 0.8.1
72+
commit: 55f88ebff9297f2f4b90d61e211d2cf2784f2ad9
73+
cntoolkit: 3.7.2
74+
cnnl: 1.22.0
75+
cnnlextra: 1.5.0
76+
cncl: 1.13.0
77+
mluops: 0.10.0
7878

7979
# 3) 运行简单模型训练、评估和推理任务
8080
python tests/test_LeNet_MNIST.py

backends/mlu/tools/dockerfile/Dockerfile.mlu.ubuntu18.x86_64.gcc82

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RUN apt update && \
1919

2020
# install cntoolkit
2121
RUN cd /tmp && \
22-
wget -O cntoolkit_install_pkg.deb ftp://download.cambricon.com:8821/tmp/CTR2.11.0/cntoolkit_${CNTOOLKIT_VERSION}.ubuntu18.04_amd64.deb --ftp-user=${FTP_USER} --ftp-password=${FTP_PASSWORD} && \
22+
wget -O cntoolkit_install_pkg.deb ftp://download.cambricon.com:8821/tmp/CTR2.12.1/cntoolkit_${CNTOOLKIT_VERSION}.ubuntu18.04_amd64.deb --ftp-user=${FTP_USER} --ftp-password=${FTP_PASSWORD} && \
2323
dpkg -i cntoolkit_install_pkg.deb && \
2424
apt update && \
2525
apt-get install -y cnrt cnperf cnpapi cnlicense cngdb cndrv cndev cncodec cncc cnas cnbin cnstudio cnrtc cnvs && \
@@ -31,7 +31,7 @@ RUN cd /tmp && \
3131

3232
# install cnnl
3333
RUN cd /tmp && \
34-
wget -O cnnl_install_pkg.deb ftp://download.cambricon.com:8821/tmp/CTR2.11.0/cnnl_${CNNL_VERSION}.ubuntu18.04_amd64.deb --ftp-user=${FTP_USER} --ftp-password=${FTP_PASSWORD} && \
34+
wget -O cnnl_install_pkg.deb ftp://download.cambricon.com:8821/tmp/CTR2.12.1/cnnl_${CNNL_VERSION}.ubuntu18.04_amd64.deb --ftp-user=${FTP_USER} --ftp-password=${FTP_PASSWORD} && \
3535
dpkg -i cnnl_install_pkg.deb && \
3636
rm -f cnnl_install_pkg.deb
3737

@@ -43,13 +43,13 @@ RUN cd /tmp && \
4343

4444
# install cncl
4545
RUN cd /tmp && \
46-
wget -O cncl_install_pkg.deb ftp://download.cambricon.com:8821/tmp/CTR2.11.0/cncl_${CNCL_VERSION}.ubuntu18.04_amd64.deb --ftp-user=${FTP_USER} --ftp-password=${FTP_PASSWORD} && \
46+
wget -O cncl_install_pkg.deb ftp://download.cambricon.com:8821/tmp/CTR2.12.1/cncl_${CNCL_VERSION}.ubuntu18.04_amd64.deb --ftp-user=${FTP_USER} --ftp-password=${FTP_PASSWORD} && \
4747
dpkg -i cncl_install_pkg.deb && \
4848
rm -f cncl_install_pkg.deb
4949

5050
# install mluops
5151
RUN cd /tmp && \
52-
wget -O mluops_install_pkg.deb ftp://download.cambricon.com:8821/tmp/CTR2.11.0/mluops_${MLUOPS_VERSION}.ubuntu18.04_amd64.deb --ftp-user=${FTP_USER} --ftp-password=${FTP_PASSWORD} && \
52+
wget -O mluops_install_pkg.deb ftp://download.cambricon.com:8821/tmp/CTR2.12.1/mluops_${MLUOPS_VERSION}.ubuntu18.04_amd64.deb --ftp-user=${FTP_USER} --ftp-password=${FTP_PASSWORD} && \
5353
dpkg -i mluops_install_pkg.deb && \
5454
rm -f mluops_install_pkg.deb
5555

backends/mlu/tools/dockerfile/build-image.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ set -ex
2222

2323
FTP_USER=${1} # Please contact Cambricon technicians to obtain username and password
2424
FTP_PASSWORD=${2}
25-
CNTOOLKIT_VERSION=${3:-3.6.1-1} # default 3.6.1
26-
CNNL_VERSION=${4:-1.20.4-1} # default 1.20.4
27-
CNCL_VERSION=${5:-1.11.0-1} # default 1.11.0
28-
MLUOPS_VERSION=${6:-0.8.1-1} # default 0.8.1
29-
CNNL_EXTRA_VERSION=${7:-1.4.1-1} # default 1.4.1-1
25+
CNTOOLKIT_VERSION=${3:-3.7.2-1} # default 3.7.2
26+
CNNL_VERSION=${4:-1.22.0-1} # default 1.22.0
27+
CNCL_VERSION=${5:-1.13.0-1} # default 1.13.0
28+
MLUOPS_VERSION=${6:-0.10.0-1} # default 0.10.0
29+
CNNL_EXTRA_VERSION=${7:-1.5.0-1} # default 1.5.0-1
3030

3131
if [ $(uname -i) == 'x86_64' ]; then
3232
# ubuntu18-$(uname -m)-gcc82

0 commit comments

Comments
 (0)