Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
0d56d6fe
P
Paddle-Lite
项目概览
PaddlePaddle
/
Paddle-Lite
通知
331
Star
4
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
271
列表
看板
标记
里程碑
合并请求
78
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle-Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
271
Issue
271
列表
看板
标记
里程碑
合并请求
78
合并请求
78
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
0d56d6fe
编写于
8月 26, 2019
作者:
Y
Yan Chunwei
提交者:
GitHub
8月 26, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
enhance thirdparty download (#1857)
上级
05b86272
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
41 addition
and
3 deletion
+41
-3
lite/tools/build.sh
lite/tools/build.sh
+21
-2
lite/tools/ci_build.sh
lite/tools/ci_build.sh
+20
-1
未找到文件。
lite/tools/build.sh
浏览文件 @
0d56d6fe
...
@@ -9,6 +9,10 @@ readonly CMAKE_COMMON_OPTIONS="-DWITH_GPU=OFF \
...
@@ -9,6 +9,10 @@ readonly CMAKE_COMMON_OPTIONS="-DWITH_GPU=OFF \
-DLITE_WITH_ARM=ON
\
-DLITE_WITH_ARM=ON
\
-DLITE_WITH_LIGHT_WEIGHT_FRAMEWORK=ON"
-DLITE_WITH_LIGHT_WEIGHT_FRAMEWORK=ON"
readonly
THIRDPARTY_TAR
=
https://paddle-inference-dist.bj.bcebos.com/PaddleLite/third-party-05b862.tar.gz
readonly
workspace
=
$PWD
# for code gen, a source file is generated after a test, but is dependended by some targets in cmake.
# for code gen, a source file is generated after a test, but is dependended by some targets in cmake.
# here we fake an empty file to make cmake works.
# here we fake an empty file to make cmake works.
function
prepare_workspace
{
function
prepare_workspace
{
...
@@ -24,6 +28,19 @@ function prepare_workspace {
...
@@ -24,6 +28,19 @@ function prepare_workspace {
cp
../
${
DEBUG_TOOL_PATH_PREFIX
}
/analysis_tool.py ./
${
DEBUG_TOOL_PATH_PREFIX
}
/
cp
../
${
DEBUG_TOOL_PATH_PREFIX
}
/analysis_tool.py ./
${
DEBUG_TOOL_PATH_PREFIX
}
/
}
}
function
prepare_thirdparty
{
if
[
!
-d
$workspace
/third-party
-o
-f
$workspace
/third-party-05b862.tar.gz
]
;
then
rm
-rf
$workspace
/third-party
if
[
!
-f
$workspace
/third-party-05b862.tar.gz
]
;
then
wget
$THIRDPARTY_TAR
fi
tar
xzf third-party-05b862.tar.gz
else
git submodule update
--init
--recursive
fi
}
function
make_tiny_publish_so
{
function
make_tiny_publish_so
{
local
os
=
$1
local
os
=
$1
local
abi
=
$2
local
abi
=
$2
...
@@ -58,7 +75,8 @@ function make_full_publish_so {
...
@@ -58,7 +75,8 @@ function make_full_publish_so {
local
lang
=
$3
local
lang
=
$3
local
android_stl
=
$4
local
android_stl
=
$4
git submodule update
--init
--recursive
#git submodule update --init --recursive
prepare_thirdparty
cur_dir
=
$(
pwd
)
cur_dir
=
$(
pwd
)
build_dir
=
$cur_dir
/build.lite.
${
os
}
.
${
abi
}
.
${
lang
}
build_dir
=
$cur_dir
/build.lite.
${
os
}
.
${
abi
}
.
${
lang
}
...
@@ -87,7 +105,8 @@ function make_all_tests {
...
@@ -87,7 +105,8 @@ function make_all_tests {
local
abi
=
$2
local
abi
=
$2
local
lang
=
$3
local
lang
=
$3
git submodule update
--init
--recursive
#git submodule update --init --recursive
prepare_thirdparty
cur_dir
=
$(
pwd
)
cur_dir
=
$(
pwd
)
build_dir
=
$cur_dir
/build.lite.
${
os
}
.
${
abi
}
.
${
lang
}
build_dir
=
$cur_dir
/build.lite.
${
os
}
.
${
abi
}
.
${
lang
}
if
[
-d
$build_dir
]
if
[
-d
$build_dir
]
...
...
lite/tools/ci_build.sh
浏览文件 @
0d56d6fe
...
@@ -4,11 +4,29 @@ set -ex
...
@@ -4,11 +4,29 @@ set -ex
TESTS_FILE
=
"./lite_tests.txt"
TESTS_FILE
=
"./lite_tests.txt"
LIBS_FILE
=
"./lite_libs.txt"
LIBS_FILE
=
"./lite_libs.txt"
readonly
ADB_WORK_DIR
=
"/data/local/tmp"
readonly
ADB_WORK_DIR
=
"/data/local/tmp"
readonly
common_flags
=
"-DWITH_LITE=ON -DLITE_WITH_LIGHT_WEIGHT_FRAMEWORK=OFF -DWITH_PYTHON=OFF -DWITH_TESTING=ON -DLITE_WITH_ARM=OFF"
readonly
common_flags
=
"-DWITH_LITE=ON -DLITE_WITH_LIGHT_WEIGHT_FRAMEWORK=OFF -DWITH_PYTHON=OFF -DWITH_TESTING=ON -DLITE_WITH_ARM=OFF"
readonly
THIRDPARTY_TAR
=
https://paddle-inference-dist.bj.bcebos.com/PaddleLite/third-party-05b862.tar.gz
readonly
workspace
=
$PWD
NUM_CORES_FOR_COMPILE
=
8
NUM_CORES_FOR_COMPILE
=
8
function
prepare_thirdparty
{
if
[
!
-d
$workspace
/third-party
-o
-f
$workspace
/third-party-05b862.tar.gz
]
;
then
rm
-rf
$workspace
/third-party
if
[
!
-f
$workspace
/third-party-05b862.tar.gz
]
;
then
wget
$THIRDPARTY_TAR
fi
tar
xzf third-party-05b862.tar.gz
else
git submodule update
--init
--recursive
fi
}
# for code gen, a source file is generated after a test, but is dependended by some targets in cmake.
# for code gen, a source file is generated after a test, but is dependended by some targets in cmake.
# here we fake an empty file to make cmake works.
# here we fake an empty file to make cmake works.
function
prepare_workspace
{
function
prepare_workspace
{
...
@@ -24,7 +42,8 @@ function prepare_workspace {
...
@@ -24,7 +42,8 @@ function prepare_workspace {
cp
../
${
DEBUG_TOOL_PATH_PREFIX
}
/analysis_tool.py ./
${
DEBUG_TOOL_PATH_PREFIX
}
/
cp
../
${
DEBUG_TOOL_PATH_PREFIX
}
/analysis_tool.py ./
${
DEBUG_TOOL_PATH_PREFIX
}
/
# clone submodule
# clone submodule
git submodule update
--init
--recursive
#git submodule update --init --recursive
prepare_thirdparty
}
}
function
check_need_ci
{
function
check_need_ci
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录