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


[ROCm/clr commit: 3af3fe10de]
Этот коммит содержится в:
German Andryeyev committed 2022-03-21 16:17:22 -04:00
1 родитель 6beafe72e8
Коммит b813a78c80
3 files changed
+11 -5

No files matched your search

+6
Просмотреть файл
@@ -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;
}