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>
This commit is contained in:
1 parent
b4df74f198
commit
15a1702636
6 files changed
+83
-4
No files matched your search
+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());
|
||||
|
||||
|
||||
Reference in new issue
Block a user