Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
f1252590
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看板
提交
f1252590
编写于
8月 31, 2019
作者:
G
guofei
提交者:
hong19860320
8月 31, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lite can build armlinux and remove build_armlinux.sh test=develop (#1932)
上级
6dbc2f29
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
12 addition
and
42 deletion
+12
-42
lite/CMakeLists.txt
lite/CMakeLists.txt
+1
-1
lite/tools/build.sh
lite/tools/build.sh
+11
-2
lite/tools/build_armlinux.sh
lite/tools/build_armlinux.sh
+0
-39
未找到文件。
lite/CMakeLists.txt
浏览文件 @
f1252590
...
...
@@ -90,7 +90,7 @@ if (LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND LITE_WITH_ARM)
COMMAND
${
CMAKE_STRIP
}
"--strip-debug"
${
INFER_LITE_PUBLISH_ROOT
}
/cxx/lib/*.a
)
endif
()
else
()
if
(
IOS
)
if
(
IOS
OR
(
ARM_TARGET_OS STREQUAL
"armlinux"
)
)
add_custom_target
(
tiny_publish_lib
${
TARGET
}
COMMAND mkdir -p
"
${
INFER_LITE_PUBLISH_ROOT
}
/lib"
COMMAND mkdir -p
"
${
INFER_LITE_PUBLISH_ROOT
}
/include"
...
...
lite/tools/build.sh
浏览文件 @
f1252590
...
...
@@ -14,6 +14,7 @@ readonly NUM_PROC=${LITE_BUILD_THREADS:-4}
# global variables
BUILD_EXTRA
=
OFF
BUILD_JAVA
=
ON
readonly
THIRDPARTY_TAR
=
https://paddle-inference-dist.bj.bcebos.com/PaddleLite/third-party-05b862.tar.gz
...
...
@@ -62,10 +63,14 @@ function make_tiny_publish_so {
mkdir
-p
$build_dir
cd
$build_dir
if
[
${
os
}
==
"armlinux"
]
;
then
BUILD_JAVA
=
OFF
fi
cmake ..
\
${
CMAKE_COMMON_OPTIONS
}
\
-DWITH_TESTING
=
OFF
\
-DLITE_WITH_JAVA
=
ON
\
-DLITE_WITH_JAVA
=
$BUILD_JAVA
\
-DLITE_SHUTDOWN_LOG
=
ON
\
-DLITE_ON_TINY_PUBLISH
=
ON
\
-DANDROID_STL_TYPE
=
$android_stl
\
...
...
@@ -94,11 +99,15 @@ function make_full_publish_so {
mkdir
-p
$build_dir
cd
$build_dir
if
[
${
os
}
==
"armlinux"
]
;
then
BUILD_JAVA
=
OFF
fi
prepare_workspace
cmake ..
\
${
CMAKE_COMMON_OPTIONS
}
\
-DWITH_TESTING
=
OFF
\
-DLITE_WITH_JAVA
=
ON
\
-DLITE_WITH_JAVA
=
$BUILD_JAVA
\
-DLITE_SHUTDOWN_LOG
=
ON
\
-DANDROID_STL_TYPE
=
$android_stl
\
-DLITE_BUILD_EXTRA
=
$BUILD_EXTRA
\
...
...
lite/tools/build_armlinux.sh
已删除
100755 → 0
浏览文件 @
6dbc2f29
#!/bin/bash
os
=
armlinux
abi
=
armv8
lang
=
gcc
if
[
x
$1
!=
x
]
;
then
abi
=
$1
fi
if
[
x
$2
!=
x
]
;
then
lang
=
$2
fi
cur_dir
=
$(
pwd
)
build_dir
=
$cur_dir
/build.lite.
${
os
}
.
${
abi
}
.
${
lang
}
mkdir
-p
$build_dir
cd
$build_dir
GEN_CODE_PATH_PREFIX
=
lite/gen_code
mkdir
-p
./
${
GEN_CODE_PATH_PREFIX
}
touch
./
${
GEN_CODE_PATH_PREFIX
}
/__generated_code__.cc
cmake ..
\
-DWITH_GPU
=
OFF
\
-DWITH_MKL
=
OFF
\
-DWITH_LITE
=
ON
\
-DLITE_WITH_CUDA
=
OFF
\
-DLITE_WITH_X86
=
OFF
\
-DLITE_WITH_ARM
=
ON
\
-DWITH_ARM_DOTPROD
=
ON
\
-DLITE_WITH_OPENMP
=
ON
\
-DLITE_WITH_LIGHT_WEIGHT_FRAMEWORK
=
ON
\
-DWITH_TESTING
=
ON
\
-DARM_TARGET_OS
=
${
os
}
-DARM_TARGET_ARCH_ABI
=
${
abi
}
-DARM_TARGET_LANG
=
${
lang
}
make
-j4
publish_inference
cd
-
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录