SWDEV-529449 - Bug fix when retrieving a memobj from the IPC mem handle
[ROCm/clr commit: f7482ef0a6]
Tá an tiomantas seo le fáil i:
1 tuismitheoir
f6e2ce709e
tiomantas
71f19d7017
7 comhad athraithe
+55
-53
Níor tháinig aon chomhaid le do chuardach
@@ -416,6 +416,14 @@ device::Memory* Memory::getDeviceMemory(const Device& dev, bool alloc) {
|
||||
|
||||
// ================================================================================================
|
||||
Memory::~Memory() {
|
||||
|
||||
if (ipcShared()) {
|
||||
amd::MemObjMap::RemoveIpcHandleMemObj(this);
|
||||
auto device = context_().devices()[0];
|
||||
if (device != nullptr) {
|
||||
device->IpcDetach(this);
|
||||
}
|
||||
}
|
||||
// For_each destructor callback:
|
||||
DestructorCallBackEntry* entry;
|
||||
for (entry = destructorCallbacks_; entry != nullptr; entry = entry->next_) {
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir