Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
8d316cd2
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看板
未验证
提交
8d316cd2
编写于
9月 08, 2020
作者:
H
huzhiqiang
提交者:
GitHub
9月 08, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[BUG FIX] Fix the issue that Paddle-Lite can not compile on armlinux backend (#4263)
上级
c70e2209
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
14 addition
and
22 deletion
+14
-22
lite/CMakeLists.txt
lite/CMakeLists.txt
+12
-8
lite/demo/cxx/arm_linux_full_demo/build.sh
lite/demo/cxx/arm_linux_full_demo/build.sh
+0
-6
lite/demo/cxx/arm_linux_light_demo/build.sh
lite/demo/cxx/arm_linux_light_demo/build.sh
+0
-6
lite/demo/cxx/armlinux_mobilenetv1_full_demo/CMakeLists.txt
lite/demo/cxx/armlinux_mobilenetv1_full_demo/CMakeLists.txt
+1
-1
lite/demo/cxx/armlinux_mobilenetv1_full_demo/mobilenet_full_api.cc
.../cxx/armlinux_mobilenetv1_full_demo/mobilenet_full_api.cc
+0
-0
lite/demo/cxx/armlinux_mobilenetv1_light_demo/CMakeLists.txt
lite/demo/cxx/armlinux_mobilenetv1_light_demo/CMakeLists.txt
+1
-1
lite/demo/cxx/armlinux_mobilenetv1_light_demo/mobilenet_light_api.cc
...xx/armlinux_mobilenetv1_light_demo/mobilenet_light_api.cc
+0
-0
未找到文件。
lite/CMakeLists.txt
100644 → 100755
浏览文件 @
8d316cd2
...
@@ -436,14 +436,18 @@ if (LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND LITE_WITH_ARM)
...
@@ -436,14 +436,18 @@ if (LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND LITE_WITH_ARM)
endif
()
endif
()
if
(
ARM_TARGET_OS STREQUAL
"armlinux"
)
if
(
ARM_TARGET_OS STREQUAL
"armlinux"
)
add_custom_target
(
publish_inference_armlinux_cxx_demos
${
TARGET
}
if
(
NOT LITE_ON_TINY_PUBLISH
)
if
(
NOT LITE_ON_TINY_PUBLISH
)
add_custom_target
(
publish_inference_armlinux_cxx_demos
${
TARGET
}
COMMAND mkdir -p
"
${
INFER_LITE_PUBLISH_ROOT
}
/demo/cxx/arm_linux_full"
COMMAND mkdir -p
"
${
INFER_LITE_PUBLISH_ROOT
}
/demo/cxx"
COMMAND cp -r
"
${
CMAKE_SOURCE_DIR
}
/lite/demo/cxx/arm_linux_full_demo"
"
${
INFER_LITE_PUBLISH_ROOT
}
/demo/cxx/arm_linux_full"
COMMAND cp -r
"
${
CMAKE_SOURCE_DIR
}
/lite/demo/cxx/armlinux_mobilenetv1_full_demo"
"
${
INFER_LITE_PUBLISH_ROOT
}
/demo/cxx/mobilenetv1_full"
endif
()
COMMAND cp -r
"
${
CMAKE_SOURCE_DIR
}
/lite/demo/cxx/armlinux_mobilenetv1_light_demo"
"
${
INFER_LITE_PUBLISH_ROOT
}
/demo/cxx/mobilenetv1_light"
COMMAND mkdir -p
"
${
INFER_LITE_PUBLISH_ROOT
}
/demo/cxx/arm_linux_light"
)
COMMAND cp -r
"
${
CMAKE_SOURCE_DIR
}
/lite/demo/cxx/arm_linux_light_demo"
"
${
INFER_LITE_PUBLISH_ROOT
}
/demo/cxx/arm_linux_light"
else
()
)
add_custom_target
(
publish_inference_armlinux_cxx_demos
${
TARGET
}
COMMAND mkdir -p
"
${
INFER_LITE_PUBLISH_ROOT
}
/demo/cxx"
COMMAND cp -r
"
${
CMAKE_SOURCE_DIR
}
/lite/demo/cxx/armlinux_mobilenetv1_light_demo"
"
${
INFER_LITE_PUBLISH_ROOT
}
/demo/cxx/mobilenetv1_light"
)
endif
()
add_dependencies
(
publish_inference publish_inference_armlinux_cxx_demos
)
add_dependencies
(
publish_inference publish_inference_armlinux_cxx_demos
)
endif
()
endif
()
...
...
lite/demo/cxx/arm_linux_full_demo/build.sh
已删除
100755 → 0
浏览文件 @
c70e2209
mkdir
./build
cd
./build
cmake ..
make
cd
..
rm
-rf
./build
lite/demo/cxx/arm_linux_light_demo/build.sh
已删除
100755 → 0
浏览文件 @
c70e2209
mkdir
./build
cd
./build
cmake ..
make
cd
..
rm
-rf
./build
lite/demo/cxx/arm
_linux
_full_demo/CMakeLists.txt
→
lite/demo/cxx/arm
linux_mobilenetv1
_full_demo/CMakeLists.txt
浏览文件 @
8d316cd2
cmake_minimum_required
(
VERSION 2.8
)
cmake_minimum_required
(
VERSION 2.8
)
set
(
TARGET
arm_linux
_full_api
)
set
(
TARGET
mobilenet
_full_api
)
# 1. path to Paddle-Lite lib
# 1. path to Paddle-Lite lib
set
(
LITE_DIR
"
${
PROJECT_SOURCE_DIR
}
/../../../cxx"
)
set
(
LITE_DIR
"
${
PROJECT_SOURCE_DIR
}
/../../../cxx"
)
...
...
lite/demo/cxx/arm
_linux_full_demo/arm_linux
_full_api.cc
→
lite/demo/cxx/arm
linux_mobilenetv1_full_demo/mobilenet
_full_api.cc
浏览文件 @
8d316cd2
文件已移动
lite/demo/cxx/arm
_linux
_light_demo/CMakeLists.txt
→
lite/demo/cxx/arm
linux_mobilenetv1
_light_demo/CMakeLists.txt
浏览文件 @
8d316cd2
cmake_minimum_required
(
VERSION 2.8
)
cmake_minimum_required
(
VERSION 2.8
)
set
(
TARGET
arm_linux
_light_api
)
set
(
TARGET
mobilenet
_light_api
)
# 1. path to Paddle-Lite lib
# 1. path to Paddle-Lite lib
set
(
LITE_DIR
"
${
PROJECT_SOURCE_DIR
}
/../../../cxx"
)
set
(
LITE_DIR
"
${
PROJECT_SOURCE_DIR
}
/../../../cxx"
)
...
...
lite/demo/cxx/arm
_linux_light_demo/arm_linux
_light_api.cc
→
lite/demo/cxx/arm
linux_mobilenetv1_light_demo/mobilenet
_light_api.cc
浏览文件 @
8d316cd2
文件已移动
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录