Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
7e446198
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看板
提交
7e446198
编写于
9月 20, 2019
作者:
X
Xiaoyang LI
提交者:
Yan Chunwei
9月 20, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cherry-pick: Fix Mac & arm-linux build error (#2083)
上级
2a4eb485
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
19 addition
and
9 deletion
+19
-9
cmake/lite.cmake
cmake/lite.cmake
+7
-5
lite/backends/arm/math/gemm_prepacked_int8.cc
lite/backends/arm/math/gemm_prepacked_int8.cc
+1
-0
lite/backends/x86/CMakeLists.txt
lite/backends/x86/CMakeLists.txt
+4
-2
lite/operators/range_op.cc
lite/operators/range_op.cc
+1
-0
lite/tools/build.sh
lite/tools/build.sh
+6
-2
未找到文件。
cmake/lite.cmake
浏览文件 @
7e446198
...
...
@@ -165,11 +165,13 @@ function(lite_cc_binary TARGET)
)
cc_binary
(
${
TARGET
}
SRCS
${
args_SRCS
}
DEPS
${
deps
}
${
args_DEPS
}
)
target_compile_options
(
${
TARGET
}
BEFORE PRIVATE -Wno-ignored-qualifiers
)
# strip binary target to reduce size
add_custom_command
(
TARGET
${
TARGET
}
POST_BUILD
COMMAND
"
${
CMAKE_STRIP
}
"
-s
"
${
TARGET
}
"
COMMENT
"Strip debug symbols done on final executable file."
)
if
(
NOT APPLE
)
# strip binary target to reduce size
add_custom_command
(
TARGET
${
TARGET
}
POST_BUILD
COMMAND
"
${
CMAKE_STRIP
}
"
-s
"
${
TARGET
}
"
COMMENT
"Strip debug symbols done on final executable file."
)
endif
()
# collect targets need to compile for lite
if
(
NOT args_EXCLUDE_COMPILE_DEPS
)
add_dependencies
(
lite_compile_deps
${
TARGET
}
)
...
...
lite/backends/arm/math/gemm_prepacked_int8.cc
浏览文件 @
7e446198
...
...
@@ -198,6 +198,7 @@ inline void gemm_int8_kernel(const int8_t* a_ptr,
bool
is_relu
,
int
k
,
int
rem
);
// clang-format off
#ifdef __aarch64__
#define GEMM_INT8_KERNEL \
...
...
lite/backends/x86/CMakeLists.txt
浏览文件 @
7e446198
...
...
@@ -4,10 +4,12 @@ endif()
configure_file
(
cupti_lib_path.h.in
${
CMAKE_CURRENT_BINARY_DIR
}
/cupti_lib_path.h
)
configure_file
(
warpctc_lib_path.h.in
${
CMAKE_CURRENT_BINARY_DIR
}
/warpctc_lib_path.h
)
lite_cc_library
(
target_wrapper_x86 SRCS target_wrapper.cc
)
if
(
LITE_ON_MODEL_OPTIMIZE_TOOL
)
return
()
endif
(
LITE_ON_MODEL_OPTIMIZE_TOOL
)
lite_cc_library
(
dynamic_loader SRCS dynamic_loader.cc DEPS glog gflags
)
lite_cc_library
(
dynload_mklml SRCS mklml.cc DEPS dynamic_loader mklml
)
lite_cc_library
(
target_wrapper_x86 SRCS target_wrapper.cc
)
lite_cc_library
(
x86_cpu_info SRCS cpu_info.cc DEPS xbyak
)
add_subdirectory
(
jit
)
...
...
lite/operators/range_op.cc
浏览文件 @
7e446198
...
...
@@ -13,6 +13,7 @@
// limitations under the License.
#include "lite/operators/range_op.h"
#include <cmath>
#include <functional>
#include "lite/core/op_registry.h"
...
...
lite/tools/build.sh
浏览文件 @
7e446198
...
...
@@ -56,8 +56,12 @@ function build_model_optimize_tool {
prepare_thirdparty
mkdir
-p
build.model_optimize_tool
cd
build.model_optimize_tool
cmake ..
-DWITH_LITE
=
ON
-DLITE_ON_MODEL_OPTIMIZE_TOOL
=
ON
-DWITH_TESTING
=
OFF
-DLITE_BUILD_EXTRA
=
ON
make model_optimize_tool
-j
$NUM_CORES_FOR_COMPILE
cmake ..
-DWITH_LITE
=
ON
\
-DLITE_ON_MODEL_OPTIMIZE_TOOL
=
ON
\
-DWITH_TESTING
=
OFF
\
-DLITE_BUILD_EXTRA
=
ON
\
-DWITH_MKL
=
OFF
make model_optimize_tool
-j
$NUM_PROC
}
function
make_tiny_publish_so
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录