Hi, the current implementation of proxy service keeps ownership of RegisteredMemory:
|
memories_.push_back(memory); |
Thus, any
isCuMemMapAlloc memory added to proxy service won't be able to be released unless proxy service is destructed, which may cause trouble for a long running program. Can we avoid doing this? Maybe we can add a mechanism to detect if user issues operations on the memory id of a released memory or simply make the user responsible for not doing so.
Hi, the current implementation of proxy service keeps ownership of RegisteredMemory:
mscclpp/src/port_channel.cc
Line 41 in c184485
Thus, any
isCuMemMapAllocmemory added to proxy service won't be able to be released unless proxy service is destructed, which may cause trouble for a long running program. Can we avoid doing this? Maybe we can add a mechanism to detect if user issues operations on the memory id of a released memory or simply make the user responsible for not doing so.