Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
76a1fea4
S
Serving
项目概览
PaddlePaddle
/
Serving
大约 1 年 前同步成功
通知
186
Star
833
Fork
253
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
105
列表
看板
标记
里程碑
合并请求
10
Wiki
2
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Serving
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
105
Issue
105
列表
看板
标记
里程碑
合并请求
10
合并请求
10
Pages
分析
分析
仓库分析
DevOps
Wiki
2
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
76a1fea4
编写于
9月 24, 2019
作者:
W
wangguibao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix mklml lib
上级
7208f440
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
4 addition
and
9 deletion
+4
-9
cmake/paddlepaddle.cmake
cmake/paddlepaddle.cmake
+3
-8
demo-serving/CMakeLists.txt
demo-serving/CMakeLists.txt
+1
-1
未找到文件。
cmake/paddlepaddle.cmake
浏览文件 @
76a1fea4
...
@@ -65,6 +65,9 @@ ExternalProject_Add(
...
@@ -65,6 +65,9 @@ ExternalProject_Add(
)
)
ExternalProject_Get_Property
(
extern_paddle BINARY_DIR
)
ExternalProject_Get_Property
(
extern_paddle BINARY_DIR
)
SET
(
CMAKE_INSTALL_RPATH
"
${
CMAKE_INSTALL_RPATH
}
"
"
${
BINARY_DIR
}
/fluid_install_dir/third_party/install/mklml/lib"
)
LINK_DIRECTORIES
(
${
BINARY_DIR
}
/fluid_install_dir/third_party/install/mklml/lib
)
ADD_LIBRARY
(
paddle_fluid STATIC IMPORTED GLOBAL
)
ADD_LIBRARY
(
paddle_fluid STATIC IMPORTED GLOBAL
)
SET_PROPERTY
(
TARGET paddle_fluid PROPERTY IMPORTED_LOCATION
${
BINARY_DIR
}
/fluid_install_dir/paddle/fluid/inference/libpaddle_fluid.a
)
SET_PROPERTY
(
TARGET paddle_fluid PROPERTY IMPORTED_LOCATION
${
BINARY_DIR
}
/fluid_install_dir/paddle/fluid/inference/libpaddle_fluid.a
)
...
@@ -76,15 +79,7 @@ SET_PROPERTY(TARGET snappystream PROPERTY IMPORTED_LOCATION ${BINARY_DIR}/fluid_
...
@@ -76,15 +79,7 @@ SET_PROPERTY(TARGET snappystream PROPERTY IMPORTED_LOCATION ${BINARY_DIR}/fluid_
ADD_LIBRARY
(
xxhash STATIC IMPORTED GLOBAL
)
ADD_LIBRARY
(
xxhash STATIC IMPORTED GLOBAL
)
SET_PROPERTY
(
TARGET xxhash PROPERTY IMPORTED_LOCATION
${
BINARY_DIR
}
/fluid_install_dir/third_party/install/xxhash/lib/libxxhash.a
)
SET_PROPERTY
(
TARGET xxhash PROPERTY IMPORTED_LOCATION
${
BINARY_DIR
}
/fluid_install_dir/third_party/install/xxhash/lib/libxxhash.a
)
ADD_LIBRARY
(
iomp5 SHARED IMPORTED GLOBAL
)
SET_PROPERTY
(
TARGET iomp5 PROPERTY IMPORTED_LOCATION
${
BINARY_DIR
}
/fluid_install_dir/third_party/install/mklml/lib/libiomp5.so
)
ADD_LIBRARY
(
mklml_intel SHARED IMPORTED GLOBAL
)
SET_PROPERTY
(
TARGET mklml_intel PROPERTY IMPORTED_LOCATION
${
BINARY_DIR
}
/fluid_install_dir/third_party/install/mklml/lib/libmklml_intel.so
)
LIST
(
APPEND paddle_depend_libs
LIST
(
APPEND paddle_depend_libs
snappystream
snappystream
snappy
snappy
iomp5
mklml_intel
xxhash
)
xxhash
)
demo-serving/CMakeLists.txt
浏览文件 @
76a1fea4
...
@@ -59,7 +59,7 @@ target_link_libraries(serving kvdb rocksdb)
...
@@ -59,7 +59,7 @@ target_link_libraries(serving kvdb rocksdb)
if
(
WITH_GPU
)
if
(
WITH_GPU
)
target_link_libraries
(
serving
${
CUDA_LIBRARIES
}
)
target_link_libraries
(
serving
${
CUDA_LIBRARIES
}
)
endif
()
endif
()
target_link_libraries
(
serving
iomp5
mklml_intel -lpthread
target_link_libraries
(
serving
-liomp5 -l
mklml_intel -lpthread
-lcrypto -lm -lrt -lssl -ldl -lz -lbz2
)
-lcrypto -lm -lrt -lssl -ldl -lz -lbz2
)
install
(
TARGETS serving
install
(
TARGETS serving
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录