wsl/hsakmt: add handle aperture

The CLR use memory handle as svm ptr, this cause
problem in BLAS test, add handle aperture to align with native.

Reviewed-by: Longlong Yao <Longlong.Yao@amd.com>
Reviewed-by: Shane Xiao <shane.xiao@amd.com>
Signed-off-by: tiancyin <tianci.yin@amd.com>
Этот коммит содержится в:
tiancyin
2024-10-15 14:31:54 +08:00
коммит произвёл Frank Min
родитель b4df74f198
Коммит 15a1702636
6 изменённых файлов: 83 добавлений и 4 удалений
+1 -1
Просмотреть файл
@@ -242,7 +242,7 @@ after_trim:
/* For these physical allcations, use GpuMemory object's address as thunk handle*/
if (create_info.flags.physical_only || create_info.dmabuf_fd > 0)
*MemoryAddress = reinterpret_cast<void *>(gpu_mem);
*MemoryAddress = reinterpret_cast<void*>(gpu_mem->HandleApeAddress());
else
*MemoryAddress = reinterpret_cast<void *>(gpu_mem->GpuAddress());