Skip to content

Commit

Permalink
Fix SHARP/IB reg api version
Browse files Browse the repository at this point in the history
  • Loading branch information
bureddy committed Feb 22, 2024
1 parent 728d4e8 commit 9514503
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sharp_plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ ncclResult_t ncclSharpRegMrDmaBuf(void* collComm, void* data, size_t size, int t
}
TRACE(NCCL_INIT,"sharpRegAddr %lx size %ld handle %x", data, size, mh->mr);

NCCLCHECK(ncclNetPlugin_v7.regMrDmaBuf(cComm->recvComm, data, size, type, offset, fd, &mh->ncclIbMr));
NCCLCHECK(ncclNetPlugin_v8.regMrDmaBuf(cComm->recvComm, data, size, type, offset, fd, &mh->ncclIbMr));

*mhandle = mh;
return ncclSuccess;
Expand All @@ -405,7 +405,7 @@ ncclResult_t ncclSharpRegMr(void* collComm, void* data, size_t size, int type, v
}
TRACE(NCCL_INIT,"sharpRegAddr %lx size %ld handle %x", data, size, mh->mr);

NCCLCHECK(ncclNetPlugin_v7.regMr(cComm->recvComm, data, size, type, &mh->ncclIbMr));
NCCLCHECK(ncclNetPlugin_v8.regMr(cComm->recvComm, data, size, type, &mh->ncclIbMr));

*mhandle = mh;
return ncclSuccess;
Expand Down

0 comments on commit 9514503

Please sign in to comment.