未验证 提交 5436d666 编写于 作者: C chengduo 提交者: GitHub

close socket connect (#17862)

test=develop
上级 3556e8ee
...@@ -93,6 +93,7 @@ void NCCLParallelContext::SendNCCLID(const std::string &ep, ...@@ -93,6 +93,7 @@ void NCCLParallelContext::SendNCCLID(const std::string &ep,
send(sock, buffer, NCCL_UNIQUE_ID_BYTES, 0); send(sock, buffer, NCCL_UNIQUE_ID_BYTES, 0);
break; break;
} }
close(sock);
} }
void NCCLParallelContext::BcastNCCLId(ncclUniqueId *nccl_id, int root) { void NCCLParallelContext::BcastNCCLId(ncclUniqueId *nccl_id, int root) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册