Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
2e40b2f7
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看板
提交
2e40b2f7
编写于
10月 23, 2019
作者:
J
juncaipeng
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'gpu' of
https://github.com/yongqiangma/Paddle-Lite
into gpu
上级
46baf05f
b10e6bf0
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
5 addition
and
5 deletion
+5
-5
lite/CMakeLists.txt
lite/CMakeLists.txt
+2
-2
lite/api/CMakeLists.txt
lite/api/CMakeLists.txt
+1
-2
lite/tools/cmake_tools/create_fake_kernel_registry.py
lite/tools/cmake_tools/create_fake_kernel_registry.py
+2
-1
未找到文件。
lite/CMakeLists.txt
浏览文件 @
2e40b2f7
...
@@ -91,7 +91,7 @@ if (LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND LITE_WITH_ARM)
...
@@ -91,7 +91,7 @@ if (LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND LITE_WITH_ARM)
COMMAND
${
CMAKE_STRIP
}
"--strip-debug"
${
INFER_LITE_PUBLISH_ROOT
}
/cxx/lib/*.a
)
COMMAND
${
CMAKE_STRIP
}
"--strip-debug"
${
INFER_LITE_PUBLISH_ROOT
}
/cxx/lib/*.a
)
endif
()
endif
()
else
()
else
()
if
(
IOS
OR
(
ARM_TARGET_OS STREQUAL
"armlinux"
)
)
if
(
IOS
)
add_custom_target
(
tiny_publish_lib
${
TARGET
}
add_custom_target
(
tiny_publish_lib
${
TARGET
}
COMMAND mkdir -p
"
${
INFER_LITE_PUBLISH_ROOT
}
/lib"
COMMAND mkdir -p
"
${
INFER_LITE_PUBLISH_ROOT
}
/lib"
COMMAND mkdir -p
"
${
INFER_LITE_PUBLISH_ROOT
}
/include"
COMMAND mkdir -p
"
${
INFER_LITE_PUBLISH_ROOT
}
/include"
...
...
lite/api/CMakeLists.txt
浏览文件 @
2e40b2f7
...
@@ -31,11 +31,10 @@ if (NOT LITE_ON_TINY_PUBLISH)
...
@@ -31,11 +31,10 @@ if (NOT LITE_ON_TINY_PUBLISH)
ARM_DEPS
${
arm_kernels
}
NPU_DEPS
${
npu_kernels
}
)
ARM_DEPS
${
arm_kernels
}
NPU_DEPS
${
npu_kernels
}
)
target_link_libraries
(
paddle_light_api_shared
${
light_lib_DEPS
}
${
arm_kernels
}
${
npu_kernels
}
)
target_link_libraries
(
paddle_light_api_shared
${
light_lib_DEPS
}
${
arm_kernels
}
${
npu_kernels
}
)
else
()
else
()
# if (ARM_TARGET_OS STREQUAL "android")
add_library
(
paddle_light_api_shared SHARED
""
)
add_library
(
paddle_light_api_shared SHARED
""
)
target_sources
(
paddle_light_api_shared PUBLIC
${
__lite_cc_files
}
paddle_api.cc light_api.cc light_api_impl.cc
)
target_sources
(
paddle_light_api_shared PUBLIC
${
__lite_cc_files
}
paddle_api.cc light_api.cc light_api_impl.cc
)
add_dependencies
(
paddle_light_api_shared op_list_h kernel_list_h
)
add_dependencies
(
paddle_light_api_shared op_list_h kernel_list_h
)
# endif()
endif
()
endif
()
if
(
WITH_TESTING
)
if
(
WITH_TESTING
)
...
...
lite/tools/cmake_tools/create_fake_kernel_registry.py
浏览文件 @
2e40b2f7
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
from
__future__
import
print_function
import
sys
import
sys
import
logging
import
logging
from
ast
import
RegisterLiteKernelParser
from
ast
import
RegisterLiteKernelParser
...
@@ -51,7 +52,7 @@ class %s : public KernelLite<TARGET(%s), PRECISION(%s), DATALAYOUT(%s)> {
...
@@ -51,7 +52,7 @@ class %s : public KernelLite<TARGET(%s), PRECISION(%s), DATALAYOUT(%s)> {
with
open
(
ops_list_path
)
as
f
:
with
open
(
ops_list_path
)
as
f
:
paths
=
set
([
path
for
path
in
f
])
paths
=
set
([
path
for
path
in
f
])
for
path
in
paths
:
for
path
in
paths
:
print
'path'
,
path
print
(
'path'
,
path
)
with
open
(
path
.
strip
())
as
g
:
with
open
(
path
.
strip
())
as
g
:
c
=
g
.
read
()
c
=
g
.
read
()
kernel_parser
=
RegisterLiteKernelParser
(
c
)
kernel_parser
=
RegisterLiteKernelParser
(
c
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录