SWDEV-256126 - Linux pro Nuke app crash with "Out of memory"
Out of memory while running RIP plugin test
Change-Id: I8d6859a45b871f96ac027f8c7274f716e8524a3c
[ROCm/clr commit: 2505d68eba]
This commit is contained in:
@@ -675,11 +675,13 @@ void Buffer::destroy() {
|
|||||||
const_cast<Device&>(dev()).updateFreeMemory(size(), true);
|
const_cast<Device&>(dev()).updateFreeMemory(size(), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (dev().settings().apuSystem_) {
|
else {
|
||||||
if (!(memFlags & (CL_MEM_USE_HOST_PTR | CL_MEM_ALLOC_HOST_PTR | CL_MEM_COPY_HOST_PTR))) {
|
if (!(memFlags & (CL_MEM_USE_HOST_PTR | CL_MEM_ALLOC_HOST_PTR | CL_MEM_COPY_HOST_PTR))) {
|
||||||
dev().memFree(deviceMemory_, size());
|
dev().memFree(deviceMemory_, size());
|
||||||
|
if (dev().settings().apuSystem_) {
|
||||||
|
const_cast<Device&>(dev()).updateFreeMemory(size(), true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const_cast<Device&>(dev()).updateFreeMemory(size(), true);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user