Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
1f76eabf
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
1f76eabf
编写于
5月 20, 2022
作者:
Z
zhaocaibei123
提交者:
GitHub
5月 20, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix Wtype-limits (#42676)
* fix Wtype-limits * fix * remove -Wno-error=type-limits
上级
11ce7eb1
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
8 addition
and
12 deletion
+8
-12
paddle/fluid/distributed/CMakeLists.txt
paddle/fluid/distributed/CMakeLists.txt
+1
-1
paddle/fluid/distributed/ps/service/brpc_ps_client.cc
paddle/fluid/distributed/ps/service/brpc_ps_client.cc
+1
-1
paddle/fluid/distributed/ps/service/brpc_ps_server.cc
paddle/fluid/distributed/ps/service/brpc_ps_server.cc
+0
-5
paddle/fluid/distributed/test/ctr_accessor_test.cc
paddle/fluid/distributed/test/ctr_accessor_test.cc
+4
-3
paddle/fluid/pybind/CMakeLists.txt
paddle/fluid/pybind/CMakeLists.txt
+2
-2
未找到文件。
paddle/fluid/distributed/CMakeLists.txt
浏览文件 @
1f76eabf
...
@@ -26,7 +26,7 @@ add_custom_command(TARGET ps_framework_proto POST_BUILD
...
@@ -26,7 +26,7 @@ add_custom_command(TARGET ps_framework_proto POST_BUILD
COMMAND mv the_one_ps.pb.h ps.pb.h
COMMAND mv the_one_ps.pb.h ps.pb.h
COMMAND mv the_one_ps.pb.cc ps.pb.cc
)
COMMAND mv the_one_ps.pb.cc ps.pb.cc
)
set
(
DISTRIBUTE_COMPILE_FLAGS
"-Wno-error=unused-value -Wno-non-virtual-dtor -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor -Wno-error=sign-compare -Wno-error=unused-variable -Wno-error=return-type -Wno-error=unused-but-set-variable -Wno-error=
type-limits -Wno-error=
unknown-pragmas -Wno-error=parentheses -Wno-error=unused-result"
)
set
(
DISTRIBUTE_COMPILE_FLAGS
"-Wno-error=unused-value -Wno-non-virtual-dtor -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor -Wno-error=sign-compare -Wno-error=unused-variable -Wno-error=return-type -Wno-error=unused-but-set-variable -Wno-error=unknown-pragmas -Wno-error=parentheses -Wno-error=unused-result"
)
if
(
CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0
)
if
(
CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0
)
set
(
DISTRIBUTE_COMPILE_FLAGS
set
(
DISTRIBUTE_COMPILE_FLAGS
...
...
paddle/fluid/distributed/ps/service/brpc_ps_client.cc
浏览文件 @
1f76eabf
...
@@ -261,7 +261,7 @@ int DownpourBrpcClosure::check_response(size_t request_idx, int cmd_id) {
...
@@ -261,7 +261,7 @@ int DownpourBrpcClosure::check_response(size_t request_idx, int cmd_id) {
}
}
int
DownpourBrpcClosure
::
check_save_response
(
size_t
request_idx
,
int
cmd_id
)
{
int
DownpourBrpcClosure
::
check_save_response
(
size_t
request_idx
,
int
cmd_id
)
{
u
int32_t
feasign_size
=
0
;
int32_t
feasign_size
=
0
;
if
(
_cntls
[
request_idx
]
->
Failed
())
{
if
(
_cntls
[
request_idx
]
->
Failed
())
{
LOG
(
ERROR
)
<<
"resquest cmd_id:"
<<
cmd_id
<<
" failed, "
LOG
(
ERROR
)
<<
"resquest cmd_id:"
<<
cmd_id
<<
" failed, "
"err:"
"err:"
...
...
paddle/fluid/distributed/ps/service/brpc_ps_server.cc
浏览文件 @
1f76eabf
...
@@ -301,11 +301,6 @@ int32_t BrpcPsService::PullDense(Table *table, const PsRequestMessage &request,
...
@@ -301,11 +301,6 @@ int32_t BrpcPsService::PullDense(Table *table, const PsRequestMessage &request,
}
}
CostTimer
timer
(
"pserver_server_pull_dense"
);
CostTimer
timer
(
"pserver_server_pull_dense"
);
uint32_t
num
=
*
(
const
uint32_t
*
)
request
.
params
(
0
).
c_str
();
uint32_t
num
=
*
(
const
uint32_t
*
)
request
.
params
(
0
).
c_str
();
if
(
num
<
0
)
{
set_response_code
(
response
,
-
1
,
"PsRequestMessage.datas[0] is invalid, num must >= 0"
);
return
0
;
}
auto
res_data
=
butil
::
get_object
<
std
::
vector
<
float
>>
();
auto
res_data
=
butil
::
get_object
<
std
::
vector
<
float
>>
();
res_data
->
resize
(
num
*
table
->
ValueAccesor
()
->
GetAccessorInfo
().
select_size
/
res_data
->
resize
(
num
*
table
->
ValueAccesor
()
->
GetAccessorInfo
().
select_size
/
...
...
paddle/fluid/distributed/test/ctr_accessor_test.cc
浏览文件 @
1f76eabf
...
@@ -196,9 +196,10 @@ TEST(downpour_feature_value_accessor_test, test_update) {
...
@@ -196,9 +196,10 @@ TEST(downpour_feature_value_accessor_test, test_update) {
ptr
[
idx
+
j
]
=
embedx_w
[
j
];
ptr
[
idx
+
j
]
=
embedx_w
[
j
];
}
}
idx
+=
8
;
idx
+=
8
;
for
(
auto
j
=
0u
;
j
<
0
;
++
j
)
{
// NaiveSGD has no embedx_g2sum
ptr
[
idx
+
j
]
=
embedx_g2sum
[
j
];
// for (auto j = 0u; j < 0; ++j) {
}
// ptr[idx + j] = embedx_g2sum[j];
// }
}
}
};
};
struct
DownpourSparsePushValueTest
{
struct
DownpourSparsePushValueTest
{
...
...
paddle/fluid/pybind/CMakeLists.txt
浏览文件 @
1f76eabf
...
@@ -134,9 +134,9 @@ if (WITH_PSLIB)
...
@@ -134,9 +134,9 @@ if (WITH_PSLIB)
endif
(
WITH_PSLIB
)
endif
(
WITH_PSLIB
)
if
(
WITH_PSCORE
)
if
(
WITH_PSCORE
)
if
(
WITH_ARM_BRPC
)
if
(
WITH_ARM_BRPC
)
set
(
DISTRIBUTE_COMPILE_FLAGS
"-faligned-new -Wno-non-virtual-dtor -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor -Wno-error=sign-compare -Wno-error=unused-variable -Wno-error=return-type -Wno-error=unused-but-set-variable -Wno-error=
type-limits -Wno-error=
unknown-pragmas -Wno-error=parentheses -Wno-error=unused-result"
)
set
(
DISTRIBUTE_COMPILE_FLAGS
"-faligned-new -Wno-non-virtual-dtor -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor -Wno-error=sign-compare -Wno-error=unused-variable -Wno-error=return-type -Wno-error=unused-but-set-variable -Wno-error=unknown-pragmas -Wno-error=parentheses -Wno-error=unused-result"
)
else
()
else
()
set
(
DISTRIBUTE_COMPILE_FLAGS
"-Wno-non-virtual-dtor -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor -Wno-error=sign-compare -Wno-error=unused-variable -Wno-error=return-type -Wno-error=unused-but-set-variable -Wno-error=
type-limits -Wno-error=
unknown-pragmas -Wno-error=parentheses -Wno-error=unused-result"
)
set
(
DISTRIBUTE_COMPILE_FLAGS
"-Wno-non-virtual-dtor -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor -Wno-error=sign-compare -Wno-error=unused-variable -Wno-error=return-type -Wno-error=unused-but-set-variable -Wno-error=unknown-pragmas -Wno-error=parentheses -Wno-error=unused-result"
)
endif
()
endif
()
set_source_files_properties
(
fleet_py.cc PROPERTIES COMPILE_FLAGS
${
DISTRIBUTE_COMPILE_FLAGS
}
)
set_source_files_properties
(
fleet_py.cc PROPERTIES COMPILE_FLAGS
${
DISTRIBUTE_COMPILE_FLAGS
}
)
list
(
APPEND PYBIND_DEPS fleet communicator index_wrapper index_sampler
)
list
(
APPEND PYBIND_DEPS fleet communicator index_wrapper index_sampler
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录