Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
443b2e68
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看板
未验证
提交
443b2e68
编写于
8月 29, 2019
作者:
T
tensor-tang
提交者:
GitHub
8月 29, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[NPU] fix npu compile of publish_inference (#1911)
上级
57ee8714
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
13 addition
and
2 deletion
+13
-2
lite/CMakeLists.txt
lite/CMakeLists.txt
+3
-0
lite/model_parser/CMakeLists.txt
lite/model_parser/CMakeLists.txt
+2
-1
lite/tools/build_npu.sh
lite/tools/build_npu.sh
+8
-1
未找到文件。
lite/CMakeLists.txt
浏览文件 @
443b2e68
...
@@ -59,6 +59,9 @@ if (LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND LITE_WITH_ARM)
...
@@ -59,6 +59,9 @@ if (LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND LITE_WITH_ARM)
if
(
LITE_WITH_OPENCL
)
if
(
LITE_WITH_OPENCL
)
set
(
INFER_LITE_PUBLISH_ROOT
"
${
INFER_LITE_PUBLISH_ROOT
}
.opencl"
)
set
(
INFER_LITE_PUBLISH_ROOT
"
${
INFER_LITE_PUBLISH_ROOT
}
.opencl"
)
endif
(
LITE_WITH_OPENCL
)
endif
(
LITE_WITH_OPENCL
)
if
(
LITE_WITH_NPU
)
set
(
INFER_LITE_PUBLISH_ROOT
"
${
INFER_LITE_PUBLISH_ROOT
}
.npu"
)
endif
(
LITE_WITH_NPU
)
message
(
STATUS
"publish inference lib to
${
INFER_LITE_PUBLISH_ROOT
}
"
)
message
(
STATUS
"publish inference lib to
${
INFER_LITE_PUBLISH_ROOT
}
"
)
# The final target for publish lite lib
# The final target for publish lite lib
...
...
lite/model_parser/CMakeLists.txt
浏览文件 @
443b2e68
...
@@ -28,6 +28,7 @@ lite_cc_library(model_parser SRCS model_parser.cc DEPS
...
@@ -28,6 +28,7 @@ lite_cc_library(model_parser SRCS model_parser.cc DEPS
target_wrapper_host
target_wrapper_host
compatible_pb
compatible_pb
memory
memory
CUDA_DEPS target_wrapper_cuda
)
CUDA_DEPS target_wrapper_cuda
NPU_DEPS npu_helper
)
lite_cc_test
(
test_compatible_pb SRCS compatible_pb_test.cc DEPS compatible_pb
)
lite_cc_test
(
test_compatible_pb SRCS compatible_pb_test.cc DEPS compatible_pb
)
lite/tools/build_npu.sh
浏览文件 @
443b2e68
...
@@ -107,7 +107,14 @@ function build_npu {
...
@@ -107,7 +107,14 @@ function build_npu {
test_name
=
$6
test_name
=
$6
fi
fi
build_dir
=
$cur_dir
/build.lite.npu.
${
os
}
.
${
abi
}
.
${
lang
}
.
${
stl
}
# the c++ symbol is not recognized by the bundled script
if
[[
"
${
stl
}
"
==
"c++_shared"
]]
;
then
stl_dir
=
"cxx_shared"
fi
if
[[
"
${
stl
}
"
==
"c++_static"
]]
;
then
stl_dir
=
"cxx_static"
fi
build_dir
=
$cur_dir
/build.lite.npu.
${
os
}
.
${
abi
}
.
${
lang
}
.
${
stl_dir
}
mkdir
-p
$build_dir
mkdir
-p
$build_dir
cd
$build_dir
cd
$build_dir
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录