未验证 提交 2265d7bc 编写于 作者: 6 6clc 提交者: GitHub

[CINN] Remove useless code from ci scripts (#55018)

[CINN] Remove useless code from ci scripts
上级 54e1455a
...@@ -45,17 +45,6 @@ function gpu_on { ...@@ -45,17 +45,6 @@ function gpu_on {
cudnn_config=ON cudnn_config=ON
} }
function test_doc {
mkdir -p $build_dir
cd $build_dir
export runtime_include_dir=$workspace/paddle/cinn/runtime/cuda
prepare_ci
cmake_
build
make_doc
}
function cudnn_off { function cudnn_off {
cudnn_config=OFF cudnn_config=OFF
} }
...@@ -93,25 +82,7 @@ function prepare_ci { ...@@ -93,25 +82,7 @@ function prepare_ci {
return return
fi fi
# NVIDIA update GPG key on 04/29/2022. Fetch the public key for CI machine
# Reference: https://developer.nvidia.com/blog/updating-the-cuda-linux-gpg-repository-key/
set +x
apt-key adv --keyserver-options http-proxy=$http_proxy --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
set -x
apt update
echo "the current user EUID=$EUID: $(whoami)" echo "the current user EUID=$EUID: $(whoami)"
if ! command -v doxygen &> /dev/null; then
apt install -y doxygen
fi
if ! command -v python${py_version}-config &> /dev/null; then
apt install -y python${py_version}-dev
fi
if ! command -v virtualenv &> /dev/null; then
apt install -y virtualenv
fi
if [[ ! -e $build_dir/ci-env/bin/activate ]]; then if [[ ! -e $build_dir/ci-env/bin/activate ]]; then
virtualenv ${build_dir}/ci-env -p python${py_version} virtualenv ${build_dir}/ci-env -p python${py_version}
...@@ -119,8 +90,6 @@ function prepare_ci { ...@@ -119,8 +90,6 @@ function prepare_ci {
source $build_dir/ci-env/bin/activate source $build_dir/ci-env/bin/activate
python${py_version} -m pip install -U --no-cache-dir pip python${py_version} -m pip install -U --no-cache-dir pip
python${py_version} -m pip install pre-commit
python${py_version} -m pip install clang-format==13.0.0
python${py_version} -m pip install wheel python${py_version} -m pip install wheel
python${py_version} -m pip install sphinx==3.3.1 sphinx_gallery==0.8.1 recommonmark==0.6.0 exhale scipy breathe==4.24.0 matplotlib sphinx_rtd_theme python${py_version} -m pip install sphinx==3.3.1 sphinx_gallery==0.8.1 recommonmark==0.6.0 exhale scipy breathe==4.24.0 matplotlib sphinx_rtd_theme
python${py_version} -m pip install paddlepaddle-gpu==0.0.0.post112 -f https://www.paddlepaddle.org.cn/whl/linux/gpu/develop.html python${py_version} -m pip install paddlepaddle-gpu==0.0.0.post112 -f https://www.paddlepaddle.org.cn/whl/linux/gpu/develop.html
...@@ -220,14 +189,11 @@ function CI { ...@@ -220,14 +189,11 @@ function CI {
export runtime_include_dir=$workspace/paddle/cinn/runtime/cuda export runtime_include_dir=$workspace/paddle/cinn/runtime/cuda
prepare_ci prepare_ci
# codestyle_check
cmake_ cmake_
build build
run_demo run_demo
prepare_model prepare_model
run_test run_test
# make_doc
} }
function CINNRT { function CINNRT {
...@@ -236,7 +202,6 @@ function CINNRT { ...@@ -236,7 +202,6 @@ function CINNRT {
export runtime_include_dir=$workspace/paddle/cinn/runtime/cuda export runtime_include_dir=$workspace/paddle/cinn/runtime/cuda
prepare_ci prepare_ci
# codestyle_check
proxy_off proxy_off
mkdir -p $build_dir mkdir -p $build_dir
......
# Use SHA to specify the docker image to prevent the use of old cache images # Use SHA to specify the docker image to prevent the use of old cache images
# TAG: latest-dev-cuda11.2-cudnn8.2-trt8.0-gcc82 # TAG: latest-dev-cuda11.2-cudnn8.2-trt8.0-gcc82
FROM registry.baidubce.com/paddlepaddle/paddle@sha256:ac757bc25c341814284ceafb274c55e36ea7dcf026a265d14f885a0fa60368f8 FROM registry.baidubce.com/paddlepaddle/paddle@sha256:ac757bc25c341814284ceafb274c55e36ea7dcf026a265d14f885a0fa60368f8
# NVIDIA update GPG key on 04/29/2022. Fetch the public key for CI machine
# Reference: https://developer.nvidia.com/blog/updating-the-cuda-linux-gpg-repository-key/
RUN apt-key adv --keyserver-options http-proxy=$http_proxy --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
RUN apt update
RUN if ! command -v virtualenv &> /dev/null; then \
apt install -y virtualenv; \
fi
# Use SHA to specify the docker image to prevent the use of old cache images # Use SHA to specify the docker image to prevent the use of old cache images
# TAG: latest-dev-cuda11.2-cudnn8.2-trt8.0-gcc82 # TAG: latest-dev-cuda11.2-cudnn8.2-trt8.0-gcc82
FROM registry.baidubce.com/paddlepaddle/paddle@sha256:ac757bc25c341814284ceafb274c55e36ea7dcf026a265d14f885a0fa60368f8 FROM registry.baidubce.com/paddlepaddle/paddle@sha256:ac757bc25c341814284ceafb274c55e36ea7dcf026a265d14f885a0fa60368f8
# NVIDIA update GPG key on 04/29/2022. Fetch the public key for CI machine
# Reference: https://developer.nvidia.com/blog/updating-the-cuda-linux-gpg-repository-key/
RUN apt-key adv --keyserver-options http-proxy=$http_proxy --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
RUN apt update
RUN if ! command -v virtualenv &> /dev/null; then \
apt install -y virtualenv; \
fi
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册