Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
magicwindyyd
mindspore
提交
5676c502
M
mindspore
项目概览
magicwindyyd
/
mindspore
与 Fork 源项目一致
Fork自
MindSpore / mindspore
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mindspore
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
5676c502
编写于
7月 15, 2020
作者:
M
mindspore-ci-bot
提交者:
Gitee
7月 15, 2020
浏览文件
操作
浏览文件
下载
差异文件
!3084 add ms_serving to whl and uncoupling third_party grpc
Merge pull request !3084 from hexia/serving_whl
上级
3e691e54
34c59719
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
27 addition
and
2 deletion
+27
-2
cmake/mind_expression.cmake
cmake/mind_expression.cmake
+1
-1
cmake/package.cmake
cmake/package.cmake
+14
-0
serving/CMakeLists.txt
serving/CMakeLists.txt
+9
-1
setup.py
setup.py
+3
-0
未找到文件。
cmake/mind_expression.cmake
浏览文件 @
5676c502
...
...
@@ -15,7 +15,7 @@ include(${CMAKE_SOURCE_DIR}/cmake/external_libs/json.cmake)
include
(
${
CMAKE_SOURCE_DIR
}
/cmake/dependency_securec.cmake
)
include
(
${
CMAKE_SOURCE_DIR
}
/cmake/external_libs/protobuf.cmake
)
if
(
ENABLE_DEBUGGER
)
if
(
ENABLE_DEBUGGER
OR ENABLE_SERVING
)
# build dependencies of gRPC
include
(
${
CMAKE_SOURCE_DIR
}
/cmake/external_libs/absl.cmake
)
include
(
${
CMAKE_SOURCE_DIR
}
/cmake/external_libs/c-ares.cmake
)
...
...
cmake/package.cmake
浏览文件 @
5676c502
...
...
@@ -257,3 +257,17 @@ if (EXISTS ${CMAKE_SOURCE_DIR}/mindspore/dataset)
COMPONENT mindspore
)
endif
()
if
(
ENABLE_SERVING
)
install
(
TARGETS ms_serving
DESTINATION
${
INSTALL_BASE_DIR
}
COMPONENT mindspore
)
install
(
TARGETS inference
DESTINATION
${
INSTALL_LIB_DIR
}
COMPONENT mindspore
)
endif
()
serving/CMakeLists.txt
浏览文件 @
5676c502
...
...
@@ -13,7 +13,6 @@ add_library(protobuf::libprotobuf ALIAS protobuf::protobuf)
add_executable
(
protobuf::libprotoc ALIAS protobuf::protoc
)
set
(
_PROTOBUF_LIBPROTOBUF protobuf::libprotobuf
)
set
(
_REFLECTION gRPC::grpc++_reflection
)
if
(
CMAKE_CROSSCOMPILING
)
find_program
(
_PROTOBUF_PROTOC protoc
)
else
()
...
...
@@ -22,10 +21,19 @@ endif()
# Find gRPC installation
# Looks for gRPCConfig.cmake file installed by gRPC's cmake installation.
if
(
EXISTS
${
grpc_ROOT
}
/lib64
)
set
(
gRPC_DIR
"
${
grpc_ROOT
}
/lib64/cmake/grpc"
)
else
()
set
(
gRPC_DIR
"
${
grpc_ROOT
}
/lib/cmake/grpc"
)
endif
()
message
(
"serving using grpc_DIR : "
${
gPRC_DIR
}
)
find_package
(
gRPC CONFIG REQUIRED
)
message
(
STATUS
"Using gRPC
${
gRPC_VERSION
}
"
)
set
(
_GRPC_GRPCPP gRPC::grpc++
)
set
(
_REFLECTION gRPC::grpc++_reflection
)
if
(
CMAKE_CROSSCOMPILING
)
find_program
(
_GRPC_CPP_PLUGIN_EXECUTABLE grpc_cpp_plugin
)
else
()
...
...
setup.py
浏览文件 @
5676c502
...
...
@@ -103,6 +103,7 @@ package_data = {
'lib/*.so*'
,
'lib/*.a'
,
'.commit_id'
,
'ms_serving'
]
}
...
...
@@ -125,6 +126,8 @@ def update_permissions(path):
for
filename
in
filenames
:
file_fullpath
=
os
.
path
.
join
(
dirpath
,
filename
)
os
.
chmod
(
file_fullpath
,
stat
.
S_IREAD
)
if
filename
==
"ms_serving"
:
os
.
chmod
(
file_fullpath
,
stat
.
S_IREAD
|
stat
.
S_IEXEC
)
class
EggInfo
(
egg_info
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录