SWDEV-357122 - fix failure in vdi so as to handle unreasonable input size in MallocManagedNegativeTest
Change-Id: I1ed1916b652afc67327b0935c3c60fc2a404df30
Este cometimento está contido em:
cometido por
Julia Jiang
ascendente
05b2bd7995
cometimento
dacd55f3d7
@@ -752,6 +752,9 @@ bool Buffer::create(bool alloc_local) {
|
||||
// AMD HMM path. Just allocate system memory and KFD will manage it
|
||||
deviceMemory_ = amd::Os::reserveMemory(
|
||||
0, size(), amd::Os::pageSize(), amd::Os::MEM_PROT_RW);
|
||||
if (deviceMemory_ == NULL) {
|
||||
return false;
|
||||
}
|
||||
amd::Os::commitMemory(deviceMemory_, size(), amd::Os::MEM_PROT_RW);
|
||||
// Currently HMM requires cirtain initial calls to mark sysmem allocation as
|
||||
// GPU accessible or prefetch memory into GPU
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador