mirror of
https://github.com/microsoft/mscclpp.git
synced 2026-04-19 22:39:11 +00:00
Fix pytest failure (#567)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -220,7 +220,9 @@ std::shared_ptr<char> NvlsConnection::Impl::bindMemory(CUdeviceptr devicePtr, si
|
||||
MSCCLPP_CUTHROW(cuDeviceGet(&device, deviceId));
|
||||
MSCCLPP_CUTHROW(cuMemUnmap((CUdeviceptr)ptr, devBuffSize));
|
||||
MSCCLPP_CUTHROW(cuMemAddressFree((CUdeviceptr)ptr, devBuffSize));
|
||||
MSCCLPP_CUTHROW(cuMulticastUnbind(mcHandle_, device, offset, devBuffSize));
|
||||
// Refer to NCCL, Unbind can trigger RM error if buffer is freed already by users.
|
||||
// Ignore error here, unbind will succeed anyway.
|
||||
cuMulticastUnbind(mcHandle_, device, offset, devBuffSize);
|
||||
self->freeBuffer(offset, devBuffSize);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user