Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
eb29e61a
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看板
提交
eb29e61a
编写于
11月 12, 2019
作者:
W
wangguibao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ELASTIC CTR
上级
b5e37224
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
12 addition
and
3 deletion
+12
-3
CMakeLists.txt
CMakeLists.txt
+6
-0
elastic-ctr/serving/CMakeLists.txt
elastic-ctr/serving/CMakeLists.txt
+6
-3
未找到文件。
CMakeLists.txt
浏览文件 @
eb29e61a
...
@@ -50,6 +50,7 @@ option(WITH_AVX "Compile Paddle Serving with AVX intrinsics" ${AVX_FOUND}
...
@@ -50,6 +50,7 @@ option(WITH_AVX "Compile Paddle Serving with AVX intrinsics" ${AVX_FOUND}
option
(
WITH_MKL
"Compile Paddle Serving with MKL support."
${
AVX_FOUND
}
)
option
(
WITH_MKL
"Compile Paddle Serving with MKL support."
${
AVX_FOUND
}
)
option
(
WITH_GPU
"Compile Paddle Serving with NVIDIA GPU"
${
CUDA_FOUND
}
)
option
(
WITH_GPU
"Compile Paddle Serving with NVIDIA GPU"
${
CUDA_FOUND
}
)
option
(
CLIENT_ONLY
"Compile client libraries and demos only"
FALSE
)
option
(
CLIENT_ONLY
"Compile client libraries and demos only"
FALSE
)
option
(
WITH_ELASTIC_CTR
"Compile ELASITC-CTR solution"
FALSE
)
set
(
WITH_MKLML
${
WITH_MKL
}
)
set
(
WITH_MKLML
${
WITH_MKL
}
)
if
(
NOT DEFINED WITH_MKLDNN
)
if
(
NOT DEFINED WITH_MKLDNN
)
...
@@ -74,8 +75,11 @@ include(external/snappy)
...
@@ -74,8 +75,11 @@ include(external/snappy)
include
(
external/gtest
)
include
(
external/gtest
)
include
(
generic
)
include
(
generic
)
include
(
flags
)
include
(
flags
)
if
(
WITH_ELASTIC_CTR
)
include
(
external/python
)
include
(
external/python
)
include
(
external/pybind11
)
include
(
external/pybind11
)
endif
()
if
(
NOT CLIENT_ONLY
)
if
(
NOT CLIENT_ONLY
)
include
(
external/cudnn
)
include
(
external/cudnn
)
...
@@ -127,4 +131,6 @@ add_subdirectory(demo-serving)
...
@@ -127,4 +131,6 @@ add_subdirectory(demo-serving)
endif
()
endif
()
# Paddle Serving Solutions
# Paddle Serving Solutions
if
(
WITH_ELASTIC_CTR
)
add_subdirectory
(
elastic-ctr
)
add_subdirectory
(
elastic-ctr
)
endif
()
elastic-ctr/serving/CMakeLists.txt
浏览文件 @
eb29e61a
if
(
NOT EXISTS
if
(
NOT EXISTS
${
CMAKE_CURRENT_LIST_DIR
}
/data/model/paddle/fluid/ctr_prediction
)
${
CMAKE_CURRENT_LIST_DIR
}
/data/model/paddle/fluid/ctr_prediction
)
execute_process
(
COMMAND wget --no-check-certificate
execute_process
(
COMMAND wget --no-check-certificate
https://paddle-serving.bj.bcebos.com/data/ctr_prediction/
ctr_prediction
.tar.gz
https://paddle-serving.bj.bcebos.com/data/ctr_prediction/
elastic_ctr_model
.tar.gz
--output-document
--output-document
${
CMAKE_CURRENT_LIST_DIR
}
/data/model/paddle/fluid/
ctr_prediction
.tar.gz
)
${
CMAKE_CURRENT_LIST_DIR
}
/data/model/paddle/fluid/
elastic_ctr_model
.tar.gz
)
execute_process
(
COMMAND
${
CMAKE_COMMAND
}
-E tar xzf
execute_process
(
COMMAND
${
CMAKE_COMMAND
}
-E tar xzf
"
${
CMAKE_CURRENT_LIST_DIR
}
/data/model/paddle/fluid/ctr_prediction.tar.gz"
"
${
CMAKE_CURRENT_LIST_DIR
}
/data/model/paddle/fluid/elastic_ctr_model.tar.gz"
WORKING_DIRECTORY
${
CMAKE_CURRENT_LIST_DIR
}
/data/model/paddle/fluid
)
execute_process
(
COMMAND
${
CMAKE_COMMAND
}
-E rename inference_only ctr_prediction
WORKING_DIRECTORY
WORKING_DIRECTORY
${
CMAKE_CURRENT_LIST_DIR
}
/data/model/paddle/fluid
)
${
CMAKE_CURRENT_LIST_DIR
}
/data/model/paddle/fluid
)
endif
()
endif
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录