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

Co-authored-by: Rahul Manocha <rmanocha@amd.com>
이 커밋은 다음에 포함됨:
Manocha, Rahul
2025-07-31 08:30:23 -07:00
커밋한 사람 GitHub
부모 c88f345229
커밋 3f6f9d6081
11개의 변경된 파일과 177개의 추가작업 그리고 87개의 파일을 삭제
+2 -2
파일 보기
@@ -1553,8 +1553,8 @@ bool SvmBuffer::Contains(uintptr_t ptr) {
// The allocation flags are ignored for now.
void* SvmBuffer::malloc(Context& context, cl_svm_mem_flags flags, size_t size, size_t alignment,
const amd::Device* curDev) {
void* ret = context.svmAlloc(size, alignment, flags, curDev);
const amd::Device* curDev, void* hostptr) {
void* ret = context.svmAlloc(size, alignment, flags, curDev, hostptr);
if (ret == nullptr) {
LogError("Unable to allocate aligned memory");
return nullptr;