SWDEV-539710 - Defer allocation of managed variable (#652)

Co-authored-by: Rahul Manocha <rmanocha@amd.com>

[ROCm/clr commit: 3f6f9d6081]
Este commit está contenido en:
Manocha, Rahul
2025-07-31 08:30:23 -07:00
cometido por GitHub
padre 405962df53
commit 4a93a614e5
Se han modificado 11 ficheros con 177 adiciones y 87 borrados
+2 -2
Ver fichero
@@ -324,13 +324,13 @@ void Context::hostFree(void* ptr) const {
}
void* Context::svmAlloc(size_t size, size_t alignment, cl_svm_mem_flags flags,
const amd::Device* curDev) {
const amd::Device* curDev, void* svmPtr) {
unsigned int numSVMDev = svmAllocDevice_.size();
if (numSVMDev < 1) {
return nullptr;
}
void* svmPtrAlloced = nullptr;
void* svmPtrAlloced = svmPtr;
amd::ScopedLock lock(&ctxLock_);