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]
이 커밋은 다음에 포함됨:
1 부모
6beafe72e8
커밋
b813a78c80
3 파일이 변경됨
+11
-5
검색과 일치하는 파일 없음
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
새 이슈에서 참조
사용자 차단