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>
Этот коммит содержится в:
+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());
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user