Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
24771dd6
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 2 年 前同步成功
通知
2325
Star
20933
Fork
5424
代码
文件
提交
分支
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看板
未验证
提交
24771dd6
编写于
8月 11, 2023
作者:
6
6clc
提交者:
GitHub
8月 11, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ci(CINN): remove proxy off in scripts,test=document_fix (#56161)
上级
ee003457
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
0 addition
and
14 deletion
+0
-14
tools/cinn/build.sh
tools/cinn/build.sh
+0
-14
未找到文件。
tools/cinn/build.sh
浏览文件 @
24771dd6
...
@@ -54,12 +54,6 @@ OLD_HTTP_PROXY=$http_proxy &> /dev/null
...
@@ -54,12 +54,6 @@ OLD_HTTP_PROXY=$http_proxy &> /dev/null
OLD_HTTPS_PROXY
=
$https_proxy
&> /dev/null
OLD_HTTPS_PROXY
=
$https_proxy
&> /dev/null
set
-x
set
-x
function
proxy_off
{
set
+x
unset
http_proxy &> /dev/null
unset
https_proxy &> /dev/null
set
-x
}
function
proxy_on
{
function
proxy_on
{
set
+x
set
+x
export
http_proxy
=
$OLD_HTTP_PROXY
&> /dev/null
export
http_proxy
=
$OLD_HTTP_PROXY
&> /dev/null
...
@@ -70,10 +64,6 @@ function proxy_on {
...
@@ -70,10 +64,6 @@ function proxy_on {
function
prepare_ci
{
function
prepare_ci
{
cd
$workspace
cd
$workspace
proxy_on
proxy_on
if
[[
!
-z
${
PULL_ID
}
]]
;
then
# in ci environment, we use aliyun ubuntu mirror, thus turn off proxy
proxy_off
fi
if
[[
$(
command
-v
python
)
==
$build_dir
/ci-env/bin/python
]]
;
then
if
[[
$(
command
-v
python
)
==
$build_dir
/ci-env/bin/python
]]
;
then
return
return
...
@@ -97,7 +87,6 @@ function prepare_ci {
...
@@ -97,7 +87,6 @@ function prepare_ci {
function
cmake_
{
function
cmake_
{
proxy_off
mkdir
-p
$build_dir
mkdir
-p
$build_dir
cd
$build_dir
cd
$build_dir
set
-x
set
-x
...
@@ -109,7 +98,6 @@ function cmake_ {
...
@@ -109,7 +98,6 @@ function cmake_ {
}
}
function
_download_and_untar
{
function
_download_and_untar
{
proxy_off
local
tar_file
=
$1
local
tar_file
=
$1
if
[[
!
-f
$tar_file
]]
;
then
if
[[
!
-f
$tar_file
]]
;
then
wget https://paddle-inference-dist.bj.bcebos.com/CINN/
$tar_file
wget https://paddle-inference-dist.bj.bcebos.com/CINN/
$tar_file
...
@@ -118,7 +106,6 @@ function _download_and_untar {
...
@@ -118,7 +106,6 @@ function _download_and_untar {
}
}
function
prepare_model
{
function
prepare_model
{
proxy_off
cd
$build_dir
/third_party
cd
$build_dir
/third_party
_download_and_untar ResNet18.tar.gz
_download_and_untar ResNet18.tar.gz
...
@@ -203,7 +190,6 @@ function CINNRT {
...
@@ -203,7 +190,6 @@ function CINNRT {
prepare_ci
prepare_ci
proxy_off
mkdir
-p
$build_dir
mkdir
-p
$build_dir
cd
$build_dir
cd
$build_dir
set
-x
set
-x
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录