From 55e3c6949b63108e5a12114d9d84a66d59b06bb5 Mon Sep 17 00:00:00 2001 From: Yan Xu Date: Mon, 8 Apr 2019 17:05:01 +0800 Subject: [PATCH] disable reuse port test=develop (#16704) --- paddle/fluid/imperative/nccl_context.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/paddle/fluid/imperative/nccl_context.cc b/paddle/fluid/imperative/nccl_context.cc index 04364e68342..f96c83936df 100644 --- a/paddle/fluid/imperative/nccl_context.cc +++ b/paddle/fluid/imperative/nccl_context.cc @@ -33,8 +33,7 @@ void NCCLParallelContext::RecvNCCLID(const std::string &ep, // creating socket fd if ((server_fd = socket(AF_INET, SOCK_STREAM, 0)) == 0) PADDLE_THROW("create server fd failed"); - if (setsockopt(server_fd, SOL_SOCKET, SO_REUSEADDR | SO_REUSEPORT, &opt, - sizeof(opt))) + if (setsockopt(server_fd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt))) PADDLE_THROW("set socket opt failed"); address.sin_family = AF_INET; -- GitLab