SWDEV-292021 - Fix Device Reset

- Device Reset should not purge the allocations that were not by the user
- Addresses QMCPack Test abort due to the removal of all the mem objects during reset

Change-Id: I7b7a123e72bcc985d7e51d17c2382bc618d3e041


[ROCm/clr commit: 924695fb5e]
Tá an tiomantas seo le fáil i:
Satyanvesh Dittakavi údaraithe agus Maneesh Gupta tiomanta 2021-08-22 23:56:08 -07:00
1 tuismitheoir 9fe78c0827
tiomantas 04e5354d88
5 comhad athraithe
+12 -7

Níor tháinig aon chomhaid le do chuardach

+3 -2
Féach ar an gComhad
@@ -190,8 +190,9 @@ bool Program::createGlobalVarObj(amd::Memory** amd_mem_obj, void** device_pptr,
}
roc_device = &(rocDevice());
*amd_mem_obj = new(roc_device->context()) amd::Buffer(roc_device->context(), 0, *bytes,
*device_pptr);
*amd_mem_obj = new(roc_device->context()) amd::Buffer(roc_device->context(),
ROCCLR_MEM_INTERNAL_MEMORY,
*bytes, *device_pptr);
if (*amd_mem_obj == nullptr) {
buildLog_ += "[OCL] Failed to create a mem object!";