SWDEV-436869 - Destroy host memory

Recent changes disabled system memory allocation
in the abstraciton layer. That requires memory
allocation/destruction in ROCR. Add destruction logic.

Change-Id: I68fe6b0a620ca743fe5850052ea0efa8bb7931c2
Ta zmiana jest zawarta w:
%! (template.HTML=German Andryeyev)złożyło 2023-12-15 16:39:41 -05:00
1 rodzic f9fd5f4049
złożenie a6d480e098
Plik 1 zmieniony
+3
+3
Wyświetl plik
@@ -702,6 +702,9 @@ void Buffer::destroy() {
if (dev().settings().apuSystem_) {
const_cast<Device&>(dev()).updateFreeMemory(size(), true);
}
} else if ((memFlags & CL_MEM_ALLOC_HOST_PTR) &&
(owner()->getContext().devices().size() == 1)) {
dev().hostFree(deviceMemory_, size());
}
}
}