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
This commit is contained in:
Satyanvesh Dittakavi
2021-07-20 15:14:32 +00:00
کامیت شده توسط Maneesh Gupta
والد 8c5c2befeb
کامیت 924695fb5e
5فایلهای تغییر یافته به همراه12 افزوده شده و 7 حذف شده
@@ -508,6 +508,7 @@ bool HSAILProgram::createGlobalVarObj(amd::Memory** amd_mem_obj, void** device_p
}
/* Create a View from the global pal::Memory */
flags = ROCCLR_MEM_INTERNAL_MEMORY;
parent = codeSegGpu_->owner();
*amd_mem_obj = new (parent->getContext()) amd::Buffer(*parent, flags, offset, *bytes);