Skip to content

Commit 560d2f8

Browse files
authored
[CRL] Fix P2P Zerocopy P2pRmtAddr Calculation Error (#341)
1 parent 70d26c2 commit 560d2f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flagcx/core/group.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,8 @@ static flagcxResult_t groupLaunch(struct flagcxAsyncJob *job_) {
387387
// Pass the remote address to sender for zero-copy
388388
// peerRmtAddr is the remote address itself (cast as uintptr_t*)
389389
if (op->args.regBufFlag && peerRmtAddr) {
390-
op->args.p2pRmtAddr = (void *)peerRmtAddr;
390+
op->args.p2pRmtAddr =
391+
(void *)((uintptr_t)peerRmtAddr + regOffset);
391392
}
392393
} else if (op->connection->transport == TRANSPORT_NET) {
393394
op->args.chunkSize = flagcxNetChunkSize;

0 commit comments

Comments
 (0)