Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
2265d7bc
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2299
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
2265d7bc
编写于
7月 04, 2023
作者:
6
6clc
提交者:
GitHub
7月 04, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CINN] Remove useless code from ci scripts (#55018)
[CINN] Remove useless code from ci scripts
上级
54e1455a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
16 addition
and
35 deletion
+16
-35
tools/cinn/build.sh
tools/cinn/build.sh
+0
-35
tools/cinn/docker/Dockerfile.ci
tools/cinn/docker/Dockerfile.ci
+8
-0
tools/cinn/docker/Dockerfile.ci.cuda
tools/cinn/docker/Dockerfile.ci.cuda
+8
-0
未找到文件。
tools/cinn/build.sh
浏览文件 @
2265d7bc
...
...
@@ -45,17 +45,6 @@ function gpu_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
{
cudnn_config
=
OFF
}
...
...
@@ -93,25 +82,7 @@ function prepare_ci {
return
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
)
"
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
virtualenv
${
build_dir
}
/ci-env
-p
python
${
py_version
}
...
...
@@ -119,8 +90,6 @@ function prepare_ci {
source
$build_dir
/ci-env/bin/activate
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
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
...
...
@@ -220,14 +189,11 @@ function CI {
export
runtime_include_dir
=
$workspace
/paddle/cinn/runtime/cuda
prepare_ci
# codestyle_check
cmake_
build
run_demo
prepare_model
run_test
# make_doc
}
function
CINNRT
{
...
...
@@ -236,7 +202,6 @@ function CINNRT {
export
runtime_include_dir
=
$workspace
/paddle/cinn/runtime/cuda
prepare_ci
# codestyle_check
proxy_off
mkdir
-p
$build_dir
...
...
tools/cinn/docker/Dockerfile.ci
浏览文件 @
2265d7bc
# 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
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
tools/cinn/docker/Dockerfile.ci.cuda
浏览文件 @
2265d7bc
# 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
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录