Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
c1710e91
P
Paddle
项目概览
Crayon鑫
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
c1710e91
编写于
10月 18, 2019
作者:
G
gongweibao
提交者:
GitHub
10月 18, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Disable GRPC_ARG_ALLOW_REUSEPORT to avoid potencial problem. (#20690)
上级
46e93f7c
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
2 deletion
+8
-2
paddle/fluid/operators/distributed/grpc/grpc_server.cc
paddle/fluid/operators/distributed/grpc/grpc_server.cc
+1
-0
python/paddle/fluid/tests/unittests/dist_test.sh
python/paddle/fluid/tests/unittests/dist_test.sh
+5
-1
python/paddle/fluid/tests/unittests/test_dist_base.py
python/paddle/fluid/tests/unittests/test_dist_base.py
+2
-1
未找到文件。
paddle/fluid/operators/distributed/grpc/grpc_server.cc
浏览文件 @
c1710e91
...
@@ -466,6 +466,7 @@ void AsyncGRPCServer::StartServer() {
...
@@ -466,6 +466,7 @@ void AsyncGRPCServer::StartServer() {
if
(
FLAGS_rpc_disable_reuse_port
)
{
if
(
FLAGS_rpc_disable_reuse_port
)
{
builder
.
SetOption
(
builder
.
SetOption
(
std
::
unique_ptr
<::
grpc
::
ServerBuilderOption
>
(
new
NoReusePortOption
));
std
::
unique_ptr
<::
grpc
::
ServerBuilderOption
>
(
new
NoReusePortOption
));
LOG
(
INFO
)
<<
"set FLAGS_rpc_disable_reuse_port"
;
}
}
builder
.
RegisterService
(
service
.
get
());
builder
.
RegisterService
(
service
.
get
());
...
...
python/paddle/fluid/tests/unittests/dist_test.sh
浏览文件 @
c1710e91
#!/bin/bash
#!/bin/bash
unset
https_proxy http_proxy
unset
https_proxy http_proxy
export
FLAGS_rpc_disable_reuse_port
=
1
name
=
${
TEST_TARGET_NAME
}
name
=
${
TEST_TARGET_NAME
}
TEST_TIMEOUT
=
${
TEST_TIMEOUT
}
TEST_TIMEOUT
=
${
TEST_TIMEOUT
}
...
@@ -14,6 +15,7 @@ if [[ ${TEST_TIMEOUT}"x" == "x" ]]; then
...
@@ -14,6 +15,7 @@ if [[ ${TEST_TIMEOUT}"x" == "x" ]]; then
exit
1
exit
1
fi
fi
# rm flag file
# rm flag file
rm
-f
${
name
}
_
*
.log
rm
-f
${
name
}
_
*
.log
...
@@ -28,7 +30,9 @@ fi
...
@@ -28,7 +30,9 @@ fi
echo
"
${
name
}
faild with
${
exit_code
}
"
echo
"
${
name
}
faild with
${
exit_code
}
"
netstat
-an
echo
"after run
${
name
}
"
ps
-aux
netstat
-anlp
# paddle log
# paddle log
echo
"
${
name
}
log"
echo
"
${
name
}
log"
...
...
python/paddle/fluid/tests/unittests/test_dist_base.py
浏览文件 @
c1710e91
...
@@ -848,6 +848,7 @@ class TestDistBase(unittest.TestCase):
...
@@ -848,6 +848,7 @@ class TestDistBase(unittest.TestCase):
"FLAGS_rpc_deadline"
:
"30000"
,
# 5sec to fail fast
"FLAGS_rpc_deadline"
:
"30000"
,
# 5sec to fail fast
"FLAGS_rpc_retry_bind_port"
:
"50"
,
"FLAGS_rpc_retry_bind_port"
:
"50"
,
"FLAGS_cudnn_deterministic"
:
"1"
,
"FLAGS_cudnn_deterministic"
:
"1"
,
"FLAGS_rpc_disable_reuse_port"
:
"1"
,
"http_proxy"
:
""
,
"http_proxy"
:
""
,
"NCCL_P2P_DISABLE"
:
"1"
,
"NCCL_P2P_DISABLE"
:
"1"
,
"NCCL_SHM_DISABLE"
:
"1"
"NCCL_SHM_DISABLE"
:
"1"
...
@@ -859,7 +860,7 @@ class TestDistBase(unittest.TestCase):
...
@@ -859,7 +860,7 @@ class TestDistBase(unittest.TestCase):
required_envs
[
"GLOG_vmodule"
]
=
\
required_envs
[
"GLOG_vmodule"
]
=
\
"fused_all_reduce_op_handle=10,all_reduce_op_handle=10,alloc_continuous_space_op=10,fuse_all_reduce_op_pass=10,"
\
"fused_all_reduce_op_handle=10,all_reduce_op_handle=10,alloc_continuous_space_op=10,fuse_all_reduce_op_pass=10,"
\
"alloc_continuous_space_for_grad_pass=10,fast_threaded_ssa_graph_executor=10,executor=10,operator=10,"
\
"alloc_continuous_space_for_grad_pass=10,fast_threaded_ssa_graph_executor=10,executor=10,operator=10,"
\
"sparse_all_reduce_op_handle=10"
"sparse_all_reduce_op_handle=10
,gen_nccl_id_op=10
"
required_envs
[
"GLOG_logtostderr"
]
=
"1"
required_envs
[
"GLOG_logtostderr"
]
=
"1"
local_losses
\
local_losses
\
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录