Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
7208f440
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看板
提交
7208f440
编写于
9月 19, 2019
作者:
W
wangguibao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix mklml lib
上级
fdec0c27
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
12 addition
and
8 deletion
+12
-8
cmake/paddlepaddle.cmake
cmake/paddlepaddle.cmake
+8
-0
cube/cube-builder/CMakeLists.txt
cube/cube-builder/CMakeLists.txt
+1
-0
demo-serving/CMakeLists.txt
demo-serving/CMakeLists.txt
+1
-6
inferencer-fluid-cpu/CMakeLists.txt
inferencer-fluid-cpu/CMakeLists.txt
+1
-1
inferencer-fluid-gpu/CMakeLists.txt
inferencer-fluid-gpu/CMakeLists.txt
+1
-1
未找到文件。
cmake/paddlepaddle.cmake
浏览文件 @
7208f440
...
...
@@ -76,7 +76,15 @@ SET_PROPERTY(TARGET snappystream PROPERTY IMPORTED_LOCATION ${BINARY_DIR}/fluid_
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
)
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
snappystream
snappy
iomp5
mklml_intel
xxhash
)
cube/cube-builder/CMakeLists.txt
浏览文件 @
7208f440
...
...
@@ -32,6 +32,7 @@ add_dependencies(cube-builder jsoncpp)
set
(
DYNAMIC_LIB
gflags
jsoncpp
brpc
-lssl
-lcrypto
${
CURL_LIB
}
...
...
demo-serving/CMakeLists.txt
浏览文件 @
7208f440
...
...
@@ -26,11 +26,6 @@ endif()
include_directories
(
SYSTEM
${
CMAKE_CURRENT_LIST_DIR
}
/../kvdb/include
)
find_library
(
MKLML_LIB NAMES libmklml_intel.so PATHS
${
CMAKE_BINARY_DIR
}
/Paddle/third_party/install/mklml/lib/
)
find_library
(
MKLML_IOMP_LIB NAMES libiomp5.so PATHS
${
CMAKE_BINARY_DIR
}
/Paddle/third_party/install/mklml/lib
)
include
(
op/CMakeLists.txt
)
include
(
proto/CMakeLists.txt
)
add_executable
(
serving
${
serving_srcs
}
)
...
...
@@ -64,7 +59,7 @@ target_link_libraries(serving kvdb rocksdb)
if
(
WITH_GPU
)
target_link_libraries
(
serving
${
CUDA_LIBRARIES
}
)
endif
()
target_link_libraries
(
serving
${
MKLML_LIB
}
${
MKLML_IOMP_LIB
}
-lpthread
target_link_libraries
(
serving
iomp5 mklml_intel
-lpthread
-lcrypto -lm -lrt -lssl -ldl -lz -lbz2
)
install
(
TARGETS serving
...
...
inferencer-fluid-cpu/CMakeLists.txt
浏览文件 @
7208f440
...
...
@@ -3,7 +3,7 @@ add_library(fluid_cpu_engine ${fluid_cpu_engine_srcs})
target_include_directories
(
fluid_cpu_engine PUBLIC
${
CMAKE_BINARY_DIR
}
/Paddle/fluid_install_dir/
)
add_dependencies
(
fluid_cpu_engine pdserving extern_paddle configure
)
target_link_libraries
(
fluid_cpu_engine pdserving paddle_fluid
-liomp5 -l
mklml_intel -lpthread -lcrypto -lm -lrt -lssl -ldl -lz
)
target_link_libraries
(
fluid_cpu_engine pdserving paddle_fluid
iomp5
mklml_intel -lpthread -lcrypto -lm -lrt -lssl -ldl -lz
)
install
(
TARGETS fluid_cpu_engine
ARCHIVE DESTINATION
${
PADDLE_SERVING_INSTALL_DIR
}
/lib
...
...
inferencer-fluid-gpu/CMakeLists.txt
浏览文件 @
7208f440
...
...
@@ -3,7 +3,7 @@ add_library(fluid_gpu_engine ${fluid_gpu_engine_srcs})
target_include_directories
(
fluid_gpu_engine PUBLIC
${
CMAKE_BINARY_DIR
}
/Paddle/fluid_install_dir/
)
add_dependencies
(
fluid_gpu_engine pdserving extern_paddle configure
)
target_link_libraries
(
fluid_gpu_engine pdserving paddle_fluid
-liomp5 -l
mklml_intel -lpthread -lcrypto -lm -lrt -lssl -ldl -lz
)
target_link_libraries
(
fluid_gpu_engine pdserving paddle_fluid
iomp5
mklml_intel -lpthread -lcrypto -lm -lrt -lssl -ldl -lz
)
install
(
TARGETS fluid_gpu_engine
ARCHIVE DESTINATION
${
PADDLE_SERVING_INSTALL_DIR
}
/lib
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录