Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
0548faec
P
Paddle
项目概览
机器未来
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
0548faec
编写于
6月 28, 2019
作者:
T
tensor-tang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
enable arm math lib
上级
51b5fdde
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
74 addition
and
37 deletion
+74
-37
paddle/fluid/lite/arm/math/CMakeLists.txt
paddle/fluid/lite/arm/math/CMakeLists.txt
+74
-37
未找到文件。
paddle/fluid/lite/arm/math/CMakeLists.txt
浏览文件 @
0548faec
...
...
@@ -6,40 +6,77 @@ if(NOT (LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND LITE_WITH_ARM))
return
()
endif
()
# TODO(xxx): seperate them
lite_cc_library
(
math_arm SRCS
funcs.cc
packed_sgemm.cc
softmax.cc
scale.cc
pooling.cc
elementwise.cc
concat.cc
sgemv.cc
type_trans.cc
conv_impl.cc
conv_direct_3x3s1.cc
conv_direct_3x3s2.cc
conv_direct.cc
conv_depthwise_3x3_int7.cc
conv_depthwise_3x3_int8.cc
conv_depthwise_5x5s1_int8.cc
conv_depthwise_3x3p0.cc
conv_depthwise_3x3p1.cc
conv_depthwise_5x5s1.cc
conv_depthwise_5x5s2.cc
conv_depthwise.cc
conv_gemmlike.cc
conv_winograd_3x3.cc
conv_winograd.cc
split.cc
activation.cc
dropout.cc
gemm_prepacked_int8.cc
gemv_arm_int8.cc
conv3x3s1_direct_int8.cc
conv3x3s2_direct_int8.cc
DEPS
${
lite_kernel_deps
}
eigen3 framework_proto_lite
)
# TODO(TJ): fix me do not deps proto
set
(
HAS_ARM_MATH_LIB_DIR OFF
)
# will search name as "libmath_arm.${os}.${abi}.${lang}.a"
if
(
ARM_MATH_LIB_DIR AND EXISTS
"
${
ARM_MATH_LIB_DIR
}
"
)
set
(
arm_math_name
""
)
if
(
ARM_TARGET_OS STREQUAL
"android"
)
if
(
ARM_TARGET_ARCH_ABI STREQUAL
"armv8"
)
set
(
arm_math_name
"math_arm.android.armv8"
)
elseif
(
ARM_TARGET_ARCH_ABI STREQUAL
"armv7"
)
set
(
arm_math_name
"math_arm.android.armv7"
)
endif
()
endif
()
if
(
ARM_TARGET_OS STREQUAL
"armlinux"
)
if
(
ARM_TARGET_ARCH_ABI STREQUAL
"armv8"
)
set
(
arm_math_name
"math_arm.armlinux.armv8"
)
elseif
(
ARM_TARGET_ARCH_ABI STREQUAL
"armv7"
)
set
(
arm_math_name
"math_arm.armlinux.armv7"
)
endif
()
endif
()
if
(
ARM_TARGET_LANG STREQUAL
"clang"
)
set
(
arm_math_name
"
${
arm_math_name
}
.clang"
)
else
()
set
(
arm_math_name
"
${
arm_math_name
}
.gcc"
)
endif
()
find_library
(
math_arm_file
${
arm_math_name
}
${
ARM_MATH_LIB_DIR
}
NO_DEFAULT_PATH
)
if
(
math_arm_file
)
add_library
(
math_arm STATIC IMPORTED GLOBAL
)
set_property
(
TARGET math_arm PROPERTY IMPORTED_LOCATION
${
math_arm_file
}
)
message
(
STATUS
"ARM math library imported:
${
math_arm_file
}
"
)
set
(
HAS_ARM_MATH_LIB_DIR ON
)
else
()
message
(
WARNING
"Can not find arm math library
${
arm_math_name
}
in
${
ARM_MATH_LIB_DIR")
endif()
endif()
if (NOT HAS_ARM_MATH_LIB_DIR)
# TODO(xxx): seperate them and do not deps proto, eigen3
cc_library(math_arm SRCS
funcs.cc
packed_sgemm.cc
softmax.cc
scale.cc
pooling.cc
elementwise.cc
concat.cc
sgemv.cc
type_trans.cc
conv_impl.cc
conv_direct_3x3s1.cc
conv_direct_3x3s2.cc
conv_direct.cc
conv_depthwise_3x3_int7.cc
conv_depthwise_3x3_int8.cc
conv_depthwise_5x5s1_int8.cc
conv_depthwise_3x3p0.cc
conv_depthwise_3x3p1.cc
conv_depthwise_5x5s1.cc
conv_depthwise_5x5s2.cc
conv_depthwise.cc
conv_gemmlike.cc
conv_winograd_3x3.cc
conv_winograd.cc
split.cc
activation.cc
dropout.cc
gemm_prepacked_int8.cc
gemv_arm_int8.cc
conv3x3s1_direct_int8.cc
conv3x3s2_direct_int8.cc
DEPS
${
lite_kernel_deps
}
eigen3 framework_proto_lite)
endif()
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录