Skip to content

Commit

Permalink
Docs 2.1 ci use the cuda 10.2 as its basement (#3541)
Browse files Browse the repository at this point in the history
* install paddle 2.1.0 on release/2.1 branch

* using cuda 10.2

* ubuntu 18.04 python3.8 should install setuptools module

* install setuptools
  • Loading branch information
wadefelix authored May 27, 2021
1 parent 32c6200 commit 674f124
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ci_scripts/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BASEIMAGE=registry.baidubce.com/paddleopen/paddle:build-gpu-cuda11.2.2-cudnn8-devel-ubuntu20.04-gcc8
ARG BASEIMAGE=registry.baidubce.com/paddleopen/paddle:build-gpu-cuda10.2-cudnn8-devel-ubuntu18.04-gcc8
FROM ${BASEIMAGE}

RUN git config --global user.name "PaddleCI" \
Expand All @@ -15,6 +15,7 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*

# ci's requirements
RUN pip3 install --no-cache-dir -i https://mirror.baidu.com/pypi/simple setuptools
RUN echo 'docutils\n\
scipy\n\
prettytable\n\
Expand Down
6 changes: 5 additions & 1 deletion ci_scripts/check_api_cn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ set -x

function install_paddle() {
# try to download paddle, and install
pip install https://paddle-fluiddoc-ci.bj.bcebos.com/python/dist/paddlepaddle_gpu-0.0.0-cp38-cp38-linux_x86_64.whl
if [ ${BRANCH} = 'release/2.1' ] ; then
pip install https://paddle-fluiddoc-ci.bj.bcebos.com/python/dist/paddlepaddle_gpu-2.1.0-cp38-cp38-linux_x86_64.whl
else
pip install https://paddle-fluiddoc-ci.bj.bcebos.com/python/dist/paddlepaddle_gpu-0.0.0-cp38-cp38-linux_x86_64.whl
fi
# if failed, build paddle
if [ $? -ne 0 ];then
build_paddle
Expand Down

0 comments on commit 674f124

Please sign in to comment.