Unverified Commit ded1fb63 authored by Zhonghua Deng's avatar Zhonghua Deng Committed by GitHub
Browse files

[Bugfix][V1][P/D]Fix the issue of occasional garbled output for P2pNcclConnector (#20263)


Signed-off-by: default avatarAbatom <abzhonghua@gmail.com>
parent 97d9524f
......@@ -310,6 +310,7 @@ class P2pNcclEngine:
elif data["cmd"] == "PUT":
tensor_id = data["tensor_id"]
try:
with torch.cuda.stream(self.recv_stream):
tensor = torch.empty(data["shape"],
dtype=getattr(
torch, data["dtype"]),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment