SWDEV-307185 - Move memory allocation under device layer

It can be too early to allocate memory at the begining of
Device::create() under PAL

Change-Id: I4bd76db7be3f6fb246243ea68022d8b0f860471d
Este commit está contenido en:
German Andryeyev
2022-03-21 16:14:02 -04:00
padre 54771e2ed7
commit 3af3fe10de
Se han modificado 3 ficheros con 11 adiciones y 5 borrados
+6
Ver fichero
@@ -784,6 +784,12 @@ bool Device::create() {
}
}
if (amd::IS_HIP) {
// Allocate initial heap for device memory allocator
static constexpr size_t HeapBufferSize = 1024 * Ki;
heap_buffer_ = createMemory(HeapBufferSize);
}
return true;
}